Mailing List Archive

Bug in Link?
Hi,

I done an easy SQL-Query in german Wikipedia:

select cur_title,cur_text from cur where cur_namespace=0 and
cur_is_redirect=0 and length(cur_text) < 90 order by cur_title

which returns some articles, one of them: "Film/SchauspielerinnenF" linked
to: http://de.wikipedia.org/wiki/Film/SchauspielerinnenF

Klicking the Link I got a 404 HTTP Error, Mozilla displaying:
http://de.wikipedia.org/wiki/Film%2FSchauspielerinnenF
^^^
entering http://de.wikipedia.org/wiki/Film/SchauspielerinnenF manually
everything works fine.

Any ideas?

--
Smurf

smurf@AdamAnt.mud.de
------------------------- Anthill inside! ---------------------------
Re: Bug in Link? [ In reply to ]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Je Sabato 24 Majo 2003 16:17, Thomas Corell skribis:
> Klicking the Link I got a 404 HTTP Error, Mozilla displaying:
> http://de.wikipedia.org/wiki/Film%2FSchauspielerinnenF
> ^^^
> entering http://de.wikipedia.org/wiki/Film/SchauspielerinnenF
> manually everything works fine.

It appears that Apache rejects URIs with %2F in the path component:
http://www.apacheweek.com/issues/02-11-08

(Wouldn't a 400 'Bad Request' be a better return code than 404 'Not
Found'? Bah.)

I've tweaked SpecialAsksql to use the same function everything else does
to generate local page URLs, so it should put out clickable urls now.
While I was in there, I also fixed it to use the namespace if the query
results include a namespace field.

- -- brion vibber (brion @ pobox.com)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE+0ApixVlOmwh1xjgRAuiwAJsEDl36XOsGgAnY74eLuDGc+uVrqwCfWnvC
Bh8ttSyzrofkELEajzzilHg=
=U3uI
-----END PGP SIGNATURE-----
Re: Bug in Link? [ In reply to ]
Brion Vibber wrote:
> It appears that Apache rejects URIs with %2F in the path component:
> http://www.apacheweek.com/issues/02-11-08
> (Wouldn't a 400 'Bad Request' be a better return code than 404 'Not
> Found'? Bah.)
Well, as I see it, Apache thought he's doing the right thing, to convert /
to %2F. Than he looked for the File and did not found it -- 404. And, the
given URI was not bad. Only Apache has a bug in it's handling. No Reason
for a 400.
>
> I've tweaked SpecialAsksql to use the same function everything else does
> to generate local page URLs, so it should put out clickable urls now.
> While I was in there, I also fixed it to use the namespace if the query
> results include a namespace field.

Thank you for fixing it so quick.


--
Smurf

smurf@AdamAnt.mud.de
------------------------- Anthill inside! ---------------------------