Compare commits

...

1 Commits

Author SHA1 Message Date
williamlardier 59f946742c add logs 2024-05-16 17:15:52 +02:00
3 changed files with 7 additions and 0 deletions

View File

@ -94,6 +94,9 @@ function completeMultipartUpload(authInfo, request, log, callback) {
let versionId; let versionId;
const putVersionId = request.headers['x-scal-s3-version-id']; const putVersionId = request.headers['x-scal-s3-version-id'];
console.log('completeMPU > request.headers', request.headers);
const isPutVersion = putVersionId || putVersionId === ''; const isPutVersion = putVersionId || putVersionId === '';
if (putVersionId) { if (putVersionId) {
const decodedVidResult = decodeVID(putVersionId); const decodedVidResult = decodeVID(putVersionId);

View File

@ -50,6 +50,8 @@ function initiateMultipartUpload(authInfo, request, log, callback) {
const bucketName = request.bucketName; const bucketName = request.bucketName;
const objectKey = request.objectKey; const objectKey = request.objectKey;
console.log('initiateMPU > request.headers', request.headers);
if (hasNonPrintables(objectKey)) { if (hasNonPrintables(objectKey)) {
return callback(errors.InvalidInput.customizeDescription( return callback(errors.InvalidInput.customizeDescription(
'object keys cannot contain non-printable characters', 'object keys cannot contain non-printable characters',

View File

@ -61,6 +61,8 @@ function objectPutPart(authInfo, request, streamingV4Params, log,
log.debug('processing request', { method: 'objectPutPart' }); log.debug('processing request', { method: 'objectPutPart' });
const size = request.parsedContentLength; const size = request.parsedContentLength;
console.log('objectPutPart > request.headers', request.headers);
if (Number.parseInt(size, 10) > constants.maximumAllowedPartSize) { if (Number.parseInt(size, 10) > constants.maximumAllowedPartSize) {
log.debug('put part size too large', { size }); log.debug('put part size too large', { size });
monitoring.promMetrics('PUT', request.bucketName, 400, monitoring.promMetrics('PUT', request.bucketName, 400,