Skip to content

Conversation

@kggilmer
Copy link
Contributor

@kggilmer kggilmer commented Jan 4, 2022

Issue #

#485

Description of changes

  • Update presigner service config to contain 2 additional signing parameters needed for unicode bucket names in s3.
  • Update codegen to specify values based on service.
  • Update S3 service tests for unicode bucket names.
  • Misc cleanup

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

…ters needed for unicode bucket names in s3. Update codegen to specify values based on service. Update S3 service tests for unicode bucket names.
@kggilmer kggilmer requested a review from a team as a code owner January 4, 2022 00:19
@github-actions
Copy link

github-actions bot commented Jan 4, 2022

A new generated diff is ready to view: __generated-main...__generated-fix-s3-unicode-presigners

1 similar comment
@github-actions
Copy link

github-actions bot commented Jan 4, 2022

A new generated diff is ready to view: __generated-main...__generated-fix-s3-unicode-presigners

@github-actions
Copy link

github-actions bot commented Jan 4, 2022

A new generated diff is ready to view: __generated-main...__generated-fix-s3-unicode-presigners

@github-actions
Copy link

github-actions bot commented Jan 4, 2022

A new generated diff is ready to view: __generated-main...__generated-fix-s3-unicode-presigners

body = ByteStream.fromString(contents)
}
testKeyNames.reversed().forEach { keyName ->
println("testing $keyName")
Copy link
Contributor

Choose a reason for hiding this comment

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

can probably remove

CrtHttpEngine().use { engine ->
val httpClient = sdkHttpClient(engine)
CrtHttpEngine().use { engine ->
val httpClient = sdkHttpClient(engine)
Copy link
Contributor

Choose a reason for hiding this comment

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

style/suggestion

sdkHttpClient will close the engine by default so this could be written as:

sdkHttpClient(CrtHttpEngine()).use { httpClient ->
    ...
}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I get the following error when changing to your suggested code: Unresolved reference. None of the following candidates is applicable because of receiver type mismatch: public inline fun <T : Closeable?, R> TypeVariable(T).use(block: (TypeVariable(T)) -> TypeVariable(R)): TypeVariable(R) defined in kotlin.io

I'm not seeing anywhere where SdkHttpClient implements Closable..

Copy link
Contributor

Choose a reason for hiding this comment

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

Hmm indeed it does not implement Closeable yet has a close() method. Probably a miss (or likely because SdkHttpClient predates our addition of Closeable). ignore for now then

@sonarqubecloud
Copy link

sonarqubecloud bot commented Jan 4, 2022

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
4.0% 4.0% Duplication

@github-actions
Copy link

github-actions bot commented Jan 4, 2022

A new generated diff is ready to view: __generated-main...__generated-fix-s3-unicode-presigners

@kggilmer kggilmer merged commit e23c843 into main Jan 4, 2022
@kggilmer kggilmer deleted the fix-s3-unicode-presigners branch January 4, 2022 21:43
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.

3 participants