Skip to content
Commit f18c60c9 authored by Arne Franken's avatar Arne Franken Committed by Andreas Gudian
Browse files

Fixes copy part / copy object encoding issues

Adds integration tests for CopyParts API.
APIs must return "application/xml".
Incoming key reference must undergo decode&encode cycle just like the
destinationFile name we take from the incoming request path. ObjectRef
now does this for every incoming request. Before, clients of ObjectRef
would need to remember to encode the key again before usage. D'OH!
From/To values are of type "long" in the request, not "int". Copying
of parts larger than Integer.MAX_VALUE would have failed.

Special thanks to user @wwelling for spotting these issues and providing
the fix, I just refactored and added an integration test.

fixes #279, makes #278 obsolete.
parent 5635f763
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment