ui.status and hgweb

Mick Jordan mick.jordan at oracle.com
Sat Nov 16 21:10:50 UTC 2013


I am having some problems with hgweb.cgi where ui.status messages cause 
'malformed header from script. Bad header=xxx' messages in the apache 
server log, and a subsequent 'abort: HTTP Error 500: Internal Server 
Error' returned to the user who initiated the hg push. The messages come 
from calls in in-process python hooks.

The, perhaps, strange thing is that if the status messages only cause 
this problem if the hook succeeds. If it fails, they appear in the 
server log but don't cause the Internal Server Error. In my hooks I have 
finessed this by suppressing ui.status messages in the ok path. However, 
the hgbuildbot hook calls ui.status to report when it is pushing a rev 
to buildbot. That message, over which I have no control, causes the 
above problem.

What is happening here and is there a solution?

Mick Jordan
P.S. Using hgweb.wsgi is not a solution, for other reasons.




More information about the Mercurial mailing list