Skip to content

Commit

Permalink
Merge branch 'w/7.5/bugfix/S3C-2172-bucket-error' into tmp/octopus/w/…
Browse files Browse the repository at this point in the history
…8.0/bugfix/S3C-2172-bucket-error
  • Loading branch information
bert-e committed May 22, 2019
2 parents 9da1a8e + 933dc1d commit e6ddad1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/s3routes/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ function checkBucketAndKey(bucketName, objectKey, method, reqQuery,
if (bucketName !== undefined && routesUtils.isValidBucketName(bucketName,
blacklistedPrefixes.bucket) === false) {
log.debug('invalid bucket name', { bucketName });
if (method === 'DELETE') {
return errors.NoSuchBucket;
}
return errors.InvalidBucketName;
}
if (objectKey !== undefined) {
Expand Down

0 comments on commit e6ddad1

Please sign in to comment.