Edgewall Software
Modify

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 Christian Boos, 18 years ago

Component: generalwiki
Milestone: 0.12
Owner: changed from Jonas Borgström to Christian Boos
Severity: normalminor

Currently, the syntax for quoting is strict:

[prefix:"target with spaces" label(with spaces as well)]

The prefix should not contain ":" itself.

So your example should be rewritten:

[t:"milestone:0.10.4 release" Milestone]

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.

comment:2 by simon@…, 16 years ago

Cc: simon@… 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 Christian Boos, 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 Christian Boos, 15 years ago

Milestone: next-major-0.1X
Resolution: duplicate
Status: newclosed

This is also fixed by r9284 (and r9297 so that the example given in this description works), so I'm closing as duplicate of #4865.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christian Boos.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christian Boos to the specified user.

Add Comment


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