Unable to browse/view contents in cvs repository

Added by Neil K about 9 years ago

Hello,

Here is my environment.

Redmine 0.9.3
Ruby version 1.8.6 (i386-linux) (fedora 13)
RubyGems version 1.3.7
Rack version 1.0
Rails version 2.3.5
Active Record version 2.3.5
Active Resource version 2.3.5
Action Mailer version 2.3.5
Active Support version 2.3.5
Application root /opt/redmine
Environment production
Database adapter mysql
Database schema version 20100221100219

I was successfully added a cvs repository (CVSROOT as :pserver:user:password@cvsserver:/var/cvs) and executed "ruby script/runner "Repository.fetch_changesets" -e production" without any errors. But when I click in "Repositories" under a project I could see the error "The entry or revision was not found in the repository".

From the production.log, I could see:

Processing RepositoriesController#show (for x.x.x.x at 2010-06-15 17:26:09) [GET]
Parameters: {"action"=>"show", "id"=>"gcw", "controller"=>"repositories"}
Rendering template within layouts/base
Completed in 140ms (View: 18, DB: 3) | 500 Internal Server Error [http://x.x.x.x/projects/gcw/repository]

Can any one help me in this issue?

Replies (28)

RE: Unable to browse/view contents in cvs repository - Added by Neil K about 9 years ago

Felix, as far as I can understand, the problem I had was with the CVS server and client which doesn't have the 'rls' support. "rls" is for listing files and directories in the topmost directory of a repository.

Unfortunately, the version comes with Fedora 13 (the latest) is CVS 1.11.23 which does not have the rls support. CVS version 1.12.X seems to be supporting rls so it resolves the issue for me.

I think we need a CVS adapter which supports both versions (with and without rls support) of CVS so that no one will come across this issue :-)

RE: Unable to browse/view contents in cvs repository - Added by Felix Schäfer about 9 years ago

Neil K wrote:

Felix, as far as I can understand, the problem I had was with the CVS server and client which doesn't have the 'rls' support. "rls" is for listing files and directories in the topmost directory of a repository.

Unfortunately, the version comes with Fedora 13 (the latest) is CVS 1.11.23 which does not have the rls support. CVS version 1.12.X seems to be supporting rls so it resolves the issue for me.

Yes, I understood that. The question was wether this was a fedora specific problem, a problem that will arise more often because 'rls' is or will be deprecated, and so on.

I think we need a CVS adapter which supports both versions (with and without rls support) of CVS so that no one will come across this issue :-)

If it's Fedora specific, I'd almost say no. If it's inherent to CVS independently of what distribution it comes from: yes, and I'd ask you to file a bug.

RE: Unable to browse/view contents in cvs repository - Added by Neil K about 9 years ago

Its not a Fedora specific problem. Redmine will come across this issue with any CVS server prior to 1.12. Have a look at this discussion:

http://www.redmine.org/boards/1/topics/1061

I think we need to alter the cvs adapter as we can't expect all CVS servers have the rls support.

1 2 (26-28/28)