Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues 692 #697

Merged
merged 3 commits into from
Feb 9, 2018
Merged

Issues 692 #697

merged 3 commits into from
Feb 9, 2018

Conversation

pjediny
Copy link
Contributor

@pjediny pjediny commented Jan 17, 2018

Fixes #692

  • S3 FileExists fix
  • S3 SymLink fix

According to https://tools.ietf.org/html/rfc7231#section-4.3.2 HEAD
must not have response body so the AWS error code NoSuchKey
cannot be received from S3 and we need to fallback to HTTP NotFound
error code.
The copy source should be the name of the source bucket and key name
of the source object, separated by a slash (/).
@pjediny pjediny closed this Jan 17, 2018
@pjediny pjediny reopened this Jan 17, 2018
@smira smira added the 1.3.0 label Jan 26, 2018
@smira
Copy link
Contributor

smira commented Feb 8, 2018

Seems to be related to aws/aws-sdk-go#1213

@pjediny
Copy link
Contributor Author

pjediny commented Feb 8, 2018

Yes, it looks like the issue with HEAD response having correctly not any payload impacts the SDK too. I was not able to find any AWS documentation mentioning this behavior.

Even worse - it actually mentions no such key in the docs: https://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectHEAD.html

Copy link
Contributor

@smira smira left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 thanks!

@smira smira merged commit 3c04c56 into aptly-dev:master Feb 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Acquire-by-hash doesn't work for S3 repositories
2 participants