Uploaded image for project: 'Artificer'
  1. Artificer
  2. ARTIF-606

Unable to use update custom metadata using REST call

    Details

      Description

      I created my own work item handler and deployed it on EAP. My modified UpdateMetaDataResource adds custom properties to artifact on S-RAMP according to some key value.
      E.g. PUT call to Rest Service:
      http://localhost:8080/s-ramp-adapter/rest/update/property/key/Testvalue/d6df0626-0a70-48a6-bb34-fc0f478b81bd
      As a result, artifact with the given UUID will have property with name key and value Testvalue.
      Here is the simple code that accepts REST calls:
      https://gist.github.com/anonymous/469be08cc2610e727517
      Here's the pom.xml
      https://gist.github.com/anonymous/08a3c91163c682cc6cd0
      The error from EAP:
      https://gist.github.com/anonymous/b6422e498a3a90f4c28c

      Predefined URLs for updating metadata work alright on EAP. E.g.
      http://localhost:8080/dtgov/rest/update/name/value/uuid
      Problem is produced on custom Rest calls only.

      Everything works fine on Jetty, error is produced on EAP.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                brmeyer Brett Meyer
                Reporter:
                giorgimode Giorgi Modebadze
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: