Developed by the the Alliance in collaboration with University of Alberta, DMP Assistant a data management planning tool, forking the DMP Roadmap codebase
MIT License
6
stars
1
forks
source link
Add pdf Format Handling For `render_respond_to_format_with_error_message` #729
ActionController::UnknownFormat is also raised when a user attempts to download an unauthorised plan within '%{org_title} Plans' (see #732 for more details).
Please complete the following fields as applicable:
What version of the DMPRoadmap code are you running? (e.g. v2.2.0)
Expected behaviour:
Assuming plan.id = 99999 doesn't exist in the db, then the url path![Screenshot from 2024-04-17 15-22-51](https://github.com/portagenetwork/roadmap/assets/71047780/d410014e-613b-41b1-aa16-9bd1015c7b29)
/plans/99999
should return the following:One might expect the same behaviour when
/plans/99999/export.pdf?export%5Bquestion_headings%5D=true
is requestedActual behaviour:
ActionController::UnknownFormat
error is encountered instead