Ticket #5787 (closed defect: fixed)
Erroneous parsing of command line arguments in trac-admin
| Reported by: | anonymous | Owned by: | cboos |
|---|---|---|---|
| Priority: | normal | Milestone: | 0.11.1 |
| Component: | admin/console | Version: | devel |
| Severity: | normal | Keywords: | backslash |
| Cc: |
Description
When adding permissions to an environment by means of the command line (rather than interactive mode), for example:
trac-admin C:\path\to\env permission add DOMAIN\user TRAC_ADMIN
The permission is added, but with a double backslash between the username and domain. The domain has to be specified because of the use of the Apache SSPI (mod_auth_sspi) module which gives us Windows Domain authentication, which we definitely need. This problem does not occur when going into interactive admin mode:
trac-admin C:\path\to\env
and then entering the permission add command:
permission add DOMAIN\user TRAC_ADMIN
This wouldn't be an issue if it weren't for the following: the interactive mode can't (AFAIK) be accessed from the command line, hence isn't accessible from a batch file. I use a batch file to create an environment and it would save loads of time if I could set the permissions correctly for each environment from that same batch file. I can imagine mine isn't the only scenario where this matters.


