Bug 20187: New rewrite rules can break custom css
authorKyle M Hall <kyle@bywatersolutions.com>
Tue, 13 Feb 2018 13:20:24 +0000 (13:20 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 13 Feb 2018 15:54:32 +0000 (12:54 -0300)
commit8cd0a76d1034d582ff0cfde986331324369294f7
tree4ff2f8a02e5293cd3ae2b348ee60dc6fe9653ffd
parentc079990723a90e2d97f821959cf0289dad539c73
Bug 20187: New rewrite rules can break custom css

Koha has the ability to include custom css in the apache configuration.
If a library has any custom css ( or adds a custom js file in some way ),
and that file has an underscore in it ( e.g. my_custom.css ), the
apache rewrite rule will convert it to my.css and thus it will 404.

We should make the rewrite rules as specific as possible for the
format we are using.

Test Plan:
1) Set OPAC_CSS_OVERRIDE to a file with an underscore in it
2) Note it does not work
3) Apply this patch
4) Update the apache rewrite rules to match those in the patch
   For kohadevbox, just run /home/vagrant/misc4dev/cp_debian_files.pl
5) Restart apache
6) Reload the page, your custom css should load now!

Signed-off-by: Victor Grousset <victor.grousset@biblibre.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
debian/templates/apache-shared-intranet.conf
debian/templates/apache-shared-opac.conf
etc/koha-httpd.conf