Edgewall Software

Opened 6 years ago

Closed 6 years ago

#12108 closed defect (fixed)

SubversionRepository.get_path_url() should encode meta characters and unicode characters

Reported by: Jun Omae Owned by: Jun Omae
Priority: normal Milestone: 1.0.7
Component: version control Version: 0.12-stable
Severity: normal Keywords: svn
Cc: Branch:
Release Notes:

SubversionRepository.get_path_url() encodes meta characters and unicode characters in the generated URL.

API Changes:
Internal Changes:


SubversionRepository.get_path_url() generates URL for the given path and revision. The given path can include meta characters and unicode characters, e.g. #, %, ?.

However, the method returns generated URL without url-encoding. It should encode those characters in the URL.

>>> DbRepositoryProvider(env).modify_repository('svnrepos', {'url': 'http://localhost'})
>>> repos = env.get_repository('svnrepos')
>>> repos.get_path_url(u'tête/Résumé.txt', 29)
>>> repos.get_path_url(u'trunk/file#name.txt', 29)
>>> repos.get_path_url(u'trunk/file%name.txt', 29)

Attachments (0)

Change History (2)

comment:1 by Jun Omae, 6 years ago

Owner: set to Jun Omae
Status: newassigned

Proposed changes in [e1ba288b9/jomae.git].

comment:2 by Jun Omae, 6 years ago

Release Notes: modified (diff)
Resolution: fixed
Status: assignedclosed

Committed in [14115] and merged to trunk in [14116].

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Jun Omae.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jun Omae 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.