Problem with special Characters in the URL
Mads Kiilerich
mads at kiilerich.com
Tue Sep 28 12:37:28 UTC 2021
On 8/19/21 11:13, RĂ¼diger Kessel wrote:
> Hi,
>
> I was faced with an URL encoding problem which caused a
> mercurial.error.ProgrammingError in mercurial/hgweb/request.py, line 276:
>
> "PATH_INFO does not begin with repo name"
>
> The root cause of the encoding problem is the fact that the wsgi
> encodes the URL in 'iso-8859-1' but it is in fact utf-8 encoded. It is
> connected with the use of Python 3.
>
> kallithea/controllers/base.py provides the function which can return
> the correct path info (get_path_info(environ)).
It could seem like Mercurial still has the problem we fixed in
https://kallithea-scm.org/repos/kallithea/changeset/6c381371d106 .
But if the problem can be reproduced with plain 'hg serve', it should be
fixed upstream instead of worked around in Kallithea.
/Mads
More information about the kallithea-general
mailing list