Edgewall Software
Modify

Ticket #8576 (closed defect: worksforme)

Opened 2 years ago

Last modified 2 years ago

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:
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

Change History

comment:1 Changed 2 years ago by cboos

  • Resolution set to worksforme
  • Status changed from new to closed

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 Changed 2 years ago by anonymous

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

comment:3 Changed 2 years ago by gerrior@…

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.

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
to The owner will be changed from (none). Next status will be 'closed'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.