Fix: S3 key encoding env quote stripping test assertions remove unused import
Some checks failed
LogMaster CI/CD / build-and-test (push) Has been cancelled
LogMaster CI/CD / docker (push) Has been cancelled

This commit is contained in:
2026-05-24 12:50:35 +02:00
parent 44cd9ab001
commit 378b30cdc8
12 changed files with 230 additions and 891 deletions

View File

@@ -85,9 +85,11 @@ class S3Source {
* Download an object's content as string
*/
async getObject(key) {
// Encode each path segment separately to preserve /
const encodedKey = key.split('/').map(s => encodeURIComponent(s)).join('/');
const path = this.config.endpoint
? `/${this.config.bucket}/${encodeURIComponent(key)}`
: `/${encodeURIComponent(key)}`;
? `/${this.config.bucket}/${encodedKey}`
: `/${encodedKey}`;
const response = await this.requestRaw('GET', path, '');
// Auto-decompress if gzipped
if (key.endsWith('.gz') || key.endsWith('.gzip')) {