Bugzilla – Attachment 169922 Details for
Bug 37093
403 Forbidden Error when attempting to search for Mana Reports
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 37093: Searching for reports on Mana should use GET
Bug-37093-Searching-for-reports-on-Mana-should-use.patch (text/plain), 2.03 KB, created by
Victor Grousset/tuxayo
on 2024-08-01 01:04:10 UTC
(
hide
)
Description:
Bug 37093: Searching for reports on Mana should use GET
Filename:
MIME Type:
Creator:
Victor Grousset/tuxayo
Created:
2024-08-01 01:04:10 UTC
Size:
2.03 KB
patch
obsolete
>From 9f50833d14e03d0f9570cf947dd51e2fe285dd9e Mon Sep 17 00:00:00 2001 >From: Phil Ringnalda <phil@chetcolibrary.org> >Date: Thu, 11 Jul 2024 05:13:39 -0700 >Subject: [PATCH] Bug 37093: Searching for reports on Mana should use GET > >Searching for reports on Mana currently fails by sending a POST to >svc/mana/search without a CSRF token. There's no reason to POST, it's >just sending a search string. > > 1. Enable Mana: Reports - lower right is a blue Knowledgebase box with > a link to Change your Mana KB settings > 2. Switch Use Mana KB to Yes, click Save, below that give it a name and > email, Send to Mana KB > 3. Reports - Use saved - New report - New SQL from Mana > 4. Enter any keyword to search, get a 403 forbidden error > 5. Apply patch, restart_all, Shift+Reload the page to clear cache > 6. Enter any keyword likely to return results, like select, get results > >Signed-off-by: David Nind <david@davidnind.com> >Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net> >--- > .../prog/en/modules/reports/guided_reports_start.tt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt >index b039bd5cf9..cb83a9eaf0 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt >@@ -2380,7 +2380,7 @@ > > function mana_search( textquery ){ > $(".mana_search_status").hide(); >- $("#mana_result_content").load("/cgi-bin/koha/svc/mana/search #mana_results", { resource: 'report', id: textquery, usecomments: 1 }, function( response, status, xhr ) { >+ $("#mana_result_content").load("/cgi-bin/koha/svc/mana/search #mana_results", "resource=report&usecomments=1&id=" + textquery, function( response, status, xhr ) { > > if ( status == "error" ) { > $("#mana_search_errortext").html( xhr.status + " " + xhr.statusText ); >-- >2.46.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 37093
:
168809
|
169920
| 169922