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

Plugin bundle loader feature-put with missing feature-name doesn`t work properly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • unspecified
    • General
    • None
    • Operating System: All
      Platform: All

    • 7711
    • Low

      first request missing feature-name
      POST request
      path -> http://localhost:8181/restconf/operations/iotdmbundleloader:feature-put/
      body :
      {
      "input": {
      "bundle-loader-instance-name": "BundleLoaderInstanceDefault",

      "bundles-to-load": [

      { "priority": 10, "iotdm-bundle-jar-location": "file:///home/miroslav/projects/myPlugin/onem2mnewtest/impl/target/onem2mnewtest-impl-0.1.0-SNAPSHOT.jar" }

      ,

      { "priority": 1, "iotdm-bundle-jar-location": "file:///home/miroslav/projects/myPlugin/onem2mnewtest/api/target/onem2mnewtest-api-0.1.0-SNAPSHOT.jar" }

      ]
      }
      }
      response as expected with error missing feature name
      second request same with feature-name

      POST request
      path -> http://localhost:8181/restconf/operations/iotdmbundleloader:feature-put/
      body :
      {
      "input": {
      "bundle-loader-instance-name": "BundleLoaderInstanceDefault",
      "feature-name": "NewFeature1",
      "bundles-to-load": [

      { "priority": 10, "iotdm-bundle-jar-location": "file:///home/miroslav/projects/myPlugin/onem2mnewtest/impl/target/onem2mnewtest-impl-0.1.0-SNAPSHOT.jar" }

      ,

      { "priority": 1, "iotdm-bundle-jar-location": "file:///home/miroslav/projects/myPlugin/onem2mnewtest/api/target/onem2mnewtest-api-0.1.0-SNAPSHOT.jar" }

      ]
      }
      }

      this does not allow me to do. It gives me conflict. Seems like it wrote data to feature-name null. Also running config stops working when this request is send. We need to clean the bundle loader before we can work on this again.

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

              Created:
              Updated: