You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have Loris running with Apache and mod_wsgi. This is my configuration:
[edit the configuration is not relevant here. I tested it several times on different machines with different configurations and Loris still outputs 404 instead of 400 for special characters. See additional comments.]
ssl.conf:
AllowEncodedSlashes On
RewriteEngine on
RequestHeader set x-forwarded-for %{REMOTE_ADDR}e
RequestHeader set Host %{X-Forwarded-Host}e
RequestHeader set "X-Forwarded-Proto" expr=%{REQUEST_SCHEME}e
RequestHeader set "X-Forwarded-SSL" expr=%{HTTPS}e
WSGIScriptAlias /iiif /var/www/loris2/loris2.wsgi
RewriteCond %{REQUEST_URI} !default\.tif$ [NC]
RewriteRule ^/(.*).tif$ /$1.tif/info.json [R=303,L]
RewriteCond %{REQUEST_URI} !default\.jpg$ [NC]
RewriteRule ^/(.*).jpg$ /$1.jpg/info.json [R=303,L]
RewriteCond %{REQUEST_URI} !default\.jp2$ [NC]
RewriteRule ^/(.*).jp2$ /$1.jp2/info.json [R=303,L]
RewriteCond %{REQUEST_URI} !default\.png$ [NC]
RewriteRule ^/(.*).png$ /$1.png/info.json [R=303,L]
From the modules directory, conf.modules.d/10-wsgi.conf:
LoadModule wsgi_module modules/mod_wsgi.so
ExpiresActive On
ExpiresDefault "access plus 5184000 seconds"
AllowEncodedSlashes On
WSGIDaemonProcess loris2 user=loris group=loris processes=10 threads=15 maximum-requests=10000
WSGIScriptAlias /iiif /var/www/loris2/loris2.wsgi
WSGIProcessGroup loris2
It all works well except for the server returning 404 instead of 400 for random-generated quality or rotation or size or format when these include characters like ] or ^ or ` or ; or [ etc. See for example here.
After starting the .webapp.py development server and running the validator against it, I noticed that it's actually Loris which returns error 404 instead of the 400 expected by the validator.
Hello,
I have Loris running with Apache and
mod_wsgi
. This is my configuration:[edit the configuration is not relevant here. I tested it several times on different machines with different configurations and Loris still outputs 404 instead of 400 for special characters. See additional comments.]
ssl.conf:
From the modules directory, conf.modules.d/10-wsgi.conf:
It all works well except for the server returning 404 instead of 400 for random-generated quality or rotation or size or format when these include characters like ] or ^ or ` or ; or [ etc. See for example here.
This is my image API validator.
What could the reason for that be?
The text was updated successfully, but these errors were encountered: