[
https://issues.apache.org/jira/browse/HDDS-516?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16645799#comment-16645799
]
Bharat Viswanadham commented on HDDS-516:
-----------------------------------------
Dependant on HDDS-522.
# Done
# Done
# When I use as you have suggested, it is not working. Not sure as my return
is Response we need explicit conversion.
# Done
# Done
# Done
Changed the signature to remove volume, and also updated the GetObject. After
this change when I a m using cp command
'aws s3 --endpoint-url [http://s3g:9878|http://s3g:9878/] cp /tmp/testfile
[s3://bucket1/|s3://bucket1/dir1/dir2/file]testfile
upload: ../../tmp/testfile to [s3://bucket1/testfile]
This working fine, but when I give path as below it is failing. Not sure of the
problem here.
'aws s3 --endpoint-url [http://s3g:9878|http://s3g:9878/] cp /tmp/testfile
[s3://bucket1/dir1/dir2/file]
this is failing with below error
|${output} = Completed 29 Bytes/29 Bytes with 1 file(s) remaining upload
failed: ../../tmp/testfile to [s3://bucket1/dir1/dir2/file] An error occurred
(405) when calling the PutObject operation: Method Not Allowed|
> Implement CopyObject REST endpoint
> ----------------------------------
>
> Key: HDDS-516
> URL: https://issues.apache.org/jira/browse/HDDS-516
> Project: Hadoop Distributed Data Store
> Issue Type: Sub-task
> Reporter: Elek, Marton
> Assignee: Bharat Viswanadham
> Priority: Major
> Labels: newbie
> Attachments: HDDS-516.01.patch, HDDS-516.03.patch
>
>
> The Copy object is a simple call to Ozone Manager. This API can only be done
> after the PUT OBJECT Call.
> This implementation of the PUT operation creates a copy of an object that is
> already stored in Amazon S3. A PUT copy operation is the same as performing a
> GET and then a PUT. Adding the request header, x-amz-copy-source, makes the
> PUT operation copy the source object into the destination bucket.
> If the Put Object call has this header, then Put Object call will issue a
> rename.
> Work Items or JIRAs
> Detect the presence of the extra header - x-amz-copy-source
> Make sure that destination bucket exists.
> The AWS reference is here:
> https://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectCOPY.html
> (This jira is marked as newbie as it requires only basic Ozone knowledge. If
> somebody would be interested, I can be more specific, explain what we need or
> help).
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]