#1091 ✓resolved
Eric

drag & drop on linux

Reported by Eric | April 24th, 2010 @ 11:07 AM | in 2.1 Release

I use ubuntu linux and firefox. For a very long time drag & drop of URLs from a firefox window into the jbw window has been broken.

After recent investigation I found that jbw is accepting the drop from the browser containing text/html data. However jbw ends up ignoring the data because TargetDrop::receiveDropString rejects it. The reason it’s rejected is because JHTML::getAllURLsOnPage returns a null list.

I also found the StringBuffer passed to TargetDrop::receiveDropString() has twice as many UTF-16 characters as it should, with the extras being a ‘\u0000’ after each legitimate character. As an experiment I added code to remove the extra nulls and now the data isn’t being rejected anymore and drag and drop finally works on my linux machine.

I suspect the root cause of the problem is that the data from firefox is already UTF-16, but jbw thinks it's UTF-8 and tries to convert it to UTF-16.

Disclaimer: I don't know java but I know c++ and ruby.

Comments and changes to this ticket

  • Morgan Schweers

    Morgan Schweers April 29th, 2010 @ 11:58 PM

    • Milestone set to 2.1 Release
    • State changed from “new” to “open”

    Greetings,
    Out of curiosity, what Java version are you using? You can use:

    java -version
    
    to tell you.

    Also, if you go into JBidwatcher's 'Advanced' configuration, and set a key of 'debug.uber' to 'true', and do a drag-and-drop operation, the log file should get a complete list of the flavors supported by the dragged object. That would be a helpful list for me to know.

    -- Morgan Schweers, CyberFOX!

  • Eric

    Eric April 30th, 2010 @ 12:43 AM

    java version "1.6.0_19"
    Java(TM) SE Runtime Environment (build 1.6.0_19-b04)
    Java HotSpot(TM) Server VM (build 16.2-b04, mixed mode)

    Here is part of errors.log. The lines that have the ### are some extra log statements I added to JDropListener.java.

    Fri Apr 30 00:31:02 PDT 2010: Done getting the sign in cookie.
    Fri Apr 30 00:31:11 PDT 2010: ### drop
    Fri Apr 30 00:31:11 PDT 2010: ### dumpFlavorsOld
    Fri Apr 30 00:31:11 PDT 2010: ### dumpDataFlavors
    Fri Apr 30 00:31:11 PDT 2010: Flavah 0 == text/html
    Fri Apr 30 00:31:11 PDT 2010: Flavah/mime 0 == text/html; class=java.io.Reader; charset=Unicode
    Fri Apr 30 00:31:11 PDT 2010: Flavah 1 == text/html
    Fri Apr 30 00:31:11 PDT 2010: Flavah/mime 1 == text/html; class=java.lang.String; charset=Unicode
    Fri Apr 30 00:31:11 PDT 2010: Flavah 2 == text/html
    Fri Apr 30 00:31:11 PDT 2010: Flavah/mime 2 == text/html; class=java.nio.CharBuffer; charset=Unicode
    Fri Apr 30 00:31:11 PDT 2010: Flavah 3 == text/html
    Fri Apr 30 00:31:11 PDT 2010: Flavah/mime 3 == text/html; class="[C"; charset=Unicode
    Fri Apr 30 00:31:11 PDT 2010: Flavah 4 == text/html
    Fri Apr 30 00:31:11 PDT 2010: Flavah/mime 4 == text/html; class=java.io.InputStream; charset=UTF-16
    Fri Apr 30 00:31:11 PDT 2010: Flavah 5 == text/html
    Fri Apr 30 00:31:11 PDT 2010: Flavah/mime 5 == text/html; class=java.nio.ByteBuffer; charset=UTF-16
    Fri Apr 30 00:31:11 PDT 2010: Flavah 6 == text/html
    Fri Apr 30 00:31:11 PDT 2010: Flavah/mime 6 == text/html; class="[B"; charset=UTF-16
    Fri Apr 30 00:31:11 PDT 2010: Flavah 7 == text/html
    Fri Apr 30 00:31:11 PDT 2010: Flavah/mime 7 == text/html; class=java.io.InputStream; charset=UTF-8
    Fri Apr 30 00:31:11 PDT 2010: Flavah 8 == text/html
    Fri Apr 30 00:31:11 PDT 2010: Flavah/mime 8 == text/html; class=java.nio.ByteBuffer; charset=UTF-8
    Fri Apr 30 00:31:11 PDT 2010: Flavah 9 == text/html
    Fri Apr 30 00:31:11 PDT 2010: Flavah/mime 9 == text/html; class="[B"; charset=UTF-8
    Fri Apr 30 00:31:11 PDT 2010: Flavah 10 == text/html
    Fri Apr 30 00:31:11 PDT 2010: Flavah/mime 10 == text/html; class=java.io.InputStream; charset=UTF-16BE
    Fri Apr 30 00:31:11 PDT 2010: Flavah 11 == text/html
    Fri Apr 30 00:31:11 PDT 2010: Flavah/mime 11 == text/html; class=java.nio.ByteBuffer; charset=UTF-16BE
    Fri Apr 30 00:31:11 PDT 2010: Flavah 12 == text/html
    Fri Apr 30 00:31:11 PDT 2010: Flavah/mime 12 == text/html; class="[B"; charset=UTF-16BE
    Fri Apr 30 00:31:11 PDT 2010: Flavah 13 == text/html
    Fri Apr 30 00:31:11 PDT 2010: Flavah/mime 13 == text/html; class=java.io.InputStream; charset=UTF-16LE
    Fri Apr 30 00:31:11 PDT 2010: Flavah 14 == text/html
    Fri Apr 30 00:31:11 PDT 2010: Flavah/mime 14 == text/html; class=java.nio.ByteBuffer; charset=UTF-16LE
    Fri Apr 30 00:31:11 PDT 2010: Flavah 15 == text/html
    Fri Apr 30 00:31:11 PDT 2010: Flavah/mime 15 == text/html; class="[B"; charset=UTF-16LE
    Fri Apr 30 00:31:11 PDT 2010: Flavah 16 == text/html
    Fri Apr 30 00:31:11 PDT 2010: Flavah/mime 16 == text/html; class=java.io.InputStream; charset=ISO-8859-1
    Fri Apr 30 00:31:11 PDT 2010: Flavah 17 == text/html
    Fri Apr 30 00:31:11 PDT 2010: Flavah/mime 17 == text/html; class=java.nio.ByteBuffer; charset=ISO-8859-1
    Fri Apr 30 00:31:11 PDT 2010: Flavah 18 == text/html
    Fri Apr 30 00:31:11 PDT 2010: Flavah/mime 18 == text/html; class="[B"; charset=ISO-8859-1
    Fri Apr 30 00:31:11 PDT 2010: Flavah 19 == text/html
    Fri Apr 30 00:31:11 PDT 2010: Flavah/mime 19 == text/html; class=java.io.InputStream; charset=US-ASCII
    Fri Apr 30 00:31:11 PDT 2010: Flavah 20 == text/html
    Fri Apr 30 00:31:11 PDT 2010: Flavah/mime 20 == text/html; class=java.nio.ByteBuffer; charset=US-ASCII
    Fri Apr 30 00:31:11 PDT 2010: Flavah 21 == text/html
    Fri Apr 30 00:31:11 PDT 2010: Flavah/mime 21 == text/html; class="[B"; charset=US-ASCII
    Fri Apr 30 00:31:11 PDT 2010: Flavah 22 == text/uri-list
    Fri Apr 30 00:31:11 PDT 2010: Flavah/mime 22 == text/uri-list; class=java.io.Reader; charset=Unicode
    Fri Apr 30 00:31:11 PDT 2010: Flavah 23 == text/uri-list
    Fri Apr 30 00:31:11 PDT 2010: Flavah/mime 23 == text/uri-list; class=java.lang.String; charset=Unicode
    Fri Apr 30 00:31:11 PDT 2010: Flavah 24 == text/uri-list
    Fri Apr 30 00:31:11 PDT 2010: Flavah/mime 24 == text/uri-list; class=java.nio.CharBuffer; charset=Unicode
    Fri Apr 30 00:31:11 PDT 2010: Flavah 25 == text/uri-list
    Fri Apr 30 00:31:11 PDT 2010: Flavah/mime 25 == text/uri-list; class="[C"; charset=Unicode
    Fri Apr 30 00:31:11 PDT 2010: Flavah 26 == text/uri-list
    Fri Apr 30 00:31:11 PDT 2010: Flavah/mime 26 == text/uri-list; class=java.io.InputStream; charset=UTF-16
    Fri Apr 30 00:31:11 PDT 2010: Flavah 27 == text/uri-list
    Fri Apr 30 00:31:11 PDT 2010: Flavah/mime 27 == text/uri-list; class=java.nio.ByteBuffer; charset=UTF-16
    Fri Apr 30 00:31:11 PDT 2010: Flavah 28 == text/uri-list
    Fri Apr 30 00:31:11 PDT 2010: Flavah/mime 28 == text/uri-list; class="[B"; charset=UTF-16
    Fri Apr 30 00:31:11 PDT 2010: Flavah 29 == text/uri-list
    Fri Apr 30 00:31:11 PDT 2010: Flavah/mime 29 == text/uri-list; class=java.io.InputStream; charset=UTF-8
    Fri Apr 30 00:31:11 PDT 2010: Flavah 30 == text/uri-list
    Fri Apr 30 00:31:11 PDT 2010: Flavah/mime 30 == text/uri-list; class=java.nio.ByteBuffer; charset=UTF-8
    Fri Apr 30 00:31:11 PDT 2010: Flavah 31 == text/uri-list
    Fri Apr 30 00:31:11 PDT 2010: Flavah/mime 31 == text/uri-list; class="[B"; charset=UTF-8
    Fri Apr 30 00:31:11 PDT 2010: Flavah 32 == text/uri-list
    Fri Apr 30 00:31:11 PDT 2010: Flavah/mime 32 == text/uri-list; class=java.io.InputStream; charset=UTF-16BE
    Fri Apr 30 00:31:11 PDT 2010: Flavah 33 == text/uri-list
    Fri Apr 30 00:31:11 PDT 2010: Flavah/mime 33 == text/uri-list; class=java.nio.ByteBuffer; charset=UTF-16BE
    Fri Apr 30 00:31:11 PDT 2010: Flavah 34 == text/uri-list
    Fri Apr 30 00:31:11 PDT 2010: Flavah/mime 34 == text/uri-list; class="[B"; charset=UTF-16BE
    Fri Apr 30 00:31:11 PDT 2010: Flavah 35 == text/uri-list
    Fri Apr 30 00:31:11 PDT 2010: Flavah/mime 35 == text/uri-list; class=java.io.InputStream; charset=UTF-16LE
    Fri Apr 30 00:31:11 PDT 2010: Flavah 36 == text/uri-list
    Fri Apr 30 00:31:11 PDT 2010: Flavah/mime 36 == text/uri-list; class=java.nio.ByteBuffer; charset=UTF-16LE
    Fri Apr 30 00:31:11 PDT 2010: Flavah 37 == text/uri-list
    Fri Apr 30 00:31:11 PDT 2010: Flavah/mime 37 == text/uri-list; class="[B"; charset=UTF-16LE
    Fri Apr 30 00:31:11 PDT 2010: Flavah 38 == text/uri-list
    Fri Apr 30 00:31:11 PDT 2010: Flavah/mime 38 == text/uri-list; class=java.io.InputStream; charset=ISO-8859-1
    Fri Apr 30 00:31:11 PDT 2010: Flavah 39 == text/uri-list
    Fri Apr 30 00:31:11 PDT 2010: Flavah/mime 39 == text/uri-list; class=java.nio.ByteBuffer; charset=ISO-8859-1
    Fri Apr 30 00:31:11 PDT 2010: Flavah 40 == text/uri-list
    Fri Apr 30 00:31:11 PDT 2010: Flavah/mime 40 == text/uri-list; class="[B"; charset=ISO-8859-1
    Fri Apr 30 00:31:11 PDT 2010: Flavah 41 == text/uri-list
    Fri Apr 30 00:31:11 PDT 2010: Flavah/mime 41 == text/uri-list; class=java.io.InputStream; charset=US-ASCII
    Fri Apr 30 00:31:11 PDT 2010: Flavah 42 == text/uri-list
    Fri Apr 30 00:31:11 PDT 2010: Flavah/mime 42 == text/uri-list; class=java.nio.ByteBuffer; charset=US-ASCII
    Fri Apr 30 00:31:11 PDT 2010: Flavah 43 == text/uri-list
    Fri Apr 30 00:31:11 PDT 2010: Flavah/mime 43 == text/uri-list; class="[B"; charset=US-ASCII
    Fri Apr 30 00:31:11 PDT 2010: Flavah 44 == Unicode String
    Fri Apr 30 00:31:11 PDT 2010: Flavah/mime 44 == application/x-java-serialized-object; class=java.lang.String
    Fri Apr 30 00:31:11 PDT 2010: Flavah 45 == text/plain
    Fri Apr 30 00:31:11 PDT 2010: Flavah/mime 45 == text/plain; class=java.io.Reader; charset=Unicode
    Fri Apr 30 00:31:11 PDT 2010: Flavah 46 == text/plain
    Fri Apr 30 00:31:11 PDT 2010: Flavah/mime 46 == text/plain; class=java.lang.String; charset=Unicode
    Fri Apr 30 00:31:11 PDT 2010: Flavah 47 == text/plain
    Fri Apr 30 00:31:11 PDT 2010: Flavah/mime 47 == text/plain; class=java.nio.CharBuffer; charset=Unicode
    Fri Apr 30 00:31:11 PDT 2010: Flavah 48 == text/plain
    Fri Apr 30 00:31:11 PDT 2010: Flavah/mime 48 == text/plain; class="[C"; charset=Unicode
    Fri Apr 30 00:31:11 PDT 2010: Flavah 49 == Plain Text
    Fri Apr 30 00:31:11 PDT 2010: Flavah/mime 49 == text/plain; class=java.io.InputStream; charset=unicode
    Fri Apr 30 00:31:11 PDT 2010: Flavah 50 == text/plain
    Fri Apr 30 00:31:11 PDT 2010: Flavah/mime 50 == text/plain; class=java.nio.ByteBuffer; charset=UTF-16
    Fri Apr 30 00:31:11 PDT 2010: Flavah 51 == text/plain
    Fri Apr 30 00:31:11 PDT 2010: Flavah/mime 51 == text/plain; class="[B"; charset=UTF-16
    Fri Apr 30 00:31:11 PDT 2010: Flavah 52 == text/plain
    Fri Apr 30 00:31:11 PDT 2010: Flavah/mime 52 == text/plain; class=java.io.InputStream; charset=UTF-8
    Fri Apr 30 00:31:11 PDT 2010: Flavah 53 == text/plain
    Fri Apr 30 00:31:11 PDT 2010: Flavah/mime 53 == text/plain; class=java.nio.ByteBuffer; charset=UTF-8
    Fri Apr 30 00:31:11 PDT 2010: Flavah 54 == text/plain
    Fri Apr 30 00:31:11 PDT 2010: Flavah/mime 54 == text/plain; class="[B"; charset=UTF-8
    Fri Apr 30 00:31:11 PDT 2010: Flavah 55 == text/plain
    Fri Apr 30 00:31:11 PDT 2010: Flavah/mime 55 == text/plain; class=java.io.InputStream; charset=UTF-16BE
    Fri Apr 30 00:31:11 PDT 2010: Flavah 56 == text/plain
    Fri Apr 30 00:31:11 PDT 2010: Flavah/mime 56 == text/plain; class=java.nio.ByteBuffer; charset=UTF-16BE
    Fri Apr 30 00:31:11 PDT 2010: Flavah 57 == text/plain
    Fri Apr 30 00:31:11 PDT 2010: Flavah/mime 57 == text/plain; class="[B"; charset=UTF-16BE
    Fri Apr 30 00:31:11 PDT 2010: Flavah 58 == text/plain
    Fri Apr 30 00:31:11 PDT 2010: Flavah/mime 58 == text/plain; class=java.io.InputStream; charset=UTF-16LE
    Fri Apr 30 00:31:11 PDT 2010: Flavah 59 == text/plain
    Fri Apr 30 00:31:11 PDT 2010: Flavah/mime 59 == text/plain; class=java.nio.ByteBuffer; charset=UTF-16LE
    Fri Apr 30 00:31:11 PDT 2010: Flavah 60 == text/plain
    Fri Apr 30 00:31:11 PDT 2010: Flavah/mime 60 == text/plain; class="[B"; charset=UTF-16LE
    Fri Apr 30 00:31:11 PDT 2010: Flavah 61 == text/plain
    Fri Apr 30 00:31:11 PDT 2010: Flavah/mime 61 == text/plain; class=java.io.InputStream; charset=ISO-8859-1
    Fri Apr 30 00:31:11 PDT 2010: Flavah 62 == text/plain
    Fri Apr 30 00:31:11 PDT 2010: Flavah/mime 62 == text/plain; class=java.nio.ByteBuffer; charset=ISO-8859-1
    Fri Apr 30 00:31:11 PDT 2010: Flavah 63 == text/plain
    Fri Apr 30 00:31:11 PDT 2010: Flavah/mime 63 == text/plain; class="[B"; charset=ISO-8859-1
    Fri Apr 30 00:31:11 PDT 2010: Flavah 64 == text/plain
    Fri Apr 30 00:31:11 PDT 2010: Flavah/mime 64 == text/plain; class=java.io.InputStream; charset=US-ASCII
    Fri Apr 30 00:31:11 PDT 2010: Flavah 65 == text/plain
    Fri Apr 30 00:31:11 PDT 2010: Flavah/mime 65 == text/plain; class=java.nio.ByteBuffer; charset=US-ASCII
    Fri Apr 30 00:31:11 PDT 2010: Flavah 66 == text/plain
    Fri Apr 30 00:31:11 PDT 2010: Flavah/mime 66 == text/plain; class="[B"; charset=US-ASCII
    Fri Apr 30 00:31:11 PDT 2010: Flavah 67 == text/unicode
    Fri Apr 30 00:31:11 PDT 2010: Flavah/mime 67 == text/unicode; class=java.io.InputStream
    Fri Apr 30 00:31:11 PDT 2010: Flavah 68 == text/x-moz-url
    Fri Apr 30 00:31:11 PDT 2010: Flavah/mime 68 == text/x-moz-url; class=java.io.InputStream
    Fri Apr 30 00:31:11 PDT 2010: Flavah 69 == text/x-moz-url-data
    Fri Apr 30 00:31:11 PDT 2010: Flavah/mime 69 == text/x-moz-url-data; class=java.io.InputStream
    Fri Apr 30 00:31:11 PDT 2010: Flavah 70 == text/x-moz-url-desc
    Fri Apr 30 00:31:11 PDT 2010: Flavah/mime 70 == text/x-moz-url-desc; class=java.io.InputStream
    Fri Apr 30 00:31:11 PDT 2010: Flavah 71 == text/moz_htmlcontext
    Fri Apr 30 00:31:11 PDT 2010: Flavah/mime 71 == text/
    moz_htmlcontext; class=java.io.InputStream
    Fri Apr 30 00:31:11 PDT 2010: Flavah 72 == text/moz_htmlinfo
    Fri Apr 30 00:31:11 PDT 2010: Flavah/mime 72 == text/
    moz_htmlinfo; class=java.io.InputStream
    Fri Apr 30 00:31:11 PDT 2010: Flavah 73 == text/unicode
    Fri Apr 30 00:31:11 PDT 2010: Flavah/mime 73 == text/unicode; class=java.nio.ByteBuffer
    Fri Apr 30 00:31:11 PDT 2010: Flavah 74 == text/x-moz-url
    Fri Apr 30 00:31:11 PDT 2010: Flavah/mime 74 == text/x-moz-url; class=java.nio.ByteBuffer
    Fri Apr 30 00:31:11 PDT 2010: Flavah 75 == text/x-moz-url-data
    Fri Apr 30 00:31:11 PDT 2010: Flavah/mime 75 == text/x-moz-url-data; class=java.nio.ByteBuffer
    Fri Apr 30 00:31:11 PDT 2010: Flavah 76 == text/x-moz-url-desc
    Fri Apr 30 00:31:11 PDT 2010: Flavah/mime 76 == text/x-moz-url-desc; class=java.nio.ByteBuffer
    Fri Apr 30 00:31:11 PDT 2010: Flavah 77 == text/moz_htmlcontext
    Fri Apr 30 00:31:11 PDT 2010: Flavah/mime 77 == text/
    moz_htmlcontext; class=java.nio.ByteBuffer
    Fri Apr 30 00:31:11 PDT 2010: Flavah 78 == text/moz_htmlinfo
    Fri Apr 30 00:31:11 PDT 2010: Flavah/mime 78 == text/
    moz_htmlinfo; class=java.nio.ByteBuffer
    Fri Apr 30 00:31:11 PDT 2010: Flavah 79 == text/unicode
    Fri Apr 30 00:31:11 PDT 2010: Flavah/mime 79 == text/unicode; class="[B"
    Fri Apr 30 00:31:11 PDT 2010: Flavah 80 == text/x-moz-url
    Fri Apr 30 00:31:11 PDT 2010: Flavah/mime 80 == text/x-moz-url; class="[B"
    Fri Apr 30 00:31:11 PDT 2010: Flavah 81 == text/x-moz-url-data
    Fri Apr 30 00:31:11 PDT 2010: Flavah/mime 81 == text/x-moz-url-data; class="[B"
    Fri Apr 30 00:31:11 PDT 2010: Flavah 82 == text/x-moz-url-desc
    Fri Apr 30 00:31:11 PDT 2010: Flavah/mime 82 == text/x-moz-url-desc; class="[B"
    Fri Apr 30 00:31:11 PDT 2010: Flavah 83 == text/moz_htmlcontext
    Fri Apr 30 00:31:11 PDT 2010: Flavah/mime 83 == text/
    moz_htmlcontext; class="[B"
    Fri Apr 30 00:31:11 PDT 2010: Flavah 84 == text/moz_htmlinfo
    Fri Apr 30 00:31:11 PDT 2010: Flavah/mime 84 == text/
    moz_htmlinfo; class="[B"
    Fri Apr 30 00:31:11 PDT 2010: ### getTransferData dtf == java.awt.datatransfer.DataFlavor[mimetype=text/html;representationclass=java.io.Reader]
    Fri Apr 30 00:31:11 PDT 2010: ### getTransferData dropped.class: class java.io.InputStreamReader
    Fri Apr 30 00:31:11 PDT 2010: ### getTransferData.2
    Fri Apr 30 00:31:11 PDT 2010: ### getDataFromReader
    Fri Apr 30 00:31:11 PDT 2010: ### drop.1
    Fri Apr 30 00:31:11 PDT 2010: ### receiveDropString
    Fri Apr 30 00:31:11 PDT 2010: ### removing nulls from StringBuffer
    Fri Apr 30 00:31:11 PDT 2010: Adding: http://cgi.ebay.com/Lightech-LTV-303-300-Watt-Electronic-Transforme...
    Fri Apr 30 00:31:14 PDT 2010: Loaded 220597793272.

  • Morgan Schweers

    Morgan Schweers May 1st, 2010 @ 07:15 PM

    • State changed from “open” to “resolved”
    • Tag set to committed

    (from [4d5bbdacfd64040941acd44c28ae4c5d1d1be721]) Try to resolve the Linux drag-and-drop issues by reordering the preferred drop types, and stripping nulls from the resultant string.

    [#1091 state:resolved tagged:committed] http://github.com/cyberfox/jbidwatcher/commit/4d5bbdacfd64040941acd...

  • Eric

    Eric May 1st, 2010 @ 11:54 PM

    Bad news. I got the latest code from git tonight and tried it. The problem is still there. The dropped data still has the null characters even with the different DataFlavor being used, and the TargetDrop::cleanString doesn't remove them, so JHTML::getAllURLsOnPage is still returning a null list.

    The problem with cleanString is that the data doesn't have any '\n' in it, so outstr.indexOf('\n') returns -1, and so Math.min(outstr.indexOf('\n'), outstr.indexOf('\0')) returns -1 and the while loop never executes.

  • Eric

    Eric May 2nd, 2010 @ 12:20 AM

    I am having good luck with this version of cleanString:

    private StringBuffer cleanString(StringBuffer instr) {
      int i = 0;
      int len = instr.length();
      StringBuffer s = new StringBuffer(len);
      for (i = 0; i < len; i++) {
        char c = instr.charAt(i);
        if (c != '\u0000' && c != '\n') s.append(c);
      }
      return s;
    }
    

    I call it as follows:

    dropped = cleanString(dropped);
    
    So with that code drag and drop of URLs is working again, but not all is well. Couple of problems:
    • The Activity log doesn't report the auctions that are added via drag and drop. Auctions that are pasted do show on the Activity log.
    • After dragging an auction into jbw, the auction isn't always displayed on the list right away. Sometimes I have to click on the Complete tab and then back to the Current tab, and then the newly added action then shows up. Maybe it's related to the Activity log thing?
  • Morgan Schweers

    Morgan Schweers May 2nd, 2010 @ 01:01 AM

    Greetings,
    Wow; I must have been really tired when I wrote that. :)

    I was hoping the change in mime-type would help; it sounds like something's just breaking between Java and the drag'n'drop side, so the cleaning solution is going to have to be the one it goes with for now. And I fubared that...

    For whatever reason, I recall trying to avoid hand-iterating over the entire thing, I guess in the mindset that indexOf would be faster (i.e. use native methods) but in retrospect that's a premature optimization.

    I'll put your method in.

    -- Morgan Schweers, CyberFOX!

    p.s. I'll look at the other issue; it sounds like it's not triggering the update to notify the FilterManager to do the UI redraw.

  • Morgan Schweers

    Morgan Schweers May 2nd, 2010 @ 01:25 AM

    (from [0cce62c5fec1fa2d81c581c9bc85e83c7895b727]) Use Eric's string-cleaning method instead of my own, to fix Linux drag and drop, since I blew the algorithm first time. This should work better. Also reverting the mime-type precedence change.

    [#1091 state:resolved tagged:committed] http://github.com/cyberfox/jbidwatcher/commit/0cce62c5fec1fa2d81c58...

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Shared Ticket Bins

People watching this ticket

Tags

Referenced by

Pages