Modify

Opened 15 years ago

Closed 15 years ago

#1875 closed defect (fixed)

[PATCH] DirectUpload plugin incorrectly encodes the OSM username: Users with non-ascii characters in their names can't upload traces

Reported by: anonymous Owned by: Subhodip Biswas <subhodipbiswas@…>
Priority: minor Milestone:
Component: Plugin Version: latest
Keywords: Cc:

Description

My username is "Ævar Arnfjörð Bjarmason". When I try to use the DirectUpload plugin to upload traces with that username set in JOSM preferences the DirectUpload plugin will send an incorrect HTTP auth hash to the OSM server and it'll reject the upload.

This is related to #1797. DirectUpload doesn't seem to handle anything relating to encoding correctly.

Attachments (1)

EncodeUsernameCorrectly.patch (2.0 KB ) - added by xeen 15 years ago.
Fix username encoding

Download all attachments as: .zip

Change History (5)

comment:1 by anonymous, 15 years ago

Owner: changed from framm to Subhodip Biswas <subhodipbiswas@…>

comment:2 by xeen, 15 years ago

Priority: majorminor

Here's a fix for this, I tested it with "xöön" and it works. Ironically, I couldn't upload normal data using JOSM integrated dialog.

Could someone please verify that the patch works? A compiled version is attach, just replace your old DirectUpload.jar and test :). If it works, please change the title to "[PATCH] …" so that it will get checked in.

As a temporary workaround you can still use your email address which probably doesn't contain any "special" chars.

by xeen, 15 years ago

Fix username encoding

comment:3 by avarab@…, 15 years ago

Summary: DirectUpload plugin incorrectly encodes the OSM username: Users with non-ascii characters in their names can't upload traces[PATCH] DirectUpload plugin incorrectly encodes the OSM username: Users with non-ascii characters in their names can't upload traces

Tested, works for me.

comment:4 by anonymous, 15 years ago

Resolution: fixed
Status: newclosed

Applied in 13634.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Subhodip Biswas <subhodipbiswas@…>.
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.