[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools] Re: CVS fails to work with locations having slash at end
|
Michael Valenta wrote:
>
> I am looking into this issue but I need some clarification on your
> situation.
> First, I'll share my findings:
>
> - I tried the following cvs command from the command line
> cvs -d :pserver:user@host:/repo/ login
> This login is reject with the message "no such repository"
> even though the repository named repo exists and conections
> without the trailing slash succeed.
> - From Eclipse, including the trailing slash causes authentication
> to fail as above but we do not pass the message from CVS on to the
> user (a PR for this has been raised but it is really a side issue)
>
> Therefore, it appears that it is pserver that doesn't like the trailing
> slash.
> The solution would be to not allow the user to specify a trailing slash in
> a repository location. However, from what you've written, it sounds like
> you need to be able to include the trailing slash due to the way your
> server is
> configured. Is this so? If it is, can you let me know how your server is
> configured so we can look into this in more depth?
Our partners use some Linux server (I dont know exactly version of
their CVS software, but I think this problem the same on all UNIXes).
Their pserver is configured to only allow authentication when trailing
slash is present.
I can checkout thei'r repository from command line CVS tools and from
Netbeans. So this configuration is uncommon but possible and you should'n
disable trailing slash.
I have reprodused this problem on my own server. First I have same
problems you have with authentication... then I found in manual reason:
When pserver is used then you can only connect to repositories
specified in pserver daemon. If pserver is started with
"--allow-root=/repo" then you can login ":pserver:user@host:/repo"
but can't login to ":pserver:user@host:/repo/"! pserver should be
starded with "--allow-root=/repo/". "--allow-root" can be specified
as many times as you need (as anyone can have more than one repository
on one server...)
So I have changed inetd.conf of my server to allow connections for
both when trailing stash is presented and when it is not presented.
There is a string from my inetd.conf:
cvspserver stream tcp nowait root /usr/bin/cvs cvs --allow-root=/cvsroot --allow-root=/cvsroot/ pserver
I use CVS pserver on FreeBSD:
$ cvs --version
Concurrent Versions System (CVS) 1.10.7 (client/server)
When I connect without trailing slash all is fine. But when I add trailing
slash I can only authenticate and see top level projects, but can not browse
these projects and can't "Add to Workspace".