• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

decentraland / catalyst-storage / 24266457908

10 Apr 2026 10:07PM UTC coverage: 95.624% (-0.5%) from 96.145%
24266457908

push

github

web-flow
feat: add contentSize to FileInfo for range requests (#96)

* feat: add contentSize to FileInfo for correct range request support

When files are stored as gzip, fileInfo.size returns the compressed size
but range requests serve from uncompressed content. This mismatch causes
incorrect Content-Range headers and can truncate downloads.

Add a contentSize field to FileInfo that reports the logical (uncompressed)
content size. For gzip files, this is read from the gzip trailer (ISIZE
field, last 4 bytes per RFC 1952). For uncompressed files, contentSize
equals size. For S3 with encoding, contentSize is null (unknown).

Also update SimpleContentItem to carry contentSize through, defaulting
to size when not explicitly provided.

* chore: increase default decompression cache max size to 5GB

The 1GB default was too conservative for catalysts serving range
requests on many gzip-stored files, causing frequent re-decompressions.

98 of 110 branches covered (89.09%)

Branch coverage included in aggregate %.

16 of 17 new or added lines in 4 files covered. (94.12%)

339 of 347 relevant lines covered (97.69%)

30.58 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

97.39
/src/folder-based-storage-component.ts


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc