Opened 18 years ago
Closed 15 years ago
#4861 closed defect (duplicate)
InterTrac links don't work correctly with quoting for spaces
Reported by: | anonymous | Owned by: | Christian Boos |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | wiki system | Version: | 0.10.3 |
Severity: | minor | Keywords: | intertrac |
Cc: | simon@… | Branch: | |
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
I've only tried this with the milestone link since it is the only example I can try in my current projects. If I do something like the following (of course the milestone name is fictitious):
[t:milestone:"0.10.4 release" Milestone]
I don't see the expected
Milestone
but instead see
release' Milestone
for the link. Also, the URL shows /intertrac/milestone:"0.10.4
at the end. I assume the unpaired "
will probably confuse the link interpreter. We are running with *.compat
set to false
and all Trac projects are running the same Trac version (0.10.3). The space escape also fails with single quotes. The single or double quote escaping for spaces works just fine for links when not used in an intertrac context (i.e. [milestone:"0.10.4 release" Milestone]
Attachments (0)
Change History (4)
comment:1 by , 18 years ago
Component: | general → wiki |
---|---|
Milestone: | → 0.12 |
Owner: | changed from | to
Severity: | normal → minor |
comment:2 by , 16 years ago
Cc: | added |
---|
I ran across this problem in Trac 0.11 when using the source browser. I wanted to refer to a requirements document in another trac instance. The document has a space in the file name. It turns out that I have to use double quoting to make it work. I.e.
[prefix:'source:"path with a space"']
I think that is a teeny bit to clunky.
comment:3 by , 16 years ago
You're right, I assumed prefix:"source:path with a space"
would work but it doesn't, double quoting is needed right now.
There's also the <prefix:source:"path with a space">
alternative which comes with #7386.
comment:4 by , 15 years ago
Milestone: | next-major-0.1X |
---|---|
Resolution: | → duplicate |
Status: | new → closed |
Currently, the syntax for quoting is strict:
The prefix should not contain ":" itself.
So your example should be rewritten:
However, I agree that what you came with seems to be intuitive for InterTrac links (i.e. use the "normal" quoted Trac link
milestone:"0.10.4 release"
, then prepend the InterTrac prefix), so I'll give it a try.