arthurpsmith / author-disambiguator

Wikidata service to help create or link author items to published articles
GNU General Public License v3.0
33 stars 8 forks source link

Leading white space leads to 400 error #183

Closed VDK closed 1 year ago

VDK commented 1 year ago

I get a 400 error page when the "author name" field is filled with a string that has a tab as the leading white space

arthurpsmith commented 1 year ago

Ooh, thanks for finding this, definitely needs fixing.

arthurpsmith commented 1 year ago

Hmm, actually this is a general problem with the lighttpd server - the backend web server this is all running on (via kubernetes this service runs in one of a limited set of allowed containers on toolforge). It was updated in the past month or so to a new version that does not allow certain control characters - including the tab character - in GET url's. So the server is intercepting this request before it even gets to any of the author-disambiguator code. I think the only way to fix this is to replace the form so it is using "POST" instead of "GET" - which isn't a big deal but it makes the URL no longer something that can be easily shared.

arthurpsmith commented 1 year ago

@VDK ok this problem should be fixed now, let me know if you are still seeing issues!