Re: [viewvc-users] viewvc svn revealing fullpaths

"C. Michael Pilato" <[email protected]>
Newsgroups gmane.comp.version-control.cvs.viewcvs.user
Organization CollabNet, Inc.
Message-ID <4B2BB0DC.3060003__46993.7861817472$1261154548$gmane$org@collab.net>
Adam,

I've never seen anything like what you describe.  ViewVC's default (only!)
behavior is to expose URLs in one of these two forms:

   http://<script_location>/<repos_name>/path/in/repos
   http://<script_location>/path/in/repos?root=<repos_name>

I'll review your configuration stuffs inline below.

> Why is it, once I get to "/viewvc-cgi/viewvc.cgi/repository/", I
> must then navigate through the real directory structure to reach
> the true module? Any advice on how to change this?  What
> configuration items am I missing?

Is there any chance that the versioned directory structure inside the
repository actually reflects this tree?  If you run 'svn ls
file:///usr/home/svn/repository' on your machine, do you get a listing that
contains 'Module_1', 'Module_2', etc., or you do you see instead 'usr'?

> repository stored here:
> 
>   /usr/home/svn/repository
> 
> repository was created with this command:
> 
>   $ svnadmin create /usr/home/svn/repository

So, /usr/home/svn/repository is a *repository*, not a directory containing
one or more repositories.  We'll come back to this.

> apache configuration:
> 
>    ScriptAlias /viewvc-cgi/ "/usr/local/viewvc/bin/cgi/"
>    <Directory "/usr/local/viewvc/bin/cgi">
>       AllowOverride None
>       Options None
>       Order allow,deny
>       Allow from all
>    </Directory>

May I suggest pointing your alias at the ViewVC CGI script itself?  Just
makes for cleaner URLs.

    ScriptAlias /viewvc-cgi "/usr/local/viewvc/bin/cgi/viewvc.cgi"

> viewvc lives in "/usr/local/viewvc", and relevant configuration
> items are:
> 
>   root_parents = /usr/home/svn/repository: svn
>   root_as_url_component = 1
>   allowed_views = annotate, diff, markup, roots, co, tar
>   default_file_view = co

Since /usr/home/svn/repository is a repository, not a repository parent, you
don't want to use 'root_parents' here.  You want to instead use the
'svn_roots' configuration directive:

   svn_roots = repository: /usr/home/svn/repository

The other settings you mention are fine.

-- 
C. Michael Pilato <[email protected]>
CollabNet   <>   www.collab.net   <>   Distributed Development On Demand

------------------------------------------------------
http://viewvc.tigris.org/ds/viewMessage.do?dsForumId=4255&dsMessageId=2431524

To unsubscribe from this discussion, e-mail: [[email protected]].
signature.asc (application/pgp-signature, 197 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAksrsNwACgkQokEGqRcG/W5ZegCgjluc8NBY5asPKvsk1XTzMWyG
fmkAnRtCEVeN+AhuAtsaJH4TTCLJIolw
=enjR
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.