Cannot upload compressed .gz files
See original GitHub issueBug
Expected Behavior
WHEN Uploading a compressed .gz file
THEN the file will be unziped and if the map is valid it is loaded properly.
Actual Behavior
an error message appears “File invalid or empty”
Steps to Reproduce the Problem
- Click the “load map” button on the upper left
- Upload a .gz file
Developer Notes
- The fileChooser component tries to unzip the compressed file.
- Then a
Uint8Arrayis returned from thezliblibrary. - We then mistakenly assume that the
Uint8Arrayis a Json string which we can parse withJSON.parse(content). - This results in the aforementioned error message.
- I think we must handle a buffer array differntly, converting it to string and then parse it as a JSON.
- We have to add tests for that.
Specifications
- is released in online-demo: yes
- CodeCharta Version: 1.64.0
- OS: Windows
- Browser: Chrome
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Cannot upload compressed file to Cloud Storage with Python ...
When I try to upload a compressed gzip file to cloud storage using a python script on a Cloud Shell instance, it always...
Read more >Inventory Beacon cannot upload .gz files - Flexera Community
Symptoms: .gz file upload is failing for Beacon-generated compressed files. Bstat.gz and actdir.gz files (reporting Beacon Status and Active ...
Read more >Uploading .gz file to S3 results in file being stored ... - GitHub
I have compressed log files I'm trying to store in S3 using django-storages s3 backend, but when I inspect the files I discover...
Read more >Transcoding of gzip-compressed files | Cloud Storage
While it is possible to do so, a file that is gzip-compressed should not be uploaded with the compressed nature of the file...
Read more >How To Optimize Your Site With GZIP Compression
Verify Your Compression Refresh your page, and click the network line for the page itself (i.e., www.google.com ). The header “Content-encoding: gzip” means ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

😕 we should really only land PRs that are fully covered (or at least fully test the main features).
look at Issue #1702. the implementation is handled there.