Cancelling application edits can break attachment consistency
Existing issue
- I searched the existing issues and could not find a matching report.
Product variant
Self-hosted
Reactive Resume version
5.3.2
Area
Applications & cover letters
Environment
Self-hosted from source with Docker Compose
Summary
Attachment changes made while editing an application are applied independently from the application edit itself, so cancelling the edit can leave the saved application and its stored attachments in different states.
Steps to reproduce
- Open an application with an existing PDF attachment.
- Remove the attachment.
- Close the editor without saving.
- Reopen the application and try to access the attachment.
The application still references the attachment, but the file is no longer available.
The opposite case also occurs: uploading a new attachment and then cancelling the edit leaves the file stored even though it was never associated with the application.
Expected behavior
Cancelling an application edit should preserve the previously saved attachment state, while saving the edit should apply the application and attachment changes together.
Actual behavior
Removing an attachment can delete the file before the application edit is saved, while uploading an attachment can retain the file even when the edit is cancelled, resulting in either a broken attachment reference or an unreferenced stored file.
Template
None
Logs and screenshots
No response
Source: amruthpillai/reactive-resume