You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
GeoNetwork 4.2.9: There are a couple of inconsistencies in the process for editors submitting a record for review when workflow is enabled. Firstly when submitting for review from the default record view, it is only possible to submit a review if the editor is also the owner. The submit button is greyed out, but in the log file there is an error:
Possibly unhandled rejection: {"data":{"message":"Only the owner of the metadata can get the status. User is not the owner of the metadata","code":"forbidden","description":null},"status":403,"config":{"method":"GET","transformRequest":[null],"transformResponse":[null],"jsonpCallbackParam":"callback","url":"../eng/../api/records/2233/status/workflow/last","headers":{"Accept":"application/json, text/plain, */*","Accept-Language":"eng","X-XSRF-TOKEN":"d638d6ef-1b76-4c5f-b930-87411e68f0cb"}},"statusText":"Forbidden","xhrStatus":"complete"}
Then, when editing a record, even one that they don't own, an editor can submit a record for review, in contradiction to the above, but they can't add a message.
Expected behavior
Consistent permissions behaviour in both cases with the option to add a message in both cases.
Describe the bug
GeoNetwork 4.2.9: There are a couple of inconsistencies in the process for editors submitting a record for review when workflow is enabled. Firstly when submitting for review from the default record view, it is only possible to submit a review if the editor is also the owner. The submit button is greyed out, but in the log file there is an error:
Then, when editing a record, even one that they don't own, an editor can submit a record for review, in contradiction to the above, but they can't add a message.
Expected behavior
Consistent permissions behaviour in both cases with the option to add a message in both cases.
It seems to be this bit of code that is triggering the error in default record view: https://github.com/geonetwork/core-geonetwork/blob/4.2.x/services/src/main/java/org/fao/geonet/api/records/MetadataWorkflowApi.java#L229
The text was updated successfully, but these errors were encountered: