Workflow rejection reasons are not properly encoded #1224
Labels
bug
component: workflow
Difficulty: Medium
Estimated at between 8 and 16 hours
e/1
Estimate in hours
Milestone
Describe the bug
When an item is rejected in the workflow, the user has the option to provide a rejection "reason". That "reason" is not properly encoded when it is sent to the backend. In particular, the ampersand character causes the remainder of the message to be "ignored".
I was able to reproduce the bug on https://demo7.dspace.org/. The bug is located here.
To Reproduce
Steps to reproduce the behavior:
&
,@
...dc.description.provenance
, the "rejection reason" is incomplete.Expected behavior
The rejection reason should be encoded properly, such that it cannot be interpreted as a form parameter. Then the POST request will contain the complete message, and so will the provenance value. No changes are needed to the backend.
The text was updated successfully, but these errors were encountered: