Uploaded image for project: 'IoTivity'
  1. IoTivity
  2. IOT-1594

[RI] Resource type query is not working for resource discovery (both multicast & unicast)

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Undecided
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: SDK
    • Labels:
      None
    • Found in Version/s:
      1.2-rel
    • Fixed in Version/s:
      1.3.0-RC1
    • Operating System:
      Ubuntu
    • Issue Severity:
      Major
    • Reproducibility:
      Always (100%)

      Description

      Resource type query is not working for resource discovery on 1.2-rel branch.
      To reproduce this issue, please follow below procedure:
      1. Start IoTivity server, create 2 resources using resouce type "oic.r.dimlight" & "oic.r.brightlight"
      2. Start a IoTivity client and perform a multicast resource discovery(without any query)
      3. Perform multicast resource discovery using query "rt=oic.r.dimlight"
      4. Perform multicast resource discovery using query "rt=oic.r.brightlight"
      5. Perform multicast resource discovery using query "rt=oic.foo"
      6. Send a unicast discovery request to the server hosting "oic.r.brightlight" rource using query "rt=oic.r.brightlight"
      7. Send a unicast discovery request to the server hosting "oic.r.brightlight" rource using query "rt=oic.foo"

      Expected Result for the above steps:
      2. Total 6 resources sghould be discovered(/oic/d, /oic/p, /oic/sec/pstat, /oic/sec/doxm, "oic.r.dimlight" type resource & "oic.r.brightlight" type resource)
      3. Only 1 resource should be discovered ("oic.r.dimlight" type)
      4. Only 1 resource should be discovered ("oic.r.brightlight" type)
      5. No resource should be discovered.
      6. Only 1 resource should be discovered ("oic.r.brightlight" type)
      7 The server should respond with 4.04(resource not found)

      Actual result observed:
      2. Total 6 resources were discovered
      3. Total 6 resources were discovered
      4. Total 6 resources were discovered
      5. Total 6 resources were discovered
      6. Total 6 resources were discovered
      7. Total 6 resources were discovered

      as step 2 to 7 showing derivation from expected result, it is prominent that resource type query is not working for resource discovery on 1.2-rel branch.

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            • Assignee:
              habib.virji Habib Virji
              Reporter:
              i.mushfiq Mushfiqul Islam
            • Votes:
              0 Vote for this issue
              Watchers:
              16 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: