* Checks for versionId in request query and returns error if it is there * @param {object} query - request query * @return {(Error|undefined)} - customized InvalidArgument error or undefined
(query)
| 73 | * @return {(Error|undefined)} - customized InvalidArgument error or undefined |
| 74 | */ |
| 75 | function checkQueryVersionId(query) { |
| 76 | if (query && query.versionId !== undefined) { |
| 77 | const customMsg = 'This operation does not accept a version-id.'; |
| 78 | return errorInstances.InvalidArgument.customizeDescription(customMsg); |
| 79 | } |
| 80 | return undefined; |
| 81 | } |
| 82 | |
| 83 | function _storeNullVersionMD(bucketName, objKey, nullVersionId, objMD, log, cb) { |
| 84 | // In compatibility mode, create null versioned keys instead of null keys |
no outgoing calls
no test coverage detected