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

[Backport 2.x] Update nextUrl validation to incorporate serverBasePath #2049

Merged
merged 1 commit into from
Jul 23, 2024

Conversation

opensearch-trigger-bot[bot]
Copy link
Contributor

Backport a44e265 from #2048

* Fix the nextUrl validation test and test url path using regex

Signed-off-by: Craig Perkins <[email protected]>

* Update nextUrl validation regex

Signed-off-by: Craig Perkins <[email protected]>

* Add missing tests

Signed-off-by: Craig Perkins <[email protected]>

* Combine url split to single line

Signed-off-by: Craig Perkins <[email protected]>

* Update docstring

Signed-off-by: Craig Perkins <[email protected]>

* Simplify condition

Signed-off-by: Craig Perkins <[email protected]>

* Add origin on redirect

Signed-off-by: Craig Perkins <[email protected]>

* Remove absolute url on redirect

Signed-off-by: Craig Perkins <[email protected]>

* Update login-page tests

Signed-off-by: Craig Perkins <[email protected]>

* Remove url.origin

Signed-off-by: Craig Perkins <[email protected]>

* Account for server base path that can be numeric

Signed-off-by: Craig Perkins <[email protected]>

* Update docstring

Signed-off-by: Craig Perkins <[email protected]>

---------

Signed-off-by: Craig Perkins <[email protected]>
(cherry picked from commit a44e265)
Copy link

codecov bot commented Jul 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 69.34%. Comparing base (6e89c3c) to head (0574f3b).

Additional details and impacted files
@@           Coverage Diff           @@
##              2.x    #2049   +/-   ##
=======================================
  Coverage   69.34%   69.34%           
=======================================
  Files          96       96           
  Lines        2587     2587           
  Branches      382      382           
=======================================
  Hits         1794     1794           
  Misses        699      699           
  Partials       94       94           

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

@cwperks cwperks merged commit 53d418f into 2.x Jul 23, 2024
34 checks passed
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.

1 participant