From 71dec566797f122fe281173c641a90885180e334 Mon Sep 17 00:00:00 2001 From: Maha Benzekri Date: Thu, 28 Nov 2024 17:15:36 +0100 Subject: [PATCH] fixup --- lib/s3routes/routesUtils.ts | 3 ++- package.json | 2 +- yarn.lock | 7 +++++++ 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/lib/s3routes/routesUtils.ts b/lib/s3routes/routesUtils.ts index 46d722716..af6555532 100644 --- a/lib/s3routes/routesUtils.ts +++ b/lib/s3routes/routesUtils.ts @@ -123,6 +123,7 @@ export const XMLResponseBackend = { } else { error = errors.InternalError.customizeDescription(errCode.message); } + const description = error.description; // early return to avoid extra headers and XML data if (error.code === 304) { response.writeHead(error.code); @@ -148,7 +149,7 @@ export const XMLResponseBackend = { '', '', `${errCode.message}`, - `${errCode.description}`, + `${description}`, ); const invalidArguments = error.metadata.get('invalidArguments') || []; invalidArguments.forEach((invalidArgument, index) => { diff --git a/package.json b/package.json index fd2b8cab8..81ecdf730 100644 --- a/package.json +++ b/package.json @@ -52,7 +52,7 @@ "sproxydclient": "github:scality/sproxydclient#8.1.0", "utf8": "^3.0.0", "uuid": "^10.0.0", - "werelogs": "scality/werelogs#8.2.0", + "werelogs": "github:scality/werelogs#8.2.2", "xml2js": "^0.6.2" }, "optionalDependencies": { diff --git a/yarn.lock b/yarn.lock index 8f859d46b..126f7cf85 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7628,6 +7628,13 @@ webidl-conversions@^7.0.0: fast-safe-stringify "^2.1.1" safe-json-stringify "^1.2.0" +"werelogs@github:scality/werelogs#8.2.2": + version "8.2.2" + resolved "https://codeload.github.com/scality/werelogs/tar.gz/e53bef5145697bf8af940dcbe59408988d64854f" + dependencies: + fast-safe-stringify "^2.1.1" + safe-json-stringify "^1.2.0" + werelogs@scality/werelogs#8.2.0: version "8.2.0" resolved "https://codeload.github.com/scality/werelogs/tar.gz/7bf334cea94002d118f27d7ec1c7a5af74b51b8d"