[issue2023] hgwebdir with subdirectories fails to give 404 for invalid URL

Greg Ward bugs at mercurial.selenic.com
Thu Feb 4 19:27:02 UTC 2010


New submission from Greg Ward <greg-hg at gerg.ca>:

I have hgwebdir setup with some repos in a subdirectory.  That is,
http://server/hg serves /src/hg, which looks like

  /src/hg/repo1
         /repo2
         /subdir/repo3a
                /repo3b

(Rationale: repo3a and repo3b are different repos of the same project,
whereas repo1 and repo2 are independent projects.)

If you request http://server/hg/bogus, it's fine: hgweb returns a 404 with
"Mercurial repository not found" in the body.  Good.

But if you request http://server/subdir/bogus, you get the index page for
all repos under /src/hg/subdir, the same as when you request
http://server/subdir/.  IMHO this is wrong: it should return a 404 error page.

----------
messages: 11603
nosy: gward
priority: bug
status: unread
title: hgwebdir with subdirectories fails to give 404 for invalid URL
topic: hgweb

____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue2023>
____________________________________________________


More information about the Mercurial-devel mailing list