I've started a fossil repo by importing a git repo to my local laptop, and
then cloning the repo over to my target production web server.

For testing, I've exposed the fossil server like this:

/usr/local/bin/fossil server /home/fossil/myrepo.fossil --th-trace -P 10080
--baseurl http://localhost:10080/

and I'm accessing the server from my laptop using an ssh tunnel:

ssh -L 10080:localhost:10080 mycompany.com

so that I can point my browser to localhost:10080 and see the site exposed
by fossil.  Works fine, including login etc, until I try to access an admin
page.

By "an admin page", I mean any admin page.  They all behave the same.

I click "Admin" and that works fine.  I click any of the links, and I'm
taken to a web page that has all of fossil's normal headers (so the name of
my project, who I'm logged in as, links for Admin, the Timeline etc) but
the body of the web page says "Empty page".  And the page title is e.g.
"xfersetup" instead of "Transfer Setup".  The other pages' titles are
analogous.

The TH tracer shows no indication that there is a capabilities issue:

=========================
BEGIN_HEADER
th1-setup {} => TH_OK
set project_name {My project name}
set title {xfersetup}
set baseurl {http://localhost:10080/}
set home {}
set index_page {/home}
set current_page {?name=xfersetup}
set release_version {1.26}
set manifest_version {[c9cb6e7293]}
set manifest_date {2013-06-18 21:09:23}
set compiler_name {gcc-4.4.5 20101112 (Red Hat 4.4.5-2)}
set login {eas}
BEGIN_HEADER_SCRIPT
eval {

     if {[info exists login]} {
       puts "Logged in as $login"
     } else {
       puts "Not logged in"
     }


}
eval {

html "<a href='$home$index_page'>Home</a>\n"
if {[anycap jor]} {
  html "<a href='$home/timeline'>Timeline</a>\n"
}
if {[hascap oh]} {
  html "<a href='$home/dir?ci=tip'>Files</a>\n"
}
if {[hascap o]} {
  html "<a href='$home/brlist'>Branches</a>\n"
  html "<a href='$home/taglist'>Tags</a>\n"
}
if {[hascap r]} {
  html "<a href='$home/reportlist'>Tickets</a>\n"
}
if {[hascap j]} {
  html "<a href='$home/wiki'>Wiki</a>\n"
}
if {[hascap s]} {
  html "<a href='$home/setup'>Admin</a>\n"
} elseif {[hascap a]} {
  html "<a href='$home/setup_ulist'>Users</a>\n"
}
if {[info exists login]} {
  html "<a href='$home/login'>Logout</a>\n"
} else {
  html "<a href='$home/login'>Login</a>\n"
}

}
[hascap jor] => 1
[hascap oh] => 1
[hascap o] => 1
[hascap r] => 1
[hascap j] => 1
[hascap s] => 1
END_HEADER
BEGIN_FOOTER
eval {

puts [expr {([utime]+[stime]+1000)/1000*0.001}]

}
END_FOOTER
=====================


Any hints?

Thanks,
Eric
_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to