Skip to content

Exception raised when zipping a symbolic link #433

@DevLazio

Description

@DevLazio

When trying to zip a folder containing a symbolic link to /tmp/ I encounter the following error :

net.lingala.zip4j.exception.ZipException: java.lang.StringIndexOutOfBoundsException: String index out of range: -5
        at net.lingala.zip4j.tasks.AsyncZipTask.performTaskWithErrorHandling(AsyncZipTask.java:58)
        at net.lingala.zip4j.tasks.AsyncZipTask.execute(AsyncZipTask.java:45)
        at net.lingala.zip4j.ZipFile.addFolder(ZipFile.java:390)
        at net.lingala.zip4j.ZipFile.addFolder(ZipFile.java:365)

I'm trying to zip a folder with this structure :
image
cogi8.zip

Changing the SymbolicLinkAction did not help.

Metadata

Metadata

Labels

bugSomething isn't workingresolved

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions