-
Notifications
You must be signed in to change notification settings - Fork 23
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
Issue 63: Upgrade to aws-sdk-java-v2 #83
Conversation
src/main/java/org/carlspring/cloud/storage/s3fs/S3FileSystemProvider.java
Outdated
Show resolved
Hide resolved
src/main/java/org/carlspring/cloud/storage/s3fs/S3FileSystemProvider.java
Outdated
Show resolved
Hide resolved
5167c30
to
24ae70e
Compare
@ptirador : This page will also need to be updated once the documentation pull request is merged: |
Nice work @ptirador! :) |
Yeah, we should investigate how we can benefit from the |
P.S. I've just merged some build improvements in the |
src/main/java/org/carlspring/cloud/storage/s3fs/S3AccessControlList.java
Outdated
Show resolved
Hide resolved
I agree. This should be created in a follow-up task. |
Rebase done 👍 |
4d01965
to
314dae5
Compare
src/test/java/org/carlspring/cloud/storage/s3fs/S3FileSystemTest.java
Outdated
Show resolved
Hide resolved
src/main/java/org/carlspring/cloud/storage/s3fs/S3Iterator.java
Outdated
Show resolved
Hide resolved
// Originally getBucket was being used to determine presence of a bucket | ||
// | ||
// This is incorrect for two reasons: | ||
// 1. The list bucket operation provides buckets for which you are the owner | ||
// It would not, therefore, allow you to work with buckets for which you | ||
// have access but are not the owner. | ||
// 2. The way this information is being used later is to determine the | ||
// bucket owner, which by definition, is now "you". | ||
// https://docs.aws.amazon.com/AmazonS3/latest/API/RESTServiceGET.html | ||
// | ||
// However, note that the revised code below now has a different permissions | ||
// model as HeadBucket is now required |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these notes coming from @elerch 's fork?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, some parts are from this fork that you mention. Could be helpful.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The ability to head the bucket is the true test that a bucket "exists" for the Principle as listing buckets only shows those that are in the account of the user whereas "head" will work if the bucket has been shared with the Principle from another account.
ba80ea6
to
fd91fc2
Compare
b741167
to
92ea6db
Compare
fixup! Issue-63: Socket Buffer Size Hint not supported in v2.
fixup! Issue-63: Fix tests.
…obtain rest of properties missed.
… fileChannel/seekableByteChannel creation. fixup! Issue-63: Add boolean parameter to use or not a temporary file in the fileChannel/seekableByteChannel creation.
fixup! Issue-63: Remove not valid case for URI.
@carlspring, @steve-todorov : Follow-up task created: #99 |
Thanks for your massive work on this pull request! As agreed, I will merge this into the Thanks for reviewing and for all your comments! We've reviewed them and have decided to handle them as separate follow-up tasks. Your guidance has been extremely valuable and much appreciated and we hope you can keep an eye on our future pull requests as well! |
src/main/java/org/carlspring/cloud/storage/s3fs/S3AccessControlList.java
Outdated
Show resolved
Hide resolved
src/main/java/org/carlspring/cloud/storage/s3fs/S3Iterator.java
Outdated
Show resolved
Hide resolved
src/test/java/org/carlspring/cloud/storage/s3fs/S3ClientIT.java
Outdated
Show resolved
Hide resolved
src/test/java/org/carlspring/cloud/storage/s3fs/S3FileChannelTest.java
Outdated
Show resolved
Hide resolved
src/test/java/org/carlspring/cloud/storage/s3fs/S3FileStoreTest.java
Outdated
Show resolved
Hide resolved
@carlspring: Your suggestions have been fixed. |
Awesome work, @ptirador ! Thanks again! :) |
Pull Request Description
This pull request closes #63 .
Acceptance Test
mvn clean install -Pintegration-tests
still works.Questions
Does this pull request break backward compatibility?
Does this pull request require other pull requests to be merged first?
Does this require an update of the documentation?
Test classes:
org.carlspring.cloud.storage.s3fs
AttributesUtilsTest
CacheTest
ExampleClass
ExampleClassIT
FilesIT
FileSystemsIT
S3ClientFactoryTest
S3ClientIT
S3FileAttributesTest
S3FileChannelTest
S3FileStoreTest
S3FileSystemTest
S3IteratorTest
S3SeekableByteChannelTest
S3UnitTestBase
S3UtilsIT
S3UtilsTest
S3WalkerTest
org.carlspring.cloud.storage.s3fs.fileSystemProvider
:CheckAccessTest
CopyTest
CreateDirectoryTest
DeleteTest
GetFileAttributeViewTest
GetFileStoreTest
GetFileSystemIT
GetPathTest
IsHiddenTest
IsSameFileTest
MoveTest
NewByteChannelIT
NewByteChannelTest
NewDirectoryStreamTest
NewFileSystemIT
NewFileSystemTest
NewInputStreamTest
NewOutputStreamTest
ReadAttribuTest
estSetAttributeTest
org.carlspring.cloud.storage.s3fs.path
:EndsWithTest
EqualsTest
GetFileNameTest
GetKeyTest
GetNameTest
GetRootTest
IteratorTest
ResolveSiblingTest
ResolveTest
S3PathTest
StartsWithTest
SubpathTest
ToUriTest
ToURLIT
org.carlspring.cloud.storage.s3fs.spike
EnvironmentIT
FileStoreTest
InstallProviderTest
PathSpecTest
ProviderSpecTest
SpecTest
URISpikeTest
org.carlspring.cloud.storage.s3fs.util
:BrokenS3Factory
CopyDirVisitor
EnvironmentBuilder
ExposingS3Client
ExposingS3ClientFactory
FileAttributeBuilder
MockBucket
S3ClientMock
S3EndpointConstant
S3MockFactory
UnsupportedFileStoreAttributeView