roadmap
roadmap copied to clipboard
Add pdf Format Handling For render_respond_to_format_with_error_message
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/99999should return the following: -
One might expect the same behaviour when
/plans/99999/export.pdf?export%5Bquestion_headings%5D=trueis requested
Actual behaviour:
- An
ActionController::UnknownFormaterror is encountered instead
ActionController::UnknownFormat is also raised when a user attempts to download an unauthorised plan within '%{org_title} Plans' (see #3345 for more details).