Skip to content

fix: serializer throws when hostname prefix is applied #1475

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

Merged
merged 1 commit into from
Aug 31, 2020

Conversation

AllanZhengYP
Copy link
Contributor

Related: smithy-lang/smithy-typescript#206

Description of changes:
Currently, SDK will throw when serializing client-iotsitewise and client-servicediscovery clients requests, because of a bug in serializer. This change fixes the issue.

This change also update the regex used to validate the host name in isValidHostname.ts. The regex was originally added in #774 but only validates host labels instead of the full host name. For example, s3.amazonaws.com was incorrectly detected as an invalid hostname with original regex.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@AllanZhengYP AllanZhengYP requested a review from srchase August 28, 2020 07:15
@codecov-commenter
Copy link

codecov-commenter commented Aug 28, 2020

Codecov Report

Merging #1475 into master will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1475   +/-   ##
=======================================
  Coverage   79.80%   79.81%           
=======================================
  Files         298      298           
  Lines       11502    11507    +5     
  Branches     2475     2477    +2     
=======================================
+ Hits         9179     9184    +5     
  Misses       2323     2323           
Impacted Files Coverage Δ
packages/property-provider/src/memoize.ts 100.00% <100.00%> (ø)
packages/protocol-http/src/isValidHostname.ts 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 729a276...d03b625. Read the comment docs.

@AllanZhengYP AllanZhengYP merged commit fe63117 into aws:master Aug 31, 2020
@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants