Opened 15 years ago
Closed 15 years ago
#416 closed defect (fixed)
Permission on SVN can break the server (Patch Inside)
Reported by: | andrea.tomasini@… | Owned by: | osimons |
---|---|---|---|
Priority: | blocker | Milestone: | 0.6 |
Component: | Trac plugin | Version: | 0.5.3 |
Keywords: | svn permission | Cc: | |
Operating System: | Linux |
Description
Hi all,
I had a problem with the trunk version update related to the right
of the user to access a specific branch of the SVN repository. The assumption that all the branches are open to everybody is not sustainable :-)
Index: bitten/queue.py =================================================================== --- bitten/queue.py (revision 653) +++ bitten/queue.py (working copy) @@ -50,7 +50,7 @@ db = env.get_db_cnx() try: node = repos.get_node(config.path) - except NoSuchNode, e: + except Exception, e: env.log.warn('Node for configuration %r not found', config.name, exc_info=True) return
This replaces the No Such Node? with a generic exception, cause it might be the node is existing but the current user can't access it. There may be a better way of solving it, putting the list (tuple) of all the possible exceptions :-)
For now it works, at least I can access the server no 500 anymore :-)
Attachments (0)
Change History (2)
comment:1 Changed 15 years ago by osimons
- Owner set to osimons
comment:2 Changed 15 years ago by osimons
- Resolution set to fixed
- Status changed from new to closed
Committed in [655]. Thanks!
Agree, and agree to keep it simple. Catch all types, and log a warning. I'll fix it.