roadmap icon indicating copy to clipboard operation
roadmap copied to clipboard

Add pdf Format Handling For render_respond_to_format_with_error_message

Open aaronskiba opened this issue 1 year ago • 1 comments

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 avatar Apr 30 '24 17:04 aaronskiba

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

aaronskiba avatar Apr 30 '24 17:04 aaronskiba