sventonsvn / sventon

This is sventon's final resting place.
Other
10 stars 13 forks source link

info?revision returns repos list (Bug #18362) #2

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
When repository name contains "log" at the end of its name the info?revision 
action returns list of repositories.

For example the repository "framework-service-catalog" gets truncated to 
"framework-service-cata":

2011-09-15 16:28:11,585 DEBUG [org.sventon.web.ctrl.template.ShowLogController] 
- 
<MultipleEntriesCommand[entries={},path=/info,pegRevision=-1,revision=368,revisi
onNumber=368,repositoryName=framework-service-cata,sortType=<null>,sortMode=<nul
l>,logger=org.apache.commons.logging.impl.Log4JLogger@10bc995]>
2011-09-15 16:28:11,585 DEBUG [org.sventon.web.ctrl.template.ShowLogController] 
- <RepositoryName [framework-service-cata] does not exist, redirecting to 
'/repos/list'>

The full log :

2011-09-15 16:28:07,419 DEBUG 
[carbonfive.spring.web.pathparameter.ParameterizedUrlHandlerMapping] - <Path: 
/repos/framework-service-catalog/log/>
2011-09-15 16:28:07,419 DEBUG 
[carbonfive.spring.web.pathparameter.ParameterizedUrlHandlerMapping] - <Mapping 
[/repos/framework-service-catalog/log/] to handler 
'org.sventon.web.ctrl.template.ShowLogController@135ae7e'>
2011-09-15 16:28:07,419 DEBUG [org.sventon.web.ctrl.template.ShowLogController] 
- <Creating new command of class 
[org.sventon.web.command.MultipleEntriesCommand]>
2011-09-15 16:28:07,419 DEBUG [org.sventon.web.ctrl.template.ShowLogController] 
- 
<MultipleEntriesCommand[entries={},path=/,pegRevision=-1,revision=HEAD,revisionN
umber=-1,repositoryName=framework-service-catalog,sortType=<null>,sortMode=<null
>,logger=org.apache.commons.logging.impl.Log4JLogger@10bc995]>
2011-09-15 16:28:07,435 DEBUG 
[org.sventon.service.CacheAwareRepositoryServiceImpl] - <Fetching [20] 
revisions in the interval [1-368]>
2011-09-15 16:28:07,451 DEBUG [org.sventon.web.ctrl.template.ShowLogController] 
- <'command' set to: 
MultipleEntriesCommand[entries={},path=/,pegRevision=-1,revision=HEAD,revisionNu
mber=368,repositoryName=framework-service-catalog,sortType=<null>,sortMode=<null
>,logger=org.apache.commons.logging.impl.Log4JLogger@10bc995]>
2011-09-15 16:28:11,585 DEBUG 
[carbonfive.spring.web.pathparameter.ParameterizedUrlHandlerMapping] - <Path: 
/repos/framework-service-catalog/info>
2011-09-15 16:28:11,585 DEBUG 
[carbonfive.spring.web.pathparameter.ParameterizedUrlHandlerMapping] - <Mapping 
[/repos/framework-service-catalog/info] to handler 
'org.sventon.web.ctrl.template.ShowLogController@135ae7e'>
2011-09-15 16:28:11,585 DEBUG [org.sventon.web.ctrl.template.ShowLogController] 
- <Creating new command of class 
[org.sventon.web.command.MultipleEntriesCommand]>
2011-09-15 16:28:11,585 DEBUG [org.sventon.web.ctrl.template.ShowLogController] 
- 
<MultipleEntriesCommand[entries={},path=/info,pegRevision=-1,revision=368,revisi
onNumber=368,repositoryName=framework-service-cata,sortType=<null>,sortMode=<nul
l>,logger=org.apache.commons.logging.impl.Log4JLogger@10bc995]>
2011-09-15 16:28:11,585 DEBUG [org.sventon.web.ctrl.template.ShowLogController] 
- <RepositoryName [framework-service-cata] does not exist, redirecting to 
'/repos/list'>
2011-09-15 16:28:12,084 DEBUG 
[carbonfive.spring.web.pathparameter.ParameterizedUrlHandlerMapping] - <Path: 
/repos/list>
2011-09-15 16:28:12,084 DEBUG 
[carbonfive.spring.web.pathparameter.ParameterizedUrlHandlerMapping] - <Mapping 
[/repos/list] to handler 
'org.sventon.web.ctrl.ListRepositoriesController@16ee3ec'>
2011-09-15 16:33:00,157 DEBUG 
[carbonfive.spring.web.pathparameter.ParameterizedUrlHandlerMapping] - <Path: 
/repos/class/list/>
2011-09-15 16:33:00,157 DEBUG 
[carbonfive.spring.web.pathparameter.ParameterizedUrlHandlerMapping] - <Mapping 
[/repos/class/list/] to handler 
'org.sventon.web.ctrl.template.RepoBrowserController@19050a0'>
2011-09-15 16:33:00,157 DEBUG 
[org.sventon.web.ctrl.template.RepoBrowserController] - <Creating new command 
of class [org.sventon.web.command.MultipleEntriesCommand]>
2011-09-15 16:33:00,157 DEBUG 
[org.sventon.web.ctrl.template.RepoBrowserController] - 
<MultipleEntriesCommand[entries={},path=/,pegRevision=-1,revision=HEAD,revisionN
umber=-1,repositoryName=class,sortType=<null>,sortMode=<null>,logger=org.apache.
commons.logging.impl.Log4JLogger@10bc995]>

Original issue reported on code.google.com by jesper.hammarback on 12 Oct 2011 at 8:35

GoogleCodeExporter commented 9 years ago
This is because of a bug in the path regex parser. 

Similar to bug #17465. 

Reproducable with other URLs as well. 
A repo named eg. "target" would make the sventon "get" call to fail. 

Original comment by jesper.hammarback on 12 Oct 2011 at 8:35