Modify

Opened 16 years ago

Closed 16 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.

Change History (5)

comment:1 by anonymous, 16 years ago

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

comment:2 by xeen, 16 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, 16 years ago

Fix username encoding

comment:3 by avarab@…, 16 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, 16 years ago

Resolution: fixed
Status: newclosed

Applied in 13634.

Add Comment


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