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.16] Update nextUrl validation to incorporate serverBasePath #2050

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 (481547e).

Additional details and impacted files
@@           Coverage Diff           @@
##             2.16    #2050   +/-   ##
=======================================
  Coverage   69.34%   69.34%           
=======================================
  Files          96       96           
  Lines        2587     2587           
  Branches      382      375    -7     
=======================================
  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 fc4f6a2 into 2.16 Jul 23, 2024
34 checks passed
Crispy-fried-chicken added a commit to Crispy-fried-chicken/security-dashboards-plugin that referenced this pull request Aug 24, 2024
Crispy-fried-chicken added a commit to Crispy-fried-chicken/security-dashboards-plugin that referenced this pull request Aug 24, 2024
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