Skip to content

Fix operator handling in subquery segment values #21506

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 4 commits into from
Nov 13, 2023
Merged

Fix operator handling in subquery segment values #21506

merged 4 commits into from
Nov 13, 2023

Conversation

mneudert
Copy link
Member

@mneudert mneudert commented Nov 8, 2023

Description:

Having a segment definition with one of the operators (, and ;) in the value can break if the segment requires a subquery expression. This is, for example, the case for PageTitle NotIn "a,b".

Should probably be backported to 4.x.

Refs L3-581
Refs #16172
Refs #19617 (should be fixed by backporting)

Review

@mneudert mneudert added Bug For errors / faults / flaws / inconsistencies etc. Needs Review PRs that need a code review labels Nov 8, 2023
@mneudert mneudert added this to the 5.0.0 milestone Nov 8, 2023
@mneudert mneudert marked this pull request as ready for review November 8, 2023 19:24
@mneudert mneudert requested a review from a team November 8, 2023 19:24
@mneudert mneudert requested review from a team and removed request for a team November 13, 2023 09:14
Co-authored-by: Michal Kleiner <michal@innocraft.com>
Copy link
Member

@sgiehl sgiehl left a comment

Choose a reason for hiding this comment

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

Looks good to me now.

@sgiehl sgiehl merged commit 7055925 into 5.x-dev Nov 13, 2023
@sgiehl sgiehl deleted the l3-581 branch November 13, 2023 12:43
mneudert added a commit that referenced this pull request Nov 13, 2023
* Add tests for subquery segments

* Fix operator handling in subquery segment values

* Escape segment values using separate method

* Quote delimiter pattern for regex usage

Co-authored-by: Michal Kleiner <michal@innocraft.com>

---------

Co-authored-by: Michal Kleiner <michal@innocraft.com>
sgiehl pushed a commit that referenced this pull request Nov 13, 2023
* Fix operator handling in subquery segment values (#21506)

* Add tests for subquery segments

* Fix operator handling in subquery segment values

* Escape segment values using separate method

* Quote delimiter pattern for regex usage

Co-authored-by: Michal Kleiner <michal@innocraft.com>

---------

Co-authored-by: Michal Kleiner <michal@innocraft.com>

* Backport test action helper function change

* Update test SQL whitespace

---------

Co-authored-by: Michal Kleiner <michal@innocraft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc. Needs Review PRs that need a code review
Development

Successfully merging this pull request may close these issues.

3 participants