Skip to content

Commit

Permalink
Add OSGUtil.isPUTDataRequest check to accept requests that contain pr…
Browse files Browse the repository at this point in the history
…ogressbar_label parameters as being data requests.
  • Loading branch information
jhalterman committed Feb 14, 2017
1 parent d8ec8ba commit 2bb3174
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -444,6 +444,7 @@ public static boolean isPUTDataRequest(HttpRequest request, Set<String> serviceP
if (request.getMethod().getName().equals(ObjectStorageProperties.HTTPVerb.PUT.toString()) && request instanceof MappingHttpRequest
&& !isBucketOp((mappingRequest = (MappingHttpRequest) request), servicePaths)
&& (mappingRequest.getParameters() == null || mappingRequest.getParameters().isEmpty()
|| mappingRequest.getParameters().containsKey("progressbar_label") // See EUCA-13210
|| mappingRequest.getParameters().containsKey(ObjectStorageProperties.SubResource.uploadId.toString())
|| mappingRequest.getParameters().containsKey(ObjectStorageProperties.SubResource.partNumber.toString())
|| mappingRequest.getParameters().containsKey(ObjectStorageProperties.SubResource.uploadId.toString().toLowerCase())
Expand Down

0 comments on commit 2bb3174

Please sign in to comment.