Uploaded image for project: 'Service Design and Creation'
  1. Service Design and Creation
  2. SDC-4174

New node filter API does not accept legacy payload

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • Kohn Release
    • Kohn Release
    • SDC
    • None

      When sending legacy payload for get_input and SELF get_property, the create (org.openecomp.sdc.be.servlets.ComponentNodeFilterServlet#addComponentFilterConstraint) and edit (org.openecomp.sdc.be.servlets.ComponentNodeFilterServlet#updateComponentFilterConstraint) node filter API is failing.
      The legacy payload for get_property from SELF is:

      {
          "servicePropertyName": "description",
          "constraintOperator": "equal",
          "sourceType": "property",
          "sourceName": "SELF",
          "value": "controller_actor"
      }
      

      And for get_input is:

      {
          "servicePropertyName": "description",
          "constraintOperator": "equal",
          "sourceType": "service_input",
          "sourceName": "SELF",
          "value": "cds_model_version"
      }
      

      Also, the response is not in the legacy format.

      Fix the issue to accept also the legacy format and respond in the legacy response format when the legacy payload is used.
      This problem was introduced by SDC-4128.

            andre.schmid andre.schmid
            andre.schmid andre.schmid
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: