[issue3170] Links are created in a wrong way - broken links (hgweb)
Cerem Cem ASLAN
bugs at mercurial.selenic.com
Fri Dec 23 03:42:21 CST 2011
New submission from Cerem Cem ASLAN <ceremcem at ceremcem.net>:
I setup Nginx+FCGI+hgweb. I can clone/pull/push repositories and everything
is OK with that.
While browsing the repositories, something happening mostly (but not
everytime?) which leads the page links broken.
When I type https://hg.example.com my repositories are shown. When I click
the example_repo, a page comes but with no valid css and broken links which
is because, for example, css link is constructed as
<link rel="stylesheet"
href="/example_repo/example_repo/static/style-paper.css" type="text/css" />
The other links (graph, tip, etc...) are wrong because they are constracted
in the same way (eg. graph link's href attribute value is
"/example_repo/example_repo/graph/fe9ce383fd73").
Then I click the "bookmarks" link (any other link behaves similar except for
"graph" link). Page redirects to
https://hg.example.com/example_repo/example_repo/bookmarks and there is an
error page comes with a message
An error occurred while processing your request:
00manifest.i at bookmarks: no match found
and *strangely* with a valid css. In this error page, all links' href
attributes are correctly constructed.
Then I click "graph" link. My example_repo's graph is shown in a page, which
has a valid css.
Then I click "tags" link. Tags page comes with no error reported, but with
an invalid css (because of path), broken links (in the same way I mentioned
before).
Then I click "branches" link. Page redirects me
http://hg.example.com/example_repo/tags/example_repo/branches address.
Branches page comes with no error reported, with a valid css, all links OK.
Then I click "logs" link. Everything is happening as expected in a normal way.
Then I click "bookmarks" link. A page with an invalid css again. No errors
reported.
Then I click "branches" link. The bookmarks page comes again, with a valid
css, with correct links, while
https://hg.example.com/example_repo/bookmarks/example_repo/branches is
written on the address bar.
Then I click "tags" link. A page with an invalid css again. No errors reported.
Then I click "graph" link. Link redirects me to
https://hg.example.com/example_repo/tags/example_repo/graph page. This page
is the tags page, actually. No valid css. Broken links.
Then I click "log" link. Link redirects me to
https://hg.example.com/example_repo/tags/example_repo/graph/example_repo/shortlog.
This page is the tags page, with no valid css and broken links.
I clear the address and type "https://hg.example.com/". The expected page
comes with valid css.
Then I click "example_repo". A page with an invalid css, broken links.
If any link clicked other than "tags" and "bookmarks", pages are displayed
as expected.
If I click "tags" or "bookmarks", the pages come with an invalid css path,
broken links.
If I click "bookmarks", bookmarks page with invalid css path comes. No error
reported. If I click "branches" or "help", still the bookmarks page is
displayed, with a valid css and correct links.
If I click "tags", tags page with invalid css path comes. No error reported.
If I click "bookmarks", "branches" or "help", still the tags page is
displayed, with a valid css and correct links.
And so on...
This is the issue.
It could be related with my Nginx configuration. Here is the related part
server{
...
location / {
...
fastcgi_pass 127.0.0.1:9011;
include fastcgi_hg_safe;
}
}
Where fastcgi_hg_safe file contains:
# These are the minimum requirements in order to run hgweb correctly
fastcgi_param PATH_INFO $uri; # required for working links
fastcgi_param REMOTE_USER $remote_user; # required for allow_push section
fastcgi_param HTTPS $server_https; # required for allowing push via https
----------
messages: 18409
nosy: ceremcem
priority: bug
status: unread
title: Links are created in a wrong way - broken links (hgweb)
topic: hgweb
____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue3170>
____________________________________________________
More information about the Mercurial-devel
mailing list