Uploaded image for project: 'iotdm'
  1. iotdm
  2. IOTDM-51

Put request deletes data

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Won't Do
    • unspecified
    • None
    • General
    • None
    • Operating System: All
      Platform: All

    • 7659
    • Normal

    Description

      PUT request
      Path http://localhost:8181/restconf/config/onem2m-protocol-http:onem2m-protocol-http-providers/HttpProviderDefault

      body
      {
      "onem2m-protocol-http-providers" : [
      {
      "http-provider-instance-name": "HttpProviderDefault",
      "router-plugin-config":

      { "secure-connection": false }

      ,

      "server-config":

      { "secure-connection": false, "server-security-level": "l0", "server-port": 8888 }

      ,

      "notifier-plugin-config":

      { "secure-connection": false }

      }
      ]
      }

      shouldn`t allow because 8888 is conflict with port for websocket. Although we get a error log in karaf saying "Resources already used for protocol websocket", the response code is 200 or 201 which should be 400 or 500 probably with the message resource already in use. And on top of that it deletes the plugin - in this case http(s)-base. You can test it using this RPC onem2m-plugin-manager-plugin-data that it doesn`t containg http data.

      Attachments

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

        Activity

          People

            tjanciga Tomas Janciga
            miroslav.kovac@pantheon.tech Miroslav Kovac
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: