aws-sdk-java icon indicating copy to clipboard operation
aws-sdk-java copied to clipboard

Using AWS-Java-SDK-S3, return to Inform Error 501 Not Implemented when uploading files

Open fantastic2085 opened this issue 3 years ago • 2 comments

Describe the bug

Upload files to the CEPH object store using AWS-java-SDK-S3, Using AWS-Java-SDK-S3, return to Inform Error 501 Not Implemented when uploading files

Expected Behavior

I hope I can upload the file successfully

Current Behavior

An error is as follows: image

Reproduction Steps

s3 client The following code: image

AWS-Java-SDK-S3 version: image

The code to upload the file is as follows: image

Possible Solution

No response

Additional Information/Context

No response

AWS Java SDK version used

1.11.1030

JDK version used

1.8.0_341

Operating System and version

4.19.90-25.16

fantastic2085 avatar Aug 05 '22 03:08 fantastic2085

Hello @fantastic2085 ,

Thank you very much for your message. An error 501 means that a header that you provided implies functionality that is not implemented. Unfortunately, we do not offer support/troubleshooting for error which arise due to the use of third party. If the SDK flags an exception caused by your use of CEPH we do not cover third party compatibility issues.

It seems that CEPH offers documentation on example syntax for S3 with Java SDK . It might be useful to compare your approach if it matches your use case.

Best, Yasmine

yasminetalby avatar Aug 08 '22 21:08 yasminetalby

documentation on example syntax for S3 with Java SDK , This CEPH website has been seen, you also see the implementation code, basically and CEPH website is the same. It is possible to use s3cmd and Python, but not Java @yasminetalby

fantastic2085 avatar Aug 10 '22 07:08 fantastic2085

Hello @fantastic2085 ,

Thank you very much for your answer. The issue you are encountering is not SDK or service related as the type of request you are attempting successfully complete with AWS endpoints. CEPH being a third-party service, we recommend you to reach out to the CEPH support team for any guidance or troubleshooting.

Best,

Yasmine

yasminetalby avatar Aug 11 '22 17:08 yasminetalby

COMMENT VISIBILITY WARNING

Comments on closed issues are hard for our team to see. If you need more assistance, please open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.

github-actions[bot] avatar Aug 11 '22 17:08 github-actions[bot]

If CEPH is the problem, why is s3cmd OK? @yasminetalby

this s3cmd http header: image

this java s3 http header: image

fantastic2085 avatar Aug 12 '22 01:08 fantastic2085

I provide enough information, your answer makes me very helpless @yasminetalby

fantastic2085 avatar Aug 12 '22 01:08 fantastic2085

Hi @fantastic2085 I'm sorry you're feeling frustrated with this, but both s3cmd and CEPH are tools that are not maintained by AWS teams. We guarantee that the AWS SDK for Java clients will work when communicating directly with AWS endpoints, but we cannot guarantee it will work when the communication goes throw a third-party service. The best thing you can do is to reach out to CEPH support team.

debora-ito avatar Aug 12 '22 23:08 debora-ito