https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42108

--- Comment #50 from Lucas Gass (lukeg) <[email protected]> ---
Created attachment 210125
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=210125&action=edit
Bug 42108: (QA follow-up) Handle background-only reports in foreground callers
and validate run_type

prep_report now throws RunTypeNotAllowed for a background-only report
requested in the foreground, but svc/report, opac/svc/report and the
guided_reports.pl export op always request foreground and did not
handle it, so they would fail with an unhandled exception.

* Return a 403 (JSON error report_background_only) from svc/report and
  opac/svc/report, and insufficient_permission from the export op.
* Whitelist the run_type CGI parameter in guided_reports.pl; an invalid
  value previously reached Koha::Object->store and died with BadValue.
  Invalid values are now ignored (default on create, unchanged on edit).

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Signed-off-by: Martin Renvoize <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to