#3192: Sub directories in svn repo as main trac browsable source
------------------------------+---------------------------------------------
 Reporter:  [EMAIL PROTECTED]  |       Owner:  cmlenz
     Type:  defect            |      Status:  new   
 Priority:  normal            |   Milestone:        
Component:  version control   |     Version:  0.9.5 
 Severity:  normal            |    Keywords:        
------------------------------+---------------------------------------------
 When using a subdirectory in a subversion repository as the browseable
 source of a trac it all works nicely.

 Say the repo is called myrepo, the directory in that is called mydir.

 From trac.ini:
 {{{
 repository_dir = /var/svn/myrepo/mydir
 authz_file = /var/svn/conf/svnaccess.conf
 authz_module_name = myrepo
 }}}
 From svnaccess.conf:
 {{{
 [myrepo:/]
 douglas = rw

 [myrepo:/mydir]
 douglas = r
 }}}
 When logged in as douglas in Trac, I can view the sub-dir of the
 repository perfectly, however, if another user, say...Bob were to log in,
 he would get the following error if he selected browse source:

 '''Oops...'''
 {{{
 Trac detected an internal error:
 (None, 220001)
 }}}
 '''Python traceback'''
 {{{
 Traceback (most recent call last):
   File "/usr/lib/python2.4/site-packages/trac/web/modpython_frontend.py",
 line 206, in handler
     dispatch_request(mpr.path_info, mpr, env)
   File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 139, in
 dispatch_request
     dispatcher.dispatch(req)
   File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 107, in
 dispatch
     resp = chosen_handler.process_request(req)
   File "/usr/lib/python2.4/site-
 packages/trac/versioncontrol/web_ui/browser.py", line 78, in
 process_request
     repos = self.env.get_repository(req.authname)
   File "/usr/lib/python2.4/site-packages/trac/env.py", line 162, in
 get_repository
     repos = SubversionRepository(repos_dir, authz, self.log)
   File "/usr/lib/python2.4/site-packages/trac/versioncontrol/svn_fs.py",
 line 215, in __init__
     self.fs_ptr, self.pool, 0, self.rev):
   File "/usr/lib/python2.4/site-packages/trac/versioncontrol/svn_fs.py",
 line 44, in _get_history
     start, end, 1, pool())
 SubversionException: (None, 220001)
 }}}
 I would have expected the user to get an error similar to as if the trac's
 subversion was set to the root of a subversion directory (Appropriately
 modified of course), which is:

 '''Permission Denied'''
 {{{
  Insufficient permissions to access /
 }}}

-- 
Ticket URL: <http://projects.edgewall.com/trac/ticket/3192>
The Trac Project <http://trac.edgewall.com/>
_______________________________________________
Trac-Tickets mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac-tickets

Reply via email to