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

feat: Add the "s3fs.proxy.protocol" environment variable. #720

Merged
merged 2 commits into from
Jul 26, 2023
Merged

feat: Add the "s3fs.proxy.protocol" environment variable. #720

merged 2 commits into from
Jul 26, 2023

Conversation

stanakaj
Copy link
Contributor

@stanakaj stanakaj commented Jun 13, 2023

Pull Request Description

This pull request closes #719 .

Acceptance Test

  • Building the code with gradle clean build still works.

Questions

  • Does this pull request break backward compatibility?

  • Does this pull request require other pull requests to be merged first?

    • Yes, please see #...
    • No
  • Does this require an update of the documentation?

    • Yes, please see [need to add the "s3fs.proxy.protocol" environment variable]
    • No

@stanakaj
Copy link
Contributor Author

It seems that the s3fs.region setting is missing in the test. Please let me know if there is anything I can do to help.

    java.lang.IllegalArgumentException: region must not be blank or empty.
        at software.amazon.awssdk.utils.Validate.paramNotBlank(Validate.java:159)
        at software.amazon.awssdk.regions.Region.of(Region.java:136)

@steve-todorov
Copy link
Collaborator

Hey @stanakaj ,

Thank you very much for your contribution! :)

I believe that might be a false-positive exception related to how GH Actions runs workflows from forks (secrets are usually not passed to forks). I will check your PR manually in the upcoming days.

// cc @carlspring ICLA?

@steve-todorov
Copy link
Collaborator

@stanakaj I've checked your PR and overall it looks good. I assume you have tested it with a real proxy?

Could you please also add a test case covering the your proxy configuration case in S3ClientFactoryTest?

@steve-todorov steve-todorov modified the milestone: 1.0.2 Jun 15, 2023
@stanakaj
Copy link
Contributor Author

I added some test codes in S3ClientFactoryTest. The "differntProtocols" test is my proxy configuration scenario.

@steve-todorov steve-todorov temporarily deployed to external-collaborators July 10, 2023 15:53 — with GitHub Actions Inactive
@steve-todorov steve-todorov temporarily deployed to external-collaborators July 10, 2023 15:53 — with GitHub Actions Inactive
@steve-todorov steve-todorov temporarily deployed to external-collaborators July 10, 2023 15:53 — with GitHub Actions Inactive
@steve-todorov steve-todorov temporarily deployed to external-collaborators July 10, 2023 15:53 — with GitHub Actions Inactive
@steve-todorov steve-todorov temporarily deployed to external-collaborators July 10, 2023 15:53 — with GitHub Actions Inactive
@steve-todorov steve-todorov temporarily deployed to external-collaborators July 10, 2023 15:53 — with GitHub Actions Inactive
@steve-todorov steve-todorov added this to the 1.0.2 milestone Jul 25, 2023
@steve-todorov steve-todorov temporarily deployed to external-collaborators July 26, 2023 10:23 — with GitHub Actions Inactive
@steve-todorov steve-todorov temporarily deployed to external-collaborators July 26, 2023 10:23 — with GitHub Actions Inactive
@steve-todorov steve-todorov temporarily deployed to external-collaborators July 26, 2023 10:24 — with GitHub Actions Inactive
@steve-todorov steve-todorov temporarily deployed to external-collaborators July 26, 2023 10:24 — with GitHub Actions Inactive
@steve-todorov steve-todorov temporarily deployed to external-collaborators July 26, 2023 10:24 — with GitHub Actions Inactive
@steve-todorov steve-todorov temporarily deployed to external-collaborators July 26, 2023 10:24 — with GitHub Actions Inactive
@steve-todorov steve-todorov temporarily deployed to external-collaborators July 26, 2023 10:24 — with GitHub Actions Inactive
@steve-todorov steve-todorov merged commit 47139ca into carlspring:master Jul 26, 2023
10 checks passed
@steve-todorov
Copy link
Collaborator

Thanks for your contribution @stanakaj ! :)

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.

The "s3fs.protocol" environment variable applies to both the S3 client and the Proxy.
2 participants