Edgewall Software

Opened 3 years ago

Last modified 3 years ago

#12792 new defect

Configuration parsing in svn_authz module ignores user "rem" as a comment

Reported by: Ryan J Ollos Owned by:
Priority: normal Milestone: next-stable-1.2.x
Component: general Version:
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:


Copied from 12649#comment:11:

ConfigParser ignores a line started with rem as a comment. User named rem cannot be used in.

>>> from trac.versioncontrol.svn_authz import parse
>>> from trac.util import read_file
>>> print(read_file('/tmp/svnauthz.txt'))
foo = rw
REM = rw
Rem = rw
rem = rw

>>> parse('/tmp/svnauthz.txt', [''])
{'': {u'/path/to': {u'foo': True}}}

Attachments (0)

Change History (1)

comment:1 by Peter Suter, 3 years ago

Summary: Simplify configuration parsing in svn_authz moduleConfiguration parsing in svn_authz module ignores user "rem" as a comment
Type: enhancementdefect

Modify Ticket

Change Properties
Set your email in Preferences
as new The ticket will remain with no owner.
The ticket will be disowned. Next status will be 'new'.
as The resolution will be set. Next status will be 'closed'.
The owner will be changed from (none) to anonymous. Next status will be 'assigned'.

Add Comment

E-mail address and name can be saved in the Preferences .
Note: See TracTickets for help on using tickets.