You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
General
The recent versions of cesium contain an indirect bug because of using a dependency with a bug.
This can be fixed by using a more up-to-date version of that dependency.
The nature of the bug:
The dependency (@zip.js/zip.js) in older (before 2.6.70) versions comes with a "tests' folder.
The tests folder contains an encrypted archive (tests/data/lorem-encrypted.zip)
A secured site that I am working with does not allow direct access to the internet.
The secured site allows importing from npm, and from other open code sources.
But the secured site does not allow any encrypted archives within the imported packages, because such archives cannot be scanned.
The result is that the secured site does not allow importation of cesium from npm.
The requested fix
In later versions (about ~ 2.6.70) the "tests" folder was removed from the installation of zip.js.
Which also removed the problematic archive file.
So the solution is to use more up-to-date versions of @zip.js/zip.js
The text was updated successfully, but these errors were encountered:
ramtob
changed the title
A bug on secured sites: please upgrade dependency zip.js to version to 2.7.0 or higher
A bug on secured sites: please upgrade dependency zip.js to version 2.7.0 or higher
Sep 19, 2023
General
The recent versions of cesium contain an indirect bug because of using a dependency with a bug.
This can be fixed by using a more up-to-date version of that dependency.
The nature of the bug:
The dependency (@zip.js/zip.js) in older (before 2.6.70) versions comes with a "tests' folder.
The tests folder contains an encrypted archive (tests/data/lorem-encrypted.zip)
A secured site that I am working with does not allow direct access to the internet.
The secured site allows importing from npm, and from other open code sources.
But the secured site does not allow any encrypted archives within the imported packages, because such archives cannot be scanned.
The result is that the secured site does not allow importation of cesium from npm.
The requested fix
In later versions (about ~ 2.6.70) the "tests" folder was removed from the installation of zip.js.
Which also removed the problematic archive file.
So the solution is to use more up-to-date versions of @zip.js/zip.js
File https://github.com/CesiumGS/cesium/blob/main/packages/engine/package.json contains the line.
"dependencies": {
...
"@zip.js/zip.js": "2.4.x",
This should be changed to
"dependencies": {
...
"@zip.js/zip.js": "2.7.x",
That is @zip.js/zip.js version 2.7.0 or above.
TIA
The text was updated successfully, but these errors were encountered: