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

OSX Archive Utility: Error 1 - Operation not permitted #9

Open
nickmerwin opened this issue May 10, 2012 · 12 comments
Open

OSX Archive Utility: Error 1 - Operation not permitted #9

nickmerwin opened this issue May 10, 2012 · 12 comments

Comments

@nickmerwin
Copy link

Hi, this seems to be the same issue as reported for PHPZip here:

Grandt/PHPZip#4

Other tools, such as Archive and even "unzip" via terminal, can open the zip file with no dramas - it's just the Archive Utility built into OSX that has dramas.

From the discusion:

The root cause is a mix between an odd behaviour of the deflate
algorithm in the PHP implementation of zlib, and a bug in the Mac OSX
"Archive Utility"

Has anyone else encountered this?

@janjongboom
Copy link
Owner

I've seen this only on the streaming branch. Master opens my files fine in archive utility.

@f3z0
Copy link

f3z0 commented May 21, 2012

I also received this error. Unzips fine from command line but archive utility complains that it is unable to unzip. Using the pull request with zlib compression fixed it for me (#3), I suspect it is some ascii character that is tripping up archive and the compression technique encodes it to something friendlier.

@donnfelker
Copy link

I'm also getting this error from latest on npm. I did as @CoolBlade did and used the fork that he used and the unzipping works great. I'm running node v0.8.19.

@nickradford
Copy link

When I use that fork, I get a TypeError inside of the janzip.js file.

@donnfelker
Copy link

Nick, is it saying something about a callback in the stack? If so, thats the issue. I'm using his fork with great results on androidbootstrap.com. You can check out the source in this file: https://github.com/donnfelker/android-bootstrap-site/blob/master/routes/generate.js#L73

Instead of just getting a buffer you have to provide a callback. See the code above for a working example. Cheers

@JoshuaGross
Copy link

I'm experiencing this issue as well in 1.1.0.

@disorderdev
Copy link

yes, I have this issue too, and I tried other libs, like adm-zip, they'll have the same issue.

@nickdesaulniers
Copy link

bump

@haganbt
Copy link

haganbt commented Feb 27, 2013

yes, I have this issue too, and I tried other libs, like adm-zip, they'll have the same issue.

++

@TooBug
Copy link

TooBug commented Mar 14, 2013

I got the same error, finally, it works with onkis's version.

the only difference is that the part of writting .zip file should be put into the callback of .toBuffer method.

@janjongboom
Copy link
Owner

After assessing all other libraries out there, I've seen that this lib has been superseded by other, nicer libraries, more specifically node-archiver. Which would solve stuff like this. Sorry for that :-)

@legomushroom
Copy link

I've published the fork by onkis as node-native-zip-compression to npm, it solves this issue

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