[Koha-bugs] [Bug 21031] Apache Rewrite rules don't work for API when using anything but Debian package Plack configuration
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Jul 13 11:30:07 CEST 2018
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21031
Marcel de Rooy <m.de.rooy at rijksmuseum.nl> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|Signed Off |Failed QA
--- Comment #8 from Marcel de Rooy <m.de.rooy at rijksmuseum.nl> ---
>From the plack counterpart:
RewriteCond %{REQUEST_URI} !^/api/v[0-1]+/app.pl
RewriteRule ^/api/(v[0-9]+)/(.*)$ /api/$1/app.pl/api/$1/$2 [L,PT]
>From your patch:
RewriteCond %{REQUEST_URI} !^/api/v[0-1]+/app.pl
RewriteRule ^(v[0-9]+)/(.*)$ /api/$1/app.pl/api/$1/$2 [L]
Not the same. You start with v[0-9] which seems to be wrong ;)
How did you test?
Note btw that v[0-9]+ may not be what we want. It covers v987654321 for
instance. We do not have v0, but only v1. Hoping for v2 :)
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list