Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 98930 - websvn configclass parameter error crashes repository display
Summary: websvn configclass parameter error crashes repository display
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Roy Marples (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-13 15:56 UTC by Nacho Garcia
Modified: 2005-07-15 02:29 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nacho Garcia 2005-07-13 15:56:01 UTC
When installing websvn-1.61 out-of-the-box the system fails to display a
repository, returning the message "No repository given".

Reproducible: Always
Steps to Reproduce:
1.emerge websvn
2.configure include/config.inc to add a repository
3.access "localhost/websvn" and access the repository previously specified

Actual Results:  
System shows message "No repository given"

Expected Results:  
Display the current repository

Apparently, the bug is caused by a mismatch between the parameters in the url
created by the config class and the parameters expected by the listing.php file.
Config class creates an url with a parameter named "repname", but the file
listing.php expects the parameter to be named "rep".

This can be solved by simply replacing file include/configclass.inc, line 405
   return $fname."?repname=".$rep->name."&path=".urlencode($path)."&";

with
   return $fname."?rep=".$rep->name."&path=".urlencode($path)."&";
Comment 1 Roy Marples (RETIRED) gentoo-dev 2005-07-15 02:29:46 UTC
Could you test by specifying a parent path instead of a direct repo?

Your fix does not work btw as this shows the first repository
http://localhost/websvn/listing.php?rep=dsfdsfsdfdsf&path=%2Fddddd&sc=0