-
-
Notifications
You must be signed in to change notification settings - Fork 52
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
[bugfix] handle extracting non-conformant zip files #649
[bugfix] handle extracting non-conformant zip files #649
Conversation
4b820ee
to
01c405c
Compare
@silentrald I think you should go with yauzl 🤔 That way, we can also use it for the map import feature (and the zip files used when importing maps can be very large, so JSZip is a big no no in this case 😅) |
01c405c
to
853da01
Compare
853da01
to
dd08f41
Compare
@silentrald Everything seems to be working fine, except when I import multiple maps from a zip; it never ends: I haven’t had time to debug, but the issue likely comes from these lines: if (progress.current === progress.total) {
completeNewFolder();
} But, overall, the modifications seems a bit over engineered to me 😅 |
@Zagrios yeah its a little bit over 😅 but was trying to not expose the yauzl module to everything so that its testable, so whenever a change happens, its should be isolated within zip.helpers. Although I encountered that in coding and I suspect its in the |
Tested on around ~1,400 maps and its working fine 🤔 so its very weird that its not failing on my end |
* fixed issue where yauzl just closes after reading all files
Notes:
|
87979f5
to
e45a0d0
Compare
e45a0d0
to
07d9496
Compare
Quality Gate passedIssues Measures |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🙌
Thanks for the help @silentrald ! ❤️ |
…ction [bugfix] handle extracting non-conformant zip files (cherry picked from commit f7f5f76)
Issue described in discord
jszip
andnode-stream-zip
packages.NOTES:
yauzl
since that support non-conformant zip files and ram efficiency.jszip
in getting oculus manifest and I can't test it on my end.but will need to address some comments (BUG and NOTE).