Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

String index out of range exception #12

Open
dhoffer opened this issue Oct 20, 2014 · 1 comment
Open

String index out of range exception #12

dhoffer opened this issue Oct 20, 2014 · 1 comment

Comments

@dhoffer
Copy link

dhoffer commented Oct 20, 2014

I'm trying to use iso9660-maven-plugin to generate an iso image and I'm getting string index out of range errors. My input does have long file names, e.g. 7b0a8ad702ee0be0b971a082023550bd71bd33d3cbb4fa17f1de6af66f1871d4-comps-Server.x86_64.xml.gz and I suspect this is causing the problem.

How can I resolve this? I don't technically need/want an 9660 image as I'm creating DVD images (actually these will be used by vSphere and I think it's quite tolerant of ISO format). Is there a way to configure iso9660-maven-plugin to allow long file names or is there a different goal/plugin that I should be using that supports this? Currently I'm running the 'iso' goal on iso9660-maven-plugin.

Execution generate-iso of goal com.github.stephenc.java-iso-tools:iso9660-maven-plugin:2.0.0:iso failed: String index out of range: -2

@www005531
Copy link

www005531 commented Dec 28, 2017

Bug is in regular expression in ISO9660File class (http://prntscr.com/htbpnd). The regular expression working bad with files with multiple dosts - like in @dhoffer example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants