Removing externalIds are not working
As reported in sshoc-marketplace-frontend#121 (closed) we recently discovered, that it is currently not possible to remove externalIds from items. We can eliminate that there is a problem with frontend, therefore the bug must be somewhere in the backend code.
I tried it out with calls only to the API and the problem can be reproduced:
- Create an item with an externalId
POST /api/tools-services
{ "label": "test external id delete", "description": "like to delete external id", "externalIds": [ { "identifierService": { "code": "GitHub" }, "identifier": "home/common" } ] }
- Update the item without the externalId
PUT /api/tools-services/{persistentId}
{ "label": "test external id delete", "description": "like to delete external id", "externalIds": [] }
- Get the item to see, if the externalId exists
GET /api/tools-services/{persistentId}
no body necessary@tparkola Can you have a look, why deleting externalIds does not work? Is it a bug or is it the wrong way, how I did it?
Notify @lbarbot