- ๐น๐ผTaiwan jimyhuang
This issue still there. I tried patch 3055152-4.patch, it is correct.
Tested version: 10.3.2
Problematic code: 11.x , 10.xReproduce step:
- Create a view with page, choose "content" as type
- Add filter to created views, use title as exposed filter
- Operator choose "Is equal to"
- Visit created views page, type testing search string into exposed filter: %abc%
- Visit created views page, type query on the url: /test-node?title=%25abc%25
- All the title contains abc will listed. The percentage character is not escape.
- ๐ฎ๐ณIndia manpreet_singh
I have fixed the issue above-mentioned issue.
I attached the patch for the Drupal 10.3.5Tested version: 10.3.5
Tested db: MariaDBThank you
- Merge request !9635issue fixed for Drupal core views string filter doesnt escapelike at Drupalcon Barcelona2024 โ (Open) created by manpreet_singh
- ๐ณ๐ฟNew Zealand quietone
I re-tested today with Umami on 11.x and was able to reproduce the problem. I can only assume that my earlier testing was incorrect.
@manpreet_singh, thanks for the fix. Drupal uses peer review for all changes to core, so the setting on an issue to RTBC should be done by another contributor. Thanks.
This issue will also need a test to prove the fix works and expected, adding tag.
- ๐ฎ๐ณIndia shalini_jha
I have able to replicate this issue and MR fixes the issue , so i will work on this for test coverage.
- ๐ฎ๐ณIndia shalini_jha
shalini_jha โ changed the visibility of the branch 3055152-views-stringfilter-doesnt-11x to hidden.
- ๐ฎ๐ณIndia shalini_jha
shalini_jha โ changed the visibility of the branch 3055152-views-stringfilter-doesnt-11x to active.
- Merge request !10110Issue #3055152: Fix views string filter escape with test coverage โ (Closed) created by shalini_jha
- ๐ฎ๐ณIndia shalini_jha
shalini_jha โ changed the visibility of the branch 3055152-views-stringfilter-doesnt to hidden.
- ๐ฎ๐ณIndia shalini_jha
Hi,
I was able to replicate the issue and reviewed the existing fix in this MR. The solution appears correct, and functionality works as expected based on my testing. To validate this, I have tried to add test coverage in the FilterStringTest class, aiming to demonstrate both the issue and its resolution.Iโve submitted a new MR against 11.x. Since there was an existing MR on 10, Iโve hidden that one to avoid any confusion. I wasnโt sure about the status of the existing MR, Apologies if you would have preferred updating the existing MR.
Please review when possible, and let me know if thereโs anything further I should address.
Updated issue summary also.
Thank you!
- ๐ฎ๐ณIndia shalini_jha
I have address the feedback, also verified with another method no type cast is added, also again re ran the test and its working as expected, pipeline is also green so moving this for NR.
Kindly review. - Status changed to RTBC
4 months ago 6:55pm 17 December 2024 The Needs Review Queue Bot โ tested this issue. It no longer applies to Drupal core. Therefore, this issue status is now "Needs work".
This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide โ to find step-by-step guides for working with issues.
- ๐ฎ๐ณIndia shalini_jha
Rebase without conflicts , so moving back to previous status.
- ๐ณ๐ฟNew Zealand quietone
I read the IS, comments and the MR. Everything looks in order here. I updated credit.
- ๐ฌ๐งUnited Kingdom catch
Committed/pushed to 11.x and cherry-picked to 10.5.x, thanks!
Automatically closed - issue fixed for 2 weeks with no activity.