Skip to content
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

Supplemental File records still created when ActiveStorage misconfigured #4113

Closed
cjcolvar opened this issue May 5, 2020 · 2 comments
Closed
Assignees
Labels

Comments

@cjcolvar
Copy link
Member

cjcolvar commented May 5, 2020

Steps to Reproduce

Change the ActiveStorage configuration to be something that isn't configured correctly then try uploading a file to a section on the structure step.

Expected Behavior

If the attaching of the file to the supplemental file fails then the supplemental file record should be deleted.

Actual Behavior

500 page displayed but going back to the structure step the supplemental file is displayed as if the upload succeeded.

@cjcolvar
Copy link
Member Author

cjcolvar commented May 19, 2020

I retested this on Spruce and it was still broken. We should also look at adding similar error handling to deletion.

@joncameron joncameron added this to the May 22 - Jun 5 (Sprint 204) milestone Jun 5, 2020
@phuongdh
Copy link
Member

Confirmed SupplementalFile.count did not change when uploading to a misconfigured Spruce

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants