Modify

Opened 5 years ago

Last modified 6 months ago

#11136 new defect

[Patch] IllegalStateException: "Missing merge target for relation" trying to revert changeset after object history loads

Reported by: Travis.G.Mount@… Owned by: Upliner
Priority: normal Milestone:
Component: Plugin reverter Version: tested
Keywords: template_report Cc:

Description

What steps will reproduce the problem?

  1. Download data for Seoul on this server: http://travisgmount.doesntexist.com/api (can provide login if needed)
  2. Data->Revert changes, changeset 38
  3. As soon as object history finishes downloading, I get this error.

What is the expected result?

What happens instead?

Please provide any additional information below. Attach a screenshot if possible.

Revision: 7995
Repository Root: http://josm.openstreetmap.de/svn
Relative URL: ^/trunk
Last Changed Author: Don-vip
Last Changed Date: 2015-01-31 15:17:59 +0100 (Sat, 31 Jan 2015)
Build-Date: 2015-02-01 02:33:54
URL: http://josm.openstreetmap.de/svn/trunk
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last Changed Rev: 7995

Identification: JOSM/1.5 (7995 en) Windows 7 64-Bit
Memory Usage: 178 MB / 247 MB (55 MB allocated, but free)
Java version: 1.8.0_31, Oracle Corporation, Java HotSpot(TM) Client VM
Dataset consistency test: No problems found

Plugins:
- reverter (30990)

Last errors/warnings:
- W: Failed to load Mappaint styles from 'https://josm.openstreetmap.de/josmfile?page=Styles/PublicTransportation&style'. Exception was: java.io.IOException: No file found for: https://josm.openstreetmap.de/josmfile?page=Styles/PublicTransportation&style
- E: java.io.IOException: No file found for: https://josm.openstreetmap.de/josmfile?page=Styles/PublicTransportation&style
- E: java.lang.IllegalStateException: Missing merge target for relation with id 17

java.lang.IllegalStateException: Missing merge target for relation with id 17
	at reverter.ChangesetReverter.getCommands(ChangesetReverter.java:380)
	at reverter.RevertChangesetTask.realRun(RevertChangesetTask.java:104)
	at org.openstreetmap.josm.gui.PleaseWaitRunnable.doRealRun(PleaseWaitRunnable.java:93)
	at org.openstreetmap.josm.gui.PleaseWaitRunnable.run(PleaseWaitRunnable.java:161)
	at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
	at java.util.concurrent.FutureTask.run(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)

Attachments (1)

11136.patch (915 bytes) - added by GerdP 6 months ago.

Download all attachments as: .zip

Change History (5)

comment:1 Changed 4 years ago by skyper

Similar #12829

problem with deleted nodes see #13981

comment:2 Changed 17 months ago by Don-vip

Summary: Error trying to revert changeset after object history loadsIllegalStateException: "Missing merge target for relation" trying to revert changeset after object history loads

comment:3 Changed 17 months ago by Don-vip

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

Changed 6 months ago by GerdP

Attachment: 11136.patch added

comment:4 Changed 6 months ago by GerdP

Summary: IllegalStateException: "Missing merge target for relation" trying to revert changeset after object history loads[Patch] IllegalStateException: "Missing merge target for relation" trying to revert changeset after object history loads

See ticket:13981#comment:25
CS 36536612 contains some objects multiple times, e.g node 3942364677 is first created, then used in a new way and later deleted.
The attached patch adds a check so that reverter doesn't search for versions which only exist within in the CS.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain Upliner.
as The resolution will be set.
to The owner will be changed from Upliner to the specified user.
The owner will change to Travis.G.Mount@gmail.com
as duplicate The resolution will be set to duplicate.The specified ticket will be cross-referenced with this ticket
The owner will be changed from Upliner to anonymous.

Add Comment


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

 
Note: See TracTickets for help on using tickets.