You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Christophe Gourmelon (JIRA)" <ji...@apache.org> on 2010/07/30 15:32:16 UTC

[jira] Commented: (TIKA-424) Avoid ArrayIndexOutOfBoundsException on some mp3 files

    [ https://issues.apache.org/jira/browse/TIKA-424?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12894036#action_12894036 ] 

Christophe Gourmelon commented on TIKA-424:
-------------------------------------------

Hi !

There is another exception with MP3 files parsing :

org.apache.tika.exception.TikaException: Unexpected RuntimeException from org.apache.tika.parser.mp3.Mp3Parser@518bf072
	at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:134)
	at org.apache.tika.parser.AutoDetectParser.parse(AutoDetectParser.java:99)
	at Test.main(Test.java:24)
Caused by: java.lang.ArrayIndexOutOfBoundsException
	at java.lang.System.arraycopy(Native Method)
	at org.apache.tika.parser.mp3.ID3v2Frame$RawTag.<init>(ID3v2Frame.java:294)
	at org.apache.tika.parser.mp3.ID3v2Frame$RawTag.<init>(ID3v2Frame.java:266)
	at org.apache.tika.parser.mp3.ID3v2Frame$RawTagIterator.next(ID3v2Frame.java:249)
	at org.apache.tika.parser.mp3.ID3v24Handler.<init>(ID3v24Handler.java:46)
	at org.apache.tika.parser.mp3.Mp3Parser.getAllTagHandlers(Mp3Parser.java:132)
	at org.apache.tika.parser.mp3.Mp3Parser.parse(Mp3Parser.java:64)
	at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:132)
	... 2 more

Do you need my MP3 file to do some tests ?

Thx.

> Avoid ArrayIndexOutOfBoundsException on some mp3 files
> ------------------------------------------------------
>
>                 Key: TIKA-424
>                 URL: https://issues.apache.org/jira/browse/TIKA-424
>             Project: Tika
>          Issue Type: Improvement
>          Components: parser
>    Affects Versions: 0.7
>            Reporter: Nick Burch
>            Assignee: Jukka Zitting
>             Fix For: 0.8
>
>         Attachments: mp3-fix.patch
>
>
> There can currently be an ArrayIndexOutOfBoundsException if the tag of an mp3 is empty but null padded (see TIKA-418 for someone reporting one against the wrong bug...)
> Attached patch correctly detects this condition and returns an empty string.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.