New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DS-3511 Fix HTTP 500 errors on REST API bitstream updates #1840
Conversation
Please rebase this PR against the latest If you have any questions, feel free to ask in this PR or on our Slack: https://wiki.duraspace.org/display/DSPACE/Slack |
@minurmin , thank you for submitting this PR. I believe your intention was to apply this fix to DSpace 6.x. If that is correct, could you update the base branch to dspace-6_x? That will remove the error that is currently in place and will allow a review to take place. |
I've cherry-picked this commit onto |
…treamPolicy to prevent HTTP 500 response on REST updates
Yes, the PR is supposed to be used for Dspace 6. Sorry to have missed the comments, originally I wasn't sure what branch to merge into since the code apparently works on master branch as well. For what it's worth, this PR should now be mergeable with current 6.x branch as well (fixed by force push). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
Thanks @minurmin for the fix, and thanks @AndrewBennet for the cherrypick to 6.x
@minurmin , i think we'll still want another rebased PR for master (as per @tdonohue 's comments)
By all means, please proceed with #1996. Perhaps the force push caused some problems, I have no idea what could cause the problem considering that this is just a 2-line change. |
I'll give my general thumbs up here, 👍 , code looks fine.. I suspect the Travis issues in this PR are actually a Travis hiccup, and no fault of the PR itself. As noted, the same code in #1996 seems to be 100% fine in Travis. I'll leave it up to @kshepherd which one of these to merge...but one should get merged and the other closed. |
https://jira.duraspace.org/browse/DS-3511 and
https://groups.google.com/forum/#!topic/dspace-tech/ZEvYkjqbx8s
When trying to update the content of a bitstream or delete a bitstream policy HTTP 500 error occurs (Dspace 6.0-6.2). Fixed by adding context.complete() to the end of the respective methods (adapted the original patch submitted to DS-3511).