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

Two possible bugs in iso9660-writer #3

Open
davideraccagni opened this issue Apr 30, 2011 · 2 comments
Open

Two possible bugs in iso9660-writer #3

davideraccagni opened this issue Apr 30, 2011 · 2 comments
Assignees

Comments

@davideraccagni
Copy link

Hello,
making some tests with iso9660-writer, I discovered that:

  1. ISO9660File(ISO9660File file) constructor didn't copy some properties. In order to solve the problem, I added:
this.enforce8plus3 = file.enforce8plus3;
this.enforceDotDelimiter = file.enforceDotDelimiter;
this.id = file.getID();
  1. method apply(ISO9660File file) of JolietNamingConventions class rise an exception if the file name is 60 characters long (excluded the extension). I fixed the problem in the following way:

    if (filename.length() + extension.length() + (file.getVersion() + "").length() + 2 > 64) {
        if (filename.length() >= extension.length()) {
            // Shorten filename
            filename = filename.substring(0, 64 - 2 - (file.getVersion() + "").length() - extension.length());
        } else {
            // Shorten extension
            extension = extension.substring(0, 64 - 2 - (file.getVersion() + "").length() - filename.length());
        }
    }
    

Regards,
Davide Raccagni

@ghost ghost assigned hgomez Jun 19, 2012
@barryoneill
Copy link

I've been hit by issue #2 here as well (on a filename.length() = 59)

@MaggiWuerze
Copy link

still persists... and it is even done right in method above -.-

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

4 participants