Opened 19 years ago
Closed 18 years ago
#3192 closed defect (duplicate)
Sub directories in svn repo as main trac browsable source
| Reported by: | Owned by: | Christopher Lenz | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | version control | Version: | 0.10 |
| Severity: | normal | Keywords: | |
| Cc: | Branch: | ||
| Release Notes: | |||
| API Changes: | |||
| Internal Changes: | |||
Description
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 /
Attachments (0)
Change History (5)
comment:1 by , 19 years ago
| Version: | 0.9.5 → 0.10 |
|---|
comment:2 by , 19 years ago
comment:3 by , 19 years ago
| Milestone: | → 0.10.4 |
|---|
Ok, but the original issue should still be investigated, I think.
comment:5 by , 18 years ago
| Milestone: | 0.10.5 |
|---|---|
| Resolution: | → duplicate |
| Status: | new → closed |
Was likely a duplicate of #2477. Please reopen if it still doesn't work with latest 0.10-stable.



This seems to be related:
If the browsable root is a subdir of the repository root, attempting to download zips of the trees fails silently on most browsers (leaving just a blank page) and no message in any logs (apache or trac). I say most browsers because Safari generates an error page indicating NSURLErrorDomain: -1005. Cursory research seems to indicate that this is a timeout but the page appears within 2 seconds.