-
Notifications
You must be signed in to change notification settings - Fork 442
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
Severe cache bug during submission on deposit #2577
Comments
@atarix83 The problem seems to be caused by the Since the submission always manually re-retrieves the submission objects it shouldn't be necessary anyway so disabling it shouldn't affect the functionality. However I do think there's still a bug in that So I'd try the workaround of disabling |
thanks @artlowel for your analysis. i can confirm your solution works. Maybe it can help to better understand the bug. In the end i agree to temporary fix the issue in one of the two way and then to try to find out the problem in this edge case |
I'm positive, that this is related to #1924. I observed the same pattern of endlessly re-requesting on stale |
Describe the bug
When a new submission that contains a relationship issue is created a severe cache bug occurs which doesn't allow to deposit the item.
Essentialy if all the changes in the submission have been saved, before to deposit the application try to retrieve the submission object again to check if the item can be deposited (it happens here). In the case the changes of the submission are not yet saved before to add a new relationship field they are saved when the relationship is added. This probably cause a cache problem and when the user try to deposit the item the application can't retrieve the updated submission object (it happens here) because it gets a remote data with status error stale and this leads to an endless loop of request to REST server.
To Reproduce
It can be reproduced in the sandbox environment also
Publication 2
which have a relationship fieldUntitled_.Oct.26.2023.9_46.AM.mp4
Untitled_.Oct.26.2023.9_46.AM.webm
Expected behavior
The submission should be deposited
Related work
It's important to retrieve every time a fresh submission object because of the bug already resolved #1502
The text was updated successfully, but these errors were encountered: