Modify ↓
#12661 closed defect (fixed)
Escape arguments for command line so spaces in paths are quoted
Reported by: | anonymous | Owned by: | Ryan J Ollos |
---|---|---|---|
Priority: | lowest | Milestone: | 1.0.14 |
Component: | admin/console | Version: | |
Severity: | trivial | Keywords: | bitesized |
Cc: | Branch: | ||
Release Notes: |
Environment path is escaped in environment needs upgrade message. |
||
API Changes: | |||
Internal Changes: |
Description (last modified by )
The hint in this error message is wrong:
Trac Error TracError: The Trac Environment needs to be upgraded. Run "trac-admin c:\Users\Mike\My Documents\TracEnv upgrade"
Running that command without quotes leads to this error:
Error: No Trac environment found at c:\users\mike\my [Errno 2] No such file or directory: 'c:\users\mike\my\VERSION'
It should be:
Run 'trac-admin "c:\Users\Mike\My Documents\TracEnv" upgrade'
Attachments (0)
Change History (8)
comment:1 by , 8 years ago
Description: | modified (diff) |
---|---|
Keywords: | bitesized added |
Milestone: | → unscheduled |
Priority: | normal → lowest |
Severity: | normal → trivial |
comment:2 by , 8 years ago
Milestone: | unscheduled → 1.2.1 |
---|---|
Owner: | set to |
Status: | new → assigned |
comment:3 by , 8 years ago
Milestone: | 1.2.1 → 1.0.14 |
---|
comment:4 by , 8 years ago
Release Notes: | modified (diff) |
---|---|
Resolution: | → fixed |
Status: | assigned → closed |
Committed in [15654:15656].
comment:5 by , 8 years ago
The same issue exists at other locations. I noticed while checking output of make extract
.
$ git grep -E 'trac-admin\s+%' mirror/1.0-stable -- '*.py' mirror/1.0-stable:trac/admin/console.py: printout(_("""Welcome to trac-admin %(version)s mirror/1.0-stable:trac/admin/console.py: 'Run "trac-admin %(path)s upgrade"', mirror/1.0-stable:trac/env.py: "running:\n\n trac-admin %(path)s wiki upgrade", mirror/1.0-stable:trac/versioncontrol/admin.py: resync = tag.tt('trac-admin %s repository resync ' mirror/1.0-stable:trac/versioncontrol/admin.py: cset_added = tag.tt('trac-admin %s changeset ' mirror/1.0-stable:trac/versioncontrol/admin.py: resync = tag.tt('trac-admin %s repository resync ' mirror/1.0-stable:trac/versioncontrol/admin.py: cset_added = tag.tt('trac-admin %s changeset '
comment:6 by , 8 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
comment:7 by , 8 years ago
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
Thanks for spotting. Additional changes in [15683:15685].
Note:
See TracTickets
for help on using tickets.
The change looks simple enough:
trac/env.py
"trac-admin %(path)s upgrade"',