Modify

Opened 15 years ago

Closed 15 years ago

#3382 closed defect (fixed)

Opening a /user/ page fails for usernames with a space (" ") in them

Reported by: avarab@… Owned by: team
Priority: major Milestone:
Component: Core Version: latest
Keywords: Cc:

Description

Usernames that have spaces in them e.g. "Ævar Arnfjörð Bjarmason" will be opened as http://www.openstreetmap.org/user/%C3%86var.

This bug was introduced in r2034 (see ticket:3379).

To reproduce try opening the dump of Iceland and doing a wildcard search.

Attachments (0)

Change History (5)

comment:1 by Gubaer, 15 years ago

Resolution: fixed
Status: newclosed

(In [2042]) fixed #3382: Opening a /user/ page fails for usernames with a space (" ") in them

in reply to:  1 comment:2 by avarab@…, 15 years ago

Resolution: fixed
Status: closedreopened

Replying to Gubaer:

(In [2042]) fixed #3382: Opening a /user/ page fails for usernames with a space (" ") in them

This is still broken. If I click on my username JOSM sends me to Ævar+Arnfjörð+Bjarmason instead of the correct Ævar Arnfjörð Bjarmason. I.e. it escapes " " as "+" instead of "%20".

comment:3 by Gubaer, 15 years ago

Not sure whether this is a defect on JOSMs side. Isn't it perfectly "legal" to encode a blank with either %20 or + according to the RFC ?

Anyway, in case of OSM web site we probably better switch to %20-encoding.

in reply to:  3 comment:4 by Mormegil, 15 years ago

Replying to Gubaer:

Not sure whether this is a defect on JOSMs side. Isn't it perfectly "legal" to encode a blank with either %20 or + according to the RFC ?

No, a space in the path component of a HTTP URI must be encoded as %20. See RFC 3986, section 3.3, the “+” character is a normally valid character in that part of a URI (as a member of sub-delims), and does not encode any other character. Some web servers/software might use + as an encoding for space (and escape “+” characters, if they can appear in the specific context, using percent encoding), but that is entirely their local choice, not a universal standard.

comment:5 by Gubaer, 15 years ago

Resolution: fixed
Status: reopenedclosed

(In [2073]) fixed #3382: Opening a /user/ page fails for usernames with a space (" ") in them

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
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.