Possible Bug with Mercurial hgwebdir and RSS

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Possible Bug with Mercurial hgwebdir and RSS

Sean Kelley-5
I host Mercurial hgwebdir on apache2 with SSL.  I noticed that when I
click on an RSS feed, that there is always an error because the URL is
changed from https:// to http:// with port 443.

For example:

I can get to the feed for the changelog:

https://hg.myserver.com/hgweb/montana/apps/calculator/rss-log

But when I click on one of the items listed, I get this and a resulting error:

http://hg.myserver.com:443/hgweb/montana/apps/calculator/rev/9c30d1b194c5

Bad Request

Your browser sent a request that this server could not understand.
Reason: You're speaking plain HTTP to an SSL-enabled server port.
Instead use the HTTPS scheme to access this URL, please.

    Hint: https://hg.myserver.com/

Why is it dropping https and instead changing it to http with port 443
when it builds the log?

I am using mercurial 0.9.4

Sean
_______________________________________________
Mercurial mailing list
[hidden email]
http://selenic.com/mailman/listinfo/mercurial
Reply | Threaded
Open this post in threaded view
|

Re: Possible Bug with Mercurial hgwebdir and RSS

Wesley J. Landaker
On Wednesday 11 July 2007 10:27:18 Sean Kelley wrote:
> I host Mercurial hgwebdir on apache2 with SSL.  I noticed that when I
> click on an RSS feed, that there is always an error because the URL is
> changed from https:// to http:// with port 443.

I had this same problem, and I recently submitted a patch that fixes this
(in most cases).

See the thread on mercurial-devel "[PATCH] Make {urlbase} work in templates
when https is used" for details, or you can pull it out of the mercurial
crew repository.

--
Wesley J. Landaker <[hidden email]> <xmpp:[hidden email]>
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2

_______________________________________________
Mercurial mailing list
[hidden email]
http://selenic.com/mailman/listinfo/mercurial

signature.asc (196 bytes) Download Attachment