Summary: | Selecting database columns for system preferences in standard and dev installs is broken | ||
---|---|---|---|
Product: | Koha | Reporter: | Martin Renvoize (ashimema) <martin.renvoize> |
Component: | Staff interface | Assignee: | Johanna Räisä <johanna.raisa> |
Status: | CLOSED FIXED | QA Contact: | Tomás Cohen Arazi (tcohen) <tomascohen> |
Severity: | critical | ||
Priority: | P5 - low | CC: | david, dcook, fridolin.somers, gmcharlt, johanna.raisa, jon.turner, jonathan.druart, kyle, magnus, tomascohen |
Version: | Main | ||
Hardware: | All | ||
OS: | All | ||
Change sponsored?: | Sponsored | Patch complexity: | --- |
Documentation contact: | Documentation submission: | ||
Text to go in the release notes: |
This fixes Apache access to json files in koha-tmpl for non-package installs. This causes issues for system preferences where there is a pick list for database columns.
Bug 22844 introduced a pick list of database columns for system preferences where such a list was required. This list is in a plain json file under the templates directory. This works fine for packages, but because of bug 9812 (which limited browser access to selected files) those directories are not accessible to the outside world for both standard and dev type installs using the make process.
|
Version(s) released in: |
21.11.00
|
Circulation function: | |||
Bug Depends on: | 9812, 22844 | ||
Bug Blocks: | |||
Attachments: |
Bug 28236: Selecting database columns for system preferences in standard and dev installs is broken
Bug 28236: Selecting database columns for system preferences in standard and dev installs is broken Bug 28236: Allow access to json files from apache config |
Description
Martin Renvoize (ashimema)
2021-04-27 11:58:04 UTC
Should we just produce an API route for that... Or use the API specs that are already available perhaps? We have finally started our upgrading process to the newest Koha release and this problem came out when our superlibrarian was trying to set again systempreferences. This is a kind of show stopper. Maybe we could open those json-files from Apache? Created attachment 124424 [details] [review] Bug 28236: Selecting database columns for system preferences in standard and dev installs is broken This patch grants json files from koha-tmpl. Otherwise systempreferences won't be able to fetch them. TEST PLAN: 1) Try to set systempreference BorrowerUnwantedField. 2) The modal is empty. 3) Modify Apache configurations like in this patch. 4) Try again set the systempreference. 5) The modal should show list of parameters. Sponsored-by: Koha-Suomi Oy Oops, I totally missed that you had added a patch here... looks good, signing off. Created attachment 126645 [details] [review] Bug 28236: Selecting database columns for system preferences in standard and dev installs is broken This patch grants json files from koha-tmpl. Otherwise systempreferences won't be able to fetch them. TEST PLAN: 1) Try to set systempreference BorrowerUnwantedField. 2) The modal is empty. 3) Modify Apache configurations like in this patch. 4) Try again set the systempreference. 5) The modal should show list of parameters. Sponsored-by: Koha-Suomi Oy Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> From Martin request, I test this since we use dev install in production servers. We usually use Nginx but we have some Apache installs (because of Sibboleth). Works fine, I reproduce the HTTP 403 without this patch. Passed QA Created attachment 127248 [details] [review] Bug 28236: Allow access to json files from apache config This patch grants json files from koha-tmpl. Otherwise systempreferences won't be able to fetch them. TEST PLAN: 1) Try to set systempreference BorrowerUnwantedField. 2) The modal is empty. 3) Modify Apache configurations like in this patch. 4) Try again set the systempreference. 5) The modal should show list of parameters. Sponsored-by: Koha-Suomi Oy Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> JD Amended patch: replace tab characters and reword commit title Pushed to master for 21.11, thanks to everybody involved! Congratulations for your first patch pushed, Johanna! (In reply to Jonathan Druart from comment #10) > Congratulations for your first patch pushed, Johanna! Nice, thank you very much. :) |