-
Notifications
You must be signed in to change notification settings - Fork 433
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
Error preventing submitter to deposit a new item in DSpace 7 #3050
Comments
This may be difficult to debug if we cannot find a way to reliably reproduce it either locally or on our Demo (https://demo.dspace.org) or Sandbox (https://sandbox.dspace.org) site. From the error stacktrace, it sounds like the Submission Form is attempting to replace a value in some metadata field with a new value. But, an error occurs because the old value (value to be replaced) no longer exists. The area of the code which throws the error appears to be here: https://github.com/DSpace/DSpace/blob/dspace-7_x/dspace-server-webapp/src/main/java/org/dspace/app/rest/submit/factory/impl/ItemMetadataValueReplacePatchOperation.java#L59 One possible solution might be to simply ignore that empty/missing value, since it's being replaced anyway. Instead, the code might be updated to add the new value even if the old one is missing. As that might solve this issue, I'll add this to our bug board in search of a volunteer. However, the priority is uncertain until we can figure out how frequently this occurs. It's unclear to me how to get the Submission Form into this state where you are replacing a value that no longer exists. It's also possible that the core problem is that the Submission Form & underlying WorkspaceItem have gotten out-of-sync, which may mean this bug is potentially fixed by #2962 or #3016 |
Thanks @tdonohue We will try to apply the fix! |
Hi @tdonohue, how adding the method "getRequestInstance" will fix the error? Was this method being used somewhere and was missing in the code? |
@nibou230 : the change in #3053 was to override the default (#2962 is the original PR that was created for 8.0 and #3053 is just a backport of that PR to 7.6.x) |
I've found this is still reproducible on
When the 500 error occurs, it's because the date field
It's that "replace" action which causes the 500 error, as a "replace" REQUIRES that an "add" happened previously. On
I'm going to bring this to this week's Dev Meeting, as this error blocks the ability to submit. It seems to be more reproducible than I originally thought. |
@artlowel and @atarix83 : Pinging you on this ticket as there seems to be a PATCH "order of operations" bug in the Submission form which can cause instability in the submission form. See my prior comment for details. Also bringing this to tomorrow's DevMtg as this seems to be a serious bug, when it occurs. Possible Solutions?
|
@atarix83 : I wanted to note that I had this same issue happen again today. It happened on the first new item that I tried to submit after booting up my local copy of DSpace today (running on The cause is the same. Again, I used the arrow keys (clicked all the up arrow keys) on the date field to set the year, month, and day (one by one). The resulting PATCH data again had the invalid
After discarding that first submission & trying the same process again... I cannot reproduce the error again. I don't know if it's more likely to occur on the first submission after a reboot, or if this was by coincidence. |
I found a way to reproduce the error systematically:
Video.del.19-06-2024.12.44.16.webmI've found the cause and i'll open a PR asap |
Describe the bug
When a user is making a new submission, sometimes when saving or depositing the item, an error occurs that prevent the item to be deposited.
It sure is an annoying bug as it is sporadic and we were not able to reproduce it. 2 users have reported it so far (and we were able to reproduce the error live with one of them following the steps described below). In the interface, only a generic message is displayed:
In the log, when the problem occurs, the following error appears:
Full error is attached to this issue : fullerrorlog.txt
To Reproduce
We are using DSpace 7.6.1 with the entities (Publication and Persons).
As mentioned, we were able to reproduce only once with a user. When the error occurs, we were following the steps as describe below:
The text was updated successfully, but these errors were encountered: