[IOTDM-80] combined filter criteria not working Created: 16/Mar/17  Updated: 19/Oct/17  Resolved: 16/Mar/17

Status: Resolved
Project: iotdm
Component/s: General
Affects Version/s: unspecified
Fix Version/s: None

Type: Bug
Reporter: Lionel Florit Assignee: Unassigned
Resolution: Cannot Reproduce Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Attachments: File filter conditions.postman_collection.json    
External issue ID: 8011

 Description   

Create an AE
Create 3 children 2 with lbl=key1, 1 with lbl=key1 AND key2
GET http://localhost:8282/InCSE1?fu=1&lbl=key1&lbl=key2 should return only 1 resource, returns 3
Use Attached postman to replicate

[
{
"m2m:cnt":

{ "ct": "20170316T182414", "st": 0, "ty": 3, "cbs": 0, "lbl": [ "key1" ], "ri": "0-d-1-0", "lt": "20170316T182414", "mni": 1, "pi": "0-b-1-0", "rn": "TestContainer2", "cni": 0 }

},
{
"m2m:cnt":

{ "ct": "20170316T182425", "st": 0, "ty": 3, "cbs": 0, "lbl": [ "key1" ], "ri": "0-f-1-0", "lt": "20170316T182425", "mni": 1, "pi": "0-b-1-0", "rn": "TestContainer4", "cni": 0 }

},
{
"m2m:cnt":

{ "ct": "20170316T182418", "st": 0, "ty": 3, "cbs": 0, "lbl": [ "key1", "key2" ], "ri": "0-e-1-0", "lt": "20170316T182418", "mni": 1, "pi": "0-b-1-0", "rn": "TestContainer3", "cni": 0 }

}
]



 Comments   
Comment by Lionel Florit [ 16/Mar/17 ]

Attachment filter conditions.postman_collection.json has been added with description: Postman lib

Comment by Lionel Florit [ 16/Mar/17 ]

After reviewing the spec, I am retracting this bug.

By default logical AND operation shall be used if the filterOperation condition is not present.

BUT that doesn’t apply if the condition tags are the same

labels=floor1, labels=floor2, filterOperation=1 will match if either condition is true [ filterOperation has no effect when all condition tags are the same]

Generated at Wed Feb 07 20:05:07 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.