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

Fix resource interface checking logic

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: SDK
    • Labels:
      None
    • Found in Version/s:
      master
    • Fixed in Version/s:
      master, 1.2-rel
    • Operating System:
      iOS
    • Issue Severity:
      Major
    • Reproducibility:
      Always (100%)

      Description

      Fix resource interface checking logic when server receive discovery request for find matched interface type.

      ===========================================================
      01-08 16:03:03.939+0900 I/OIC_RI_STACK( 2382): ocstack.c: OCCreateResource(3272) > Entering OCCreateResource
      01-08 16:03:03.939+0900 I/OIC_RI_STACK( 2382): ocstack.c: insertResourceType(4476) > Added type org.tizen.fan to /fan/1

      // binded here...
      01-08 16:03:03.939+0900 I/OIC_RI_STACK( 2382): ocstack.c: BindResourceInterfaceToResource(3666) > Binding oic.if.b interface to /fan/1
      01-08 16:03:03.939+0900 I/OIC_RI_STACK( 2382): ocstack.c: BindResourceInterfaceToResource(3666) > Binding oic.if.baseline interface to /fan/1

      // when server got reqeust with interface query it faild at found.
      01-08 16:03:53.558+0900 I/OIC_RI_RESOURCE( 2382): ocresource.c: resourceMatchesIFFilter(572) > /fan/1 does not contain if=oic.if.b.
      ===========================================================

      AS is:
      ===================================================
      if ((strcmp (interfacePtr->name, interfaceFilter) == 0) &&
      (strcmp (OC_RSRVD_INTERFACE_LL, interfaceFilter) == 0 ||
      strcmp (OC_RSRVD_INTERFACE_DEFAULT, interfaceFilter) == 0))
      ===================================================

      To be:
      ===================================================
      if ((strcmp (interfacePtr->name, interfaceFilter) == 0) ||
      (strcmp (OC_RSRVD_INTERFACE_LL, interfaceFilter) == 0 ||
      strcmp (OC_RSRVD_INTERFACE_DEFAULT, interfaceFilter) == 0))
      ===================================================

        Attachments

        # Subject Branch Project Status CR V

          Activity

            People

            • Assignee:
              Byonggon_Chun byonggon chun
              Reporter:
              Byonggon_Chun byonggon chun
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: