Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

fix: edit search context with special characters results in 404#51196

Merged
kopancek merged 2 commits into
mainfrom
milan/escape_search_context_url
Apr 27, 2023
Merged

fix: edit search context with special characters results in 404#51196
kopancek merged 2 commits into
mainfrom
milan/escape_search_context_url

Conversation

@kopancek

@kopancek kopancek commented Apr 27, 2023

Copy link
Copy Markdown
Contributor

Escaped the path parameter to stop this from happening.

fixes #50992

Test plan

Tested locally that it works as expected.

Not sure if we want to extend the existing unit tests or work on a different fix.

Escaped the path parameter to stop this from happening.
@kopancek kopancek requested review from a team April 27, 2023 05:27
@cla-bot cla-bot Bot added the cla-signed label Apr 27, 2023
@sg-e2e-regression-test-bob

sg-e2e-regression-test-bob commented Apr 27, 2023

Copy link
Copy Markdown

Bundle size report 📦

Initial size Total size Async size Modules
0.00% (0.00 kb) 0.00% (+0.06 kb) 0.00% (+0.06 kb) 0.00% (0)

Look at the Statoscope report for a full comparison between the commits fc17a32 and d8f53d2 or learn more.

Open explanation
  • Initial size is the size of the initial bundle (the one that is loaded when you open the page)
  • Total size is the size of the initial bundle + all the async loaded chunks
  • Async size is the size of all the async loaded chunks
  • Modules is the number of modules in the initial bundle

@kopancek kopancek requested a review from a team April 27, 2023 08:00

@philipp-spiess philipp-spiess left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, ty!

@kopancek kopancek merged commit 128a0b9 into main Apr 27, 2023
@kopancek kopancek deleted the milan/escape_search_context_url branch April 27, 2023 09:53
github-actions Bot pushed a commit that referenced this pull request Apr 27, 2023
Escaped the path parameter to stop this from happening.

fixes #50992
- #50992

## Test plan

Tested locally that it works as expected.

Not sure if we want to extend the existing unit tests or work on a
different fix.

(cherry picked from commit 128a0b9)
coury-clark pushed a commit that referenced this pull request May 1, 2023
…ts in 404 (#51202)

Escaped the path parameter to stop this from happening.

fixes #50992 
- #50992

## Test plan

Tested locally that it works as expected.

Not sure if we want to extend the existing unit tests or work on a
different fix.
 <br> Backport 128a0b9 from #51196

Co-authored-by: Milan Freml <kopancek@users.noreply.github.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Editing a context that starts with a / causes a 404 Search Contexts: Context name with a forward slash breaks the edit page

4 participants