Skip to content

Conversation

@mergify
Copy link
Contributor

@mergify mergify bot commented Nov 4, 2025

This is an automatic copy of pull request #13911 done by Mergify.


Issue

https://gravitee.atlassian.net/browse/APIM-11728

Description

Fixes decodeQueryFilters to properly handle parentheses and maintain correct AND/OR precedence when parsing filter queries.

Additional context

  • Fix decodeQueryFilters to properly split AND segments before processing OR
  • Remove outer parentheses from segments before parsing
  • Handle OR conditions within AND segments correctly
  • Resolve issue where parentheses were included in split results

Fixes parsing of queries like:

  • (api:123) AND (status:200) → ["api:123", "status:200"]
  • (api:123) AND (status:200 OR status:429) → ["api:123", "status:200", "status:429"]

Before Fix

APIM-11728_Before-fix.mov

After Fix

Screen.Recording.2025-11-04.at.10.25.25.AM.mov


@mergify mergify bot requested a review from a team as a code owner November 4, 2025 10:17
@ankita-gupta21 ankita-gupta21 merged commit 7d0ceca into 4.8.x Nov 4, 2025
10 checks passed
@ankita-gupta21 ankita-gupta21 deleted the mergify/bp/4.8.x/pr-13911 branch November 4, 2025 10:31
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.

2 participants