Modify

Opened 16 years ago

Closed 16 years ago

#2478 closed defect (fixed)

Upload fails with error 422

Reported by: elyk Owned by: team
Priority: major Milestone:
Component: Core Version: latest
Keywords: Cc: Gubaer

Description

Using JOSM 1558 I've tried combining two ways and I get an HTTP error 422 when trying to upload.

GET http://www.openstreetmap.org/api/capabilities... OK
Communications with http://www.openstreetmap.org/api established using protocol version 0.6
PUT http://www.openstreetmap.org/api/0.6/changeset/create... OK
POST http://www.openstreetmap.org/api/0.6/changeset/983166/upload... Unprocessable Entity
PUT http://www.openstreetmap.org/api/0.6/changeset/983166/close... OK

My guess is that the tiger:tlid tags from both got combined into a string longer than 255 chars, causing the upload to fail. But that's only my guess. See way 33725567 in the attached patch; the tiger:tlid tag is 273 chars long.

Attachments (1)

error422.osm.gz (34.9 KB ) - added by elyk 16 years ago.

Download all attachments as: .zip

Change History (3)

by elyk, 16 years ago

Attachment: error422.osm.gz added

comment:1 by elyk, 16 years ago

I just deleted the long tiger:tlid tag and the upload worked fine. Seems the long tag value was the problem.

comment:2 by Gubaer, 16 years ago

Cc: Gubaer added
Resolution: fixed
Status: newclosed

Since r1693 max. attribute length of 255 is checked before uploading.

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.