]
Brett Meyer resolved SRAMP-606.
-------------------------------
Fix Version/s: 0.7.0.Final
Resolution: Done
Unable to use update custom metadata using REST call
----------------------------------------------------
Key: SRAMP-606
URL:
https://issues.jboss.org/browse/SRAMP-606
Project: S-RAMP
Issue Type: Bug
Components: Atom Binding, S-RAMP API
Affects Versions: 0.6.0.Final
Reporter: Giorgi Modebadze
Assignee: Brett Meyer
Fix For: 0.7.0.Final
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/d...
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.