Uploaded image for project: 'Tika'
  1. Tika
  2. TIKA-1024

An MP3 with an UTF-16 ID3 tag containing only the BOM should produce empty string value for that tag

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.3
    • parser
    • None

    Description

      This seems to be a difference between JVMs: on IBM's JVM I incorrectly see the BOM as the value of the tag, while on Oracle's JVM I correctly get the empty string.

      I'm not sure if this is a bug in IBM's JVM ... the javadocs are not totally clear how a UTF-16 string containing only the BOM should be decoded by new String(...) ... to fix this I think we should just detect this case and short-circuit empty string return.

      Attachments

        1. testNakedUTF16BOM.mp3
          3 kB
          Michael McCandless
        2. TIKA-1024.patch
          5 kB
          Michael McCandless

        Activity

          People

            mikemccand Michael McCandless
            mikemccand Michael McCandless
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: