Modify

Opened 9 years ago

Closed 8 years ago

Last modified 5 years ago

#13016 closed defect (othersoftware)

GPX files cannot be dragged and dropped from an USB device on Linux (MTP)

Reported by: darwish.d.d@… Owned by: team
Priority: normal Milestone:
Component: Core Version:
Keywords: template_report mtp usb linux Cc:

Description

What steps will reproduce the problem?

  1. drag gps track
  2. move to josm window
  3. drop track
  4. error happenes

What is the expected result?

What happens instead?

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

URL:http://josm.openstreetmap.de/svn/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2016-06-04 17:28:58 +0200 (Sat, 04 Jun 2016)
Build-Date:2016-06-04 15:31:27
Revision:10327
Relative:URL: ^/trunk

Identification: JOSM/1.5 (10327 en) Linux Ubuntu 14.04.4 LTS
Memory Usage: 679 MB / 3500 MB (167 MB allocated, but free)
Java version: 1.7.0_79-b14, Oracle Corporation, OpenJDK 64-Bit Server VM
Java package: openjdk-7-jre:amd64-7u79-2.5.6-0ubuntu1.14.04.1
VM arguments: [-Djosm.restart=true, -Djava.net.useSystemProxies=true]

Plugins:
- imagery_offset_db (32158)

Last errors/warnings:
- W: Update plugins - org.openstreetmap.josm.plugins.PluginHandler$UpdatePluginsMessagePanel[,0,0,0x0,invalid,layout=java.awt.GridBagLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=9,maximumSize=,minimumSize=,preferredSize=]
- E: java.awt.dnd.InvalidDnDOperationException: java.net.URISyntaxException: Malformed IPv6 address at index 7: mtp://[usb:003,002]/Phone/osmtracker/2016-05-17_13-16-12/2016-05-17_13-16-12.gpx

java.awt.dnd.InvalidDnDOperationException: java.net.URISyntaxException: Malformed IPv6 address at index 7: mtp://[usb:003,002]/Phone/osmtracker/2016-05-17_13-16-12/2016-05-17_13-16-12.gpx
	at sun.awt.dnd.SunDropTargetContextPeer.getTransferData(SunDropTargetContextPeer.java:277)
	at sun.awt.datatransfer.TransferableProxy.getTransferData(TransferableProxy.java:73)
	at java.awt.dnd.DropTargetContext$TransferableProxy.getTransferData(DropTargetContext.java:376)
	at org.openstreetmap.josm.gui.FileDrop$DropListener.drop(FileDrop.java:336)
	at java.awt.dnd.DropTarget.drop(DropTarget.java:450)
	at sun.awt.dnd.SunDropTargetContextPeer.processDropMessage(SunDropTargetContextPeer.java:544)
	at sun.awt.X11.XDropTargetContextPeer.processDropMessage(XDropTargetContextPeer.java:184)
	at sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchDropEvent(SunDropTargetContextPeer.java:858)
	at sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchEvent(SunDropTargetContextPeer.java:782)
	at sun.awt.dnd.SunDropTargetEvent.dispatch(SunDropTargetEvent.java:48)
	at java.awt.Component.dispatchEventImpl(Component.java:4727)
	at java.awt.Container.dispatchEventImpl(Container.java:2287)
	at java.awt.Component.dispatchEvent(Component.java:4698)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
	at java.awt.LightweightDispatcher.processDropTargetEvent(Container.java:4566)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4417)
	at java.awt.Container.dispatchEventImpl(Container.java:2273)
	at java.awt.Window.dispatchEventImpl(Window.java:2719)
	at java.awt.Component.dispatchEvent(Component.java:4698)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:747)
	at java.awt.EventQueue.access$300(EventQueue.java:103)
	at java.awt.EventQueue$3.run(EventQueue.java:706)
	at java.awt.EventQueue$3.run(EventQueue.java:704)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
	at java.awt.EventQueue$4.run(EventQueue.java:720)
	at java.awt.EventQueue$4.run(EventQueue.java:718)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:717)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)

Attachments (0)

Change History (7)

comment:1 by simon04, 8 years ago

Resolution: othersoftware
Status: newclosed

You've connected your phone via MTP and drag a file directly from the phone to JOSM. I do not see a way JOSM could ever support this way. It's an issue of the file manager or Java, respectively, passing the mtp:// URI to the application.

As workaround, you have to copy the GPX file to your computer.

comment:2 by Don-vip, 8 years ago

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

comment:3 by Don-vip, 7 years ago

Keywords: mtp usb linux added
Summary: Error if open gps track using drag and dropGPX files cannot be dragged and dropped from an USB device on Linux (MTP)

comment:4 by Don-vip, 7 years ago

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

comment:5 by Don-vip, 6 years ago

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

comment:6 by Don-vip, 6 years ago

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

comment:7 by Don-vip, 5 years ago

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

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.