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

Make BaseURL insensitive to trailing slashes for metadata endpoint redirect. #5458

Merged
merged 2 commits into from
Jun 11, 2024

Conversation

Dlougach
Copy link
Contributor

@Dlougach Dlougach commented Jun 7, 2024

Tracking issue

Example: Closes #5456

Why are the changes needed?

Fixes resolution of OpenID metadata URL redirect.

Without the change tests would fail:

expected: "https://login.microsoftonline.com/abc/v2.0/.well-known/openid-configuration"
actual  : "https://login.microsoftonline.com/abc/.well-known/openid-configuration"

What changes were proposed in this pull request?

Append a trailing slash to BaseURL before running ResolveReference

How was this patch tested?

Unit tests only.

Setup process

Screenshots

Check all the applicable boxes

  • I updated the documentation accordingly.
  • All new and existing tests passed.
  • All commits are signed-off.

Related PRs

Docs link

Copy link

welcome bot commented Jun 7, 2024

Thank you for opening this pull request! 🙌

These tips will help get your PR across the finish line:

  • Most of the repos have a PR template; if not, fill it out to the best of your knowledge.
  • Sign off your commits (Reference: DCO Guide).

@Dlougach Dlougach force-pushed the yakov.dlougach/5456 branch from 89f7820 to 8024b27 Compare June 7, 2024 23:01
Copy link

codecov bot commented Jun 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 60.98%. Comparing base (25c3596) to head (c0b5033).
Report is 140 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5458      +/-   ##
==========================================
- Coverage   61.07%   60.98%   -0.10%     
==========================================
  Files         793      793              
  Lines       51226    51313      +87     
==========================================
+ Hits        31288    31294       +6     
- Misses      17062    17134      +72     
- Partials     2876     2885       +9     
Flag Coverage Δ
unittests-datacatalog 69.31% <ø> (ø)
unittests-flyteadmin 58.66% <100.00%> (-0.25%) ⬇️
unittests-flytecopilot 17.79% <ø> (ø)
unittests-flytectl 67.97% <ø> (ø)
unittests-flyteidl 79.04% <ø> (ø)
unittests-flyteplugins 61.84% <ø> (-0.10%) ⬇️
unittests-flytepropeller 57.32% <ø> (ø)
unittests-flytestdlib 65.82% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: Yakov Dlougach <[email protected]>
@eapolinario
Copy link
Contributor

Thank you!

@eapolinario eapolinario merged commit 15e321b into flyteorg:master Jun 11, 2024
51 of 52 checks passed
Copy link

welcome bot commented Jun 11, 2024

Congrats on merging your first pull request! 🎉

robert-ulbrich-mercedes-benz pushed a commit to robert-ulbrich-mercedes-benz/flyte that referenced this pull request Jul 2, 2024
…direct. (flyteorg#5458)

* Make BaseURL insensitive to trailing slashes for metadata endpoint redirect.

Signed-off-by: Yakov Dlougach <[email protected]>

* Lint renaming

Signed-off-by: Yakov Dlougach <[email protected]>

---------

Signed-off-by: Yakov Dlougach <[email protected]>
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.

[BUG] Handler for .well-known/openid-configuration constructs redirect path incorrectly
2 participants