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.
Loading
Please sign in to comment