-
Bug
-
Resolution: Fixed
-
Medium
-
3.11
-
3.11
-
Steps to reproduce the problem:
- Create an issue in Project A and add an attachment
- Bulk Move that issue to Project B, but wait before confirming the Bulk Move.
- In a second browser, log in with the same user, Bulk Move the same issue to Project B, and confirm the operation. You can see that the issue is moved, it got assigned a new issue id in the new project, and the attachment is moved to the correct path.
- Confirm the bulk move in the first browser. You get an error saying
Error The issue you are trying to view does not exist.
. The logs will report
Bulk edit bean unexpectedly null. Perhaps session was lost (e.g. when URL used is different to base URL in General Configuration)?
- The second bulk move partially succeeds. A new issue id is given in the new project, and the change history is reflected accordingly. However, the file attachment is lost.
It is likely that this situation would be reproducible by clicking the back button on the browser while bulk moving, if there were many issues on the bulk move.
The first bulk move operation did move the attachment from the old project to the new one. The second bulk move still tries to move the attachment from the old location, and fails.
At the very least, the BulkMoveOperation.moveAttachments function should check whether the renameTo function succeeds or fails, and log an error message if failure. Ideally, this situation would be prevented all together, and either the move of that issue would fail, or the attachment would be moved successfully.
- is related to
-
JRASERVER-19218 Moving issues: WARN [web.action.issue.MoveIssueConfirm] Could not move the attachment <name> because it does not exist at the expected location
- Closed
- relates to
-
JRASERVER-16223 Bulk move attachments remain in previous project folder
- Closed