Skip to content

Fix RPC v2 URI resolution #6081

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 2 commits into from
May 6, 2025
Merged

Conversation

kstich
Copy link
Contributor

@kstich kstich commented May 1, 2025

Motivation and Context

Smithy RPC v2 CBOR does not allow for custom URIs. This PR removes functionality that
would utilize non-/ paths if present in the service model.

Modifications

This commit removes the possiblity to customize the HTTP URI for the Smithy RPC v2 CBOR protocol by setting a non-/ value in the http property.

It also fixes some typos in the contributing document.

Testing

Updated the test model to remove the http field.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Checklist

  • I have read the CONTRIBUTING document
  • Local run of mvn install succeeds
  • My code follows the code style of this project
  • My change requires a change to the Javadoc documentation
  • I have updated the Javadoc documentation accordingly
  • I have added tests to cover my changes
  • All new and existing tests passed
  • I have added a changelog entry. Adding a new entry must be accomplished by running the scripts/new-change script and following the instructions. Commit the new file created by the script in .changes/next-release with your changes.
  • My change is to implement 1.11 parity feature and I have updated LaunchChangelog

License

  • I confirm that this pull request can be released under the Apache 2 license

@kstich kstich requested a review from a team as a code owner May 1, 2025 22:07
@dagnir
Copy link
Contributor

dagnir commented May 1, 2025

LGTM. Can we add a test for SmithyRpcV2CborProtocolProcessor with an input model that tries to customize it and verify that it gets ignored?

@kstich kstich force-pushed the kstich/fix-rpcv2-cbor-uris branch from 4cb5571 to 7566ba7 Compare May 5, 2025 06:53
This commit removes the possiblity to customize the HTTP URI for the
Smithy RPC v2 CBOR protocol by setting a non-`/` value in the `http`
property.

It also fixes some typos in the contributing document.
@kstich kstich force-pushed the kstich/fix-rpcv2-cbor-uris branch from 7566ba7 to e33ff6e Compare May 5, 2025 17:07
@dagnir
Copy link
Contributor

dagnir commented May 5, 2025

Integ test is a flaky test failure and is unrelated. Retrying. pauseAndResume_ObjectNotChanged_shouldResumeDownload

@dagnir dagnir enabled auto-merge May 5, 2025 20:37
@dagnir dagnir disabled auto-merge May 5, 2025 21:20
@dagnir dagnir added this pull request to the merge queue May 5, 2025
Merged via the queue into aws:master with commit d37c139 May 6, 2025
13 of 22 checks passed
@dagnir
Copy link
Contributor

dagnir commented May 6, 2025

@all-contributors please add @kstich for code

Copy link
Contributor

@dagnir

I've put up a pull request to add @kstich! 🎉

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