Issue2019

Title content-type exception when cloning over http from hgwebdir.cgi application
Priority bug Status chatting
Superseder Nosy List kiilerix, magny
Assigned To Topics

Created on 2010-02-03.19:16:11 by magny, last changed 2010-02-04.00:02:52 by kiilerix.

Messages
msg11587 (view) Author: kiilerix Date: 2010-02-04.00:02:52
The web server apparently didn't return what was expected. A workaround -
and the solution - is to fix the web server, whatever is wrong.

But still, Mercurial shouldn't crash ... It should probably say something
like 'invalid response'.

I assume the web server can't be accessed from the internet?

Can you use wireshark and capture the request and the response (especially
the headers)?
msg11585 (view) Author: magny Date: 2010-02-03.19:16:09
The following error is produced when doing a clone

hg clone http://myserver/hgwebdir.cgi/media/


destination directory: mediabank
requesting all changes
** unknown exception encountered, details follow
** report bug details to http://mercurial.selenic.com/bts/
** or mercurial@selenic.com
** Mercurial Distributed SCM (version 1.4.2)
** Extensions loaded: win32text, rebase
Traceback (most recent call last):
  File "hg", line 27, in <module>
  File "mercurial\dispatch.pyc", line 16, in run
  File "mercurial\dispatch.pyc", line 30, in dispatch
  File "mercurial\dispatch.pyc", line 46, in _runcatch
  File "mercurial\dispatch.pyc", line 454, in _dispatch
  File "mercurial\dispatch.pyc", line 324, in runcommand
  File "mercurial\dispatch.pyc", line 505, in _runcommand
  File "mercurial\dispatch.pyc", line 459, in checkargs
  File "mercurial\dispatch.pyc", line 453, in <lambda>
  File "mercurial\util.pyc", line 386, in check
  File "mercurial\commands.pyc", line 649, in clone
  File "mercurial\hg.pyc", line 292, in clone
  File "mercurial\localrepo.pyc", line 2140, in clone
  File "mercurial\localrepo.pyc", line 1437, in pull
  File "mercurial\httprepo.pyc", line 200, in changegroupsubset
  File "mercurial\httprepo.pyc", line 102, in do_cmd
  File "rfc822.pyc", line 384, in __getitem__
KeyError: 'content-type'
History
Date User Action Args
2010-02-04 00:02:52kiilerixsetstatus: unread -> chatting
nosy: + kiilerix
messages: + msg11587
2010-02-03 19:16:11magnycreate