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

Add pdf Format Handling For render_respond_to_format_with_error_message #3414

Open
aaronskiba opened this issue Apr 30, 2024 · 1 comment
Open

Comments

@aaronskiba
Copy link
Contributor

Please complete the following fields as applicable:

What version of the DMPRoadmap code are you running? (e.g. v2.2.0)

  • v4.2.0

Expected behaviour:

  • Assuming plan.id = 99999 doesn't exist in the db, then the url path /plans/99999 should return the following:
    Screenshot from 2024-04-17 15-22-51

  • One might expect the same behaviour when /plans/99999/export.pdf?export%5Bquestion_headings%5D=true is requested

Actual behaviour:

  • An ActionController::UnknownFormat error is encountered instead
    Screenshot from 2024-04-17 15-26-27
@aaronskiba
Copy link
Contributor Author

ActionController::UnknownFormat is also raised when a user attempts to download an unauthorised plan within '%{org_title} Plans' (see #3345 for more details).
Screenshot from 2024-04-30 11-03-50

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

No branches or pull requests

1 participant