[walrus] Unexpected Malformed COPY request

Bug #729365 reported by Gilles Gaillard
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Eucalyptus
Fix Committed
Undecided
Neil Soman

Bug Description

I'm trying to perform a 'copy' request and receive "HTTP/1.1 400 Bad Request[\r][\n]" which is logged on the server as:
com.eucalyptus.binding.BindingException: Malformed COPY request
 at com.eucalyptus.ws.handlers.WalrusRESTBinding.getOperation(WalrusRESTBinding.java:557)

I believe this is a bug since the request I'm sending works with S3. Below are details about the request.
The offended code in WalrusRESTBinding calls WalrusUtils.getTarget and throws the above exception if it is
unable to split the path received in the x-amz-copy-source header into more than one string.

To do that it expects to find a '/' character in the x-amz-copy-source header value. The problem comes from the fact that this character is present but encoded as '%2F'.

PUT /services/Walrus/testbypart318364830315343807dir/Nouveau%2BDossier%2Fsrc-f10 HTTP/1.1
Date: Fri, 04 Mar 2011 21:00:24 GMT
Content-Type:
x-amz-copy-source: testbypart318364830315343807dir%2Fsrc-f10
x-amz-metadata-directive: COPY
Authorization: AWS xNMrV8s9..
Host: 10.1.0.2:8773
Content-Length: 0
Connection: Keep-Alive
User-Agent: Apache-Http..

Related branches

Neil Soman (neilsoman)
Changed in eucalyptus:
assignee: nobody → Neil Soman (neilsoman)
Revision history for this message
Neil Soman (neilsoman) wrote :

Thanks for your report! Should be fixed in revno 1258. Please reopen if it isn't. Thanks.

Changed in eucalyptus:
status: New → Fix Committed
Revision history for this message
Andy Grimm (agrimm) wrote :

This issue is now being tracked upstream at http://eucalyptus.atlassian.net/browse/EUCA-2755

Please watch that issue for further updates.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.