[Bug 6490] New: hgweb error on /archive/ without node

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

[Bug 6490] New: hgweb error on /archive/ without node


            Bug ID: 6490
           Summary: hgweb error on /archive/ without node
           Product: Mercurial
           Version: default branch
          Hardware: PC
                OS: Linux
            Status: UNCONFIRMED
          Severity: bug
          Priority: normal
         Component: hgweb
          Assignee: [hidden email]
          Reporter: [hidden email]
                CC: [hidden email]
    Python Version: 3.7

Found this in logs while looking for errors:

[2021-02-21 05:26:03 +0000] [19488] [ERROR] Error handling request
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/gunicorn/workers/sync.py", line 135, in
    self.handle_request(listener, req, client, addr)
  File "/usr/lib/python3/dist-packages/gunicorn/workers/sync.py", line 181, in
    for item in respiter:
  File "/usr/lib/python3/dist-packages/mercurial/hgweb/hgwebdir_mod.py", line
381, in run_wsgi
    for r in self._runwsgi(req, res):
  File "/usr/lib/python3/dist-packages/mercurial/hgweb/hgweb_mod.py", line 326,
in run_wsgi
    for r in self._runwsgi(req, res, repo):
  File "/usr/lib/python3/dist-packages/mercurial/hgweb/hgweb_mod.py", line 398,
in _runwsgi
    fn = req.qsparams[b'node']
  File "/usr/lib/python3/dist-packages/mercurial/hgweb/request.py", line 35, in
    return self._items[key][-1]
KeyError: b'node'

Appears to happen if hgweb is hit with /archive/ (no node/rev given).

Reproduced on current tip = c82d6363bc9e by
./hg serve
curl http://localhost:8080/archive/

(in parallell)

You are receiving this mail because:
You are on the CC list for the bug.
Mercurial-devel mailing list
[hidden email]