Problem viewing .cgi files using hgwebdir.cgi ( mercurial 1.2)
Sathish Sathyan
satheeshsat at yahoo.co.in
Wed Apr 1 16:12:09 CDT 2009
Well, I had raised a issue in mercurial (http://www.selenic.com/mercurial/bts/issue1580) and the culprit changeset(7406:ee8af8a4d905) was found. I went ahead and commented the 2 lines in wsgicgi.py, that were added as part of this changeset. Now, everything seems to be working as expected. Thanks, guys!
________________________________
From: Sathish Sathyan <satheeshsat at yahoo.co.in>
To: Greg Ward <greg-hg at gerg.ca>
Cc: mercurial at selenic.com
Sent: Saturday, 28 March, 2009 11:50:37 AM
Subject: Re: Problem viewing .cgi files using hgwebdir.cgi ( mercurial 1.2)
Greg,
Sorry that I did not provide the full details. Yes, I downgraded to 1.0.2 and then checked, it worked fine.
I tried with hg-serve with the 1.2 version of mercurial and this time too I was able to view the .cgi files.
The combination of hgwebdir.cgi , apache and mercurial 1.2 is the only time when I hit this error.
In fact, it is easy to reproduce.
I try a non existent file on the repo (sat.txt and sat.cgi) and the results are different.
http://<server>/hg/sael/file/b90053f8e510/configuration/sat.txt gives me the "An error occured while processing your request" error (default behaviour), but when I replace the .txt with .cgi , it goes to the repository listing page( which is the problem).
Very weird.
Please let me know if you need more info..
Thanks,
Sathish
________________________________
From: Greg Ward <greg-hg at gerg.ca>
To: Sathish Sathyan <satheeshsat at yahoo.co.in>
Cc: mercurial at selenic.com
Sent: Saturday, 28 March, 2009 9:10:24 AM
Subject: Re: Problem viewing .cgi files using hgwebdir.cgi ( mercurial 1.2)
2009/3/27 Sathish Sathyan <satheeshsat at yahoo.co.in>:
> I am using hgwebdir.cgi(over httpd) to view multiple mercurial repos.
> After the upgrade of mercurial from 1.0.2 to 1.2, I am seeing a weird
> problem.
> Whenever I try to view the files with .cgi extension(for eg:
> http://<server>/hg/sael/file/b90053f8e510/sources/cgi/sat/info.cgi in it, it
> brings me back to the first screen(the repositories listing screen).
How odd. Are you sure you didn't change anything in your Apache
config around the same time as you upgraded Mercurial? Did you try
downgrading back to 1.0.2 just to be sure?
Also, did you try accessing the same repository with an "hg serve"
server, i.e. get Apache out of the loop entirely? If *.cgi files are
treated specially there, then there is definitely something broken in
Mercurial.
Greg
________________________________
Add more friends to your messenger and enjoy! Invite them now.
Add more friends to your messenger and enjoy! Go to http://messenger.yahoo.com/invite/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://selenic.com/pipermail/mercurial/attachments/20090402/edae6220/attachment.htm
More information about the Mercurial
mailing list