An empty Content-Length variable is crashing Mercurial 4.6-rc1 on clone

Issue #983 open
Matt Harbison
created an issue

I noticed this when upgrading from 1.55 to 1.59 today. I suspect this is the culprit:

https://bitbucket.org/sdorra/scm-manager/commits/60d9b631c557cd8523c87d3eaa38fff13592ce9b#Lscm-webapp/src/main/java/sonia/scm/web/cgi/DefaultCGIExecutor.javaT368

It looks like 4.6 will be fixed to allow an empty value, but I'm not sure if this is a problem for previous versions.

https://bz.mercurial-scm.org/show_bug.cgi?id=5860

Comments (3)

  1. Sebastian Sdorra repo owner
    • changed status to open

    I've done some tests and it does not look like a problem for older versions.

    If the problem only exists with a rc release, then I don't think this an scm-manager bug at all.

  2. Matt Harbison reporter

    I meant to test more, but it wasn’t a problem with 4.5 and 1.59. I’m not sure how far back you’d need to go to get hg to fail again. I guess the issue is either the workaround isn’t needed, or if it is, it isn’t always being used when it should?

  3. Log in to comment