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 replacements causing corrupted .zip files #1090

Closed
WilliamVenner opened this issue Aug 3, 2021 · 10 comments
Closed

String replacements causing corrupted .zip files #1090

WilliamVenner opened this issue Aug 3, 2021 · 10 comments
Labels
🐞 Bug Something isn't working

Comments

@WilliamVenner
Copy link

Expected Behavior

The .zip file works

Actual Behavior

The .zip file cannot be extracted by Windows Explorer.
WinRAR and 7z have no problem.

Reproduction Steps

Customer 76561198093255661 has informed me all my addons other than my admin sits addon cause this issue, download the beta version of those scripts on his account and it should reproduce

Browsers

No response

Example URL

No response

GmodStore Version

No response

Event ID

No response

Additional Information

No response

@WilliamVenner WilliamVenner added the 🐞 Bug Something isn't working label Aug 3, 2021
@danfmn
Copy link

danfmn commented Sep 5, 2021

I'm also experiencing this issue :-/

@TheodoorP
Copy link
Collaborator

@danfmn please provide some reproduction steps, such as which addons and releases cause this issue.

@danfmn
Copy link

danfmn commented Sep 6, 2021

@TheodoorP Any of Billy's addons latest releases. He includes Reproduction steps above.

@TheodoorP
Copy link
Collaborator

I'm only able to replicate this in billy's whitelist, billy's admin sites and gluapack. It seems to happen with the license.lua files and gluapack_license.mdmp.

@WilliamVenner
Copy link
Author

@TheodoorP I'm not doing anything special. I am just returning a hex string as my response. No binary or anything.

@Marcuzz
Copy link
Member

Marcuzz commented Sep 6, 2021

Debugging this is not easy when only Windows Explorer seems to think the file is corrupt, without giving any additional information other than Error 0x80004005: Unspecified error. It is definitely related to files that are touched by string replacements, but we are not performing any mutations that are out of the ordinary.

@WilliamVenner
Copy link
Author

Please can you look into this again, customers are still getting this regularly and they do not understand it.

It only happens on files whose contents are only file string replacements.

@J0sh0nat0r
Copy link

It seems Windows' zip implementation is picky about file compression, this was fixed by using zlib's implementation of deflate.

@WilliamVenner
Copy link
Author

I assumed you guys were using the zip crate?

@Marcuzz
Copy link
Member

Marcuzz commented Oct 22, 2021

I assumed you guys were using the zip crate?

Yes, and we still are

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants