Modify

Opened 18 months ago

Closed 3 weeks ago

#7116 closed defect (fixed)

API chokes when uploading undeleted ways/nodes with Precondition Failed

Reported by: Polarbear-j Owned by: team
Priority: major Component: Plugin undelete
Version: latest Keywords: undelete precondition failed
Cc: dieterdreist, rickmastfan67, ghia

Description

  • load a deleted way via the 'undelete' plugin
  • upload the way
  • depending on the order JOSM chooses for upload, if it tries to upload the way to be visible again before uploading the re-visible nodes, the API chokes with the following message (WWWWWWW and NNNNNN1 being real way/node numbers) :
PUT http://api.openstreetmap.org/api/0.6/way/WWWWWWW... Precondition Failed
Error header: Precondition failed: Way WWWWWWW requires the nodes with id in (NNNNNN1,NNNNNNN2), which either do not exist, or are not visible.

Warning: error header "Precondition failed: Way WWWWWWW requires the nodes with id in (NNNNNN1,NNNNNNN2), which either do not exist, or are not visible." did not match with an expected pattern

It does not matter if I upload in one single request or 'each object individually'.

Attachments (0)

Change History (6)

comment:1 Changed 3 weeks ago by Don-vip

Ticket #8156 has been marked as a duplicate of this ticket.

comment:2 Changed 3 weeks ago by Don-vip

Ticket #8637 has been marked as a duplicate of this ticket.

comment:3 Changed 3 weeks ago by Don-vip

  • Cc dieterdreist rickmastfan67 added
  • Priority changed from normal to major

comment:4 Changed 3 weeks ago by Don-vip

Ticket #6568 has been marked as a duplicate of this ticket.

comment:5 Changed 3 weeks ago by Don-vip

  • Cc ghia added

comment:6 Changed 3 weeks ago by Don-vip

  • Resolution set to fixed
  • Status changed from new to closed

Should be fixed in [o29555].

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed .
as The resolution will be set. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.