Hi Gurpreet,

Gurpreet Singh (SCM) <[EMAIL PROTECTED]> writes:

> Hi All,
> Well I am facing a peculiar problem with CVSweb.
> The error message (in a separate POp up window) being received while
> clicking on the "download" button of a particular file is the following :
> ______________________________________
> Error
> Error: Unexpected output from cvs co: cvs [checkout aborted]: Absolute
> module reference invalid: `/Project1/Path1/trial.mcp' 
> Check whether the directory /cvsRepo/CVSROOT exists and the script has
> write-access to the CVSROOT/history file if it exists.
> The script needs to place lock files in the directory the file is in as
> well. 
> _______________________________________
> I have checked all the config files and the read / write access on the
> CVSroot / repsitory.
> Any specific access priveleges to be checked..  or any idea where the
> approach should be like.
> Regards
> Gurpreet S

Hmmm... more fun using cvsweb....

You may find viewcvs.sourceforge.net to be a 'better' web interface to
your repository.

The basic problem is that cvsweb is trying to

    cvs checkout -p -r<some-revision> /Project1/Path1/trial.mcp

using an absolute path for the Project1 module instead of a relative
path like this:

    cvs checkout -p -r<some-revision> Project1/Path1/trial.mcp

I suspect that you will find the patch following my .signature to cvsweb
(depending on which of the many various versions of cvsweb floating
around are in use) will fix your problem as it properly removes the
leading slash from module names.

        Good luck,
        -- Mark

--- cvsweb~     2003-10-29 19:21:27.000000000 -0800
+++ cvsweb      2004-01-27 01:14:51.928244000 -0800
@@ -115,6 +115,7 @@ $where = defined($ENV{'PATH_INFO'}) ? $E
 $doCheckout = ($where =~ /^\/$checkoutMagic/);
 $where =~ s|^/($checkoutMagic)?||;
 $where =~ s|/+$||;
+$where =~ s|^/+||;
 ($scriptname = $ENV{'SCRIPT_NAME'}) =~ s|^/?|/|;
 $scriptname =~ s|/+$||;
 if ($where) {

Info-cvs mailing list

Reply via email to