Edgewall Software
Modify

Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#8576 closed defect (worksforme)

source: and export: links don't work with %20 in repository path

Reported by: anonymous Owned by:
Priority: high Milestone:
Component: version control Version: 0.11.5
Severity: major Keywords:
Cc: Branch:
Release Notes:
API Changes:

Description

I have a repository path with a space in it.

Attempting to link from the wiki to a URL of the form 'source:File%20Name' does not work. It appears that the % is double-encoded and ends up as File%2520Name which is invalid,

The exact syntax in the wiki is:

[source:Technical%20Documentation Technical Documentation]

which renders as expected. However the generated link is to .../browser/Technical%2520Documentation and clicking on this link yields a Trac error:

Trac Error
No node /Technical%20Documentation at revision 2

The same applies to export: links and maybe others too…

Suggestion: Don't double URL-encode source: and export: links, or at least provide us some way of entering a space in the link URL.

Attachments (0)

Change History (3)

comment:1 by Christian Boos, 10 years ago

Resolution: worksforme
Status: newclosed

The "%20" escape is indeed not supported on purpose, write instead:

[source:"Technical Documentation" Technical Documentation]

Well, you actually don't even need to specify the label in this example:

[source:"Technical Documentation"]

See TracLinks#QuotingspaceinTracLinks.

comment:2 by anonymous, 10 years ago

Thanks cboos, I somehow missed that part of the documentation despite reading TracLinks *and* searching for it…!

comment:3 by gerrior@…, 10 years ago

Can someone please explain why this is a feature? %20 in URL's used to work (pre 0.11?). In the past I'd taught my users to navigate to the file using the source browser and copy the path from the URL to paste into their wiki edit pane for their source entries. Safari encode's the URL with %20 while Firefox does not.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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