Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 98930

Summary: websvn configclass parameter error crashes repository display
Product: Gentoo Linux Reporter: Nacho Garcia <ngdelamo>
Component: Current packagesAssignee: Roy Marples (RETIRED) <uberlord>
Status: RESOLVED TEST-REQUEST    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

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."&amp;path=".urlencode($path)."&amp;";

with
   return $fname."?rep=".$rep->name."&amp;path=".urlencode($path)."&amp;";
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