[Pkg-osm-maint] Bug#664205: researching
Alberto Fernández
infjaf at gmail.com
Fri Dec 14 01:37:27 UTC 2012
Hi
In short, I've attached a patch with a workaround.
I've to test it in other environments (windows) before send it to
upstream.
I've to test too the jdk7 / pcmanfm bug and open a new bug.
The root error is pcmanfm sends a null-terminated-string for file list
(nautilus don't send it)
When josm receives a drop, it parses the data calling:
tr.getTransferData(java.awt.datatransfer.DataFlavor.javaFileListFlavor);
Then, after some work, it goes to sun.awt.X11.XDataTransferer line ~287
while ((line = reader.readLine()) != null) {
try {
uri = new URI(line); // <-- fails here
} catch (URISyntaxException uriSyntaxException) {
throw new IOException(uriSyntaxException);
}
uriList.add(uri);
}
and fails because it tries to make a URI with '\0',
josm has two methods for processing drop data, the first is failing, the
seconds works.
The only thing attached patch does is to remove the first method.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 06-fix-dnd.patch
Type: text/x-patch
Size: 2354 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-osm-maint/attachments/20121214/dc0794d9/attachment.bin>
More information about the Pkg-osm-maint
mailing list