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

Bug/57612 work package report export fails if work package has unavailable attachments #16593

Conversation

as-op
Copy link
Contributor

@as-op as-op commented Sep 2, 2024

Ticket

If there are faulty attachments (attachment exists in db and work_package.attachments, but work_package.attachments[0].file.local_file throws an error. So the export is stopped.

https://community.openproject.org/work_packages/57612

What are you trying to accomplish?

=> Treat it like "attachment not found", catch and log the error but don't stop the export.

Merge checklist

  • Added/updated tests

@as-op as-op added the bugfix label Sep 2, 2024
@as-op as-op changed the base branch from dev to release/14.5 September 2, 2024 15:17
@as-op
Copy link
Contributor Author

as-op commented Sep 3, 2024

Note

Failing spec is unrelated.

@dombesz dombesz merged commit 14eaeea into release/14.5 Sep 3, 2024
10 of 11 checks passed
@dombesz dombesz deleted the bug/57612-work-package-report-export-fails-if-work-package-has-unavailable-attachments branch September 3, 2024 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants