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

Fix JSON parsing errors caused by spaces and special characters in Lu… #16981

Merged
merged 6 commits into from
Nov 9, 2024

Conversation

emrahtokalak
Copy link
Contributor

Fix JSON parsing errors caused by spaces and special characters in LuceneQuerySource

  • Resolved issues with JSON parsing in LuceneQuerySource where spaces and special characters like / were causing errors.
  • Updated the parameterizedQuery parsing logic to handle these cases correctly.

As we can see from the following Lucene query, if there are liquid expressions within the template, it causes spaces in the JSON, leading to errors.

Screenshot 2024-11-09 at 20 58 46

@hishamco
Copy link
Member

hishamco commented Nov 9, 2024

Could you please add a unit test?

@hishamco
Copy link
Member

hishamco commented Nov 9, 2024

@MikeAlhayek do you have anything else to add here?

@MikeAlhayek
Copy link
Member

LGTM

@hishamco hishamco enabled auto-merge (squash) November 9, 2024 20:31
@hishamco hishamco merged commit f02437d into OrchardCMS:main Nov 9, 2024
6 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.

3 participants