Solid search - Number "0" is ignored and partial match search is applied
Steps to reproduce
- Connect to an instance of Risefor, for example this page : https://interpeller.plateforme-palestine.org/s/reconaissance-apartheid
- Search for a postal code that has "0" at the beginning and/or the end of the string, for example
07100
- Click on the button "députée" then "email" or "twitter", and notice the results.
- You can notice a large number of matches, when there should only be one
- When checking the matching results in the back office, you will notice that they all contain the string
7.*1
, but only one contains the string "07100"
Expected behavior
The results should be an exact match, meaning that it should only match with 07100
and not 71
or 7.*1
What's happening?
Is seems like the search is ignoring the 0
that are at the beginning and end of the string and partial match is applied.
Meaning that all string that contain a 7
and a 1
are true, instead of a match when the strings contain the full search (07100
)
Relevant logs and/or screenshots
- Search
- Examples of the bug
Here it matches with 70100
Here it matches with 67100
- It should only match with this one, that actually contains the string "07100", like this one
Your Environment
- Library version: Sib 0.17 (tried with sib 0.16 and the issue is still there). I feel like this hasn't been the case for ever as we would have identified this earlier, so it must have been introduced during some evolution.
- Browser name and version: all browsers
- Targeted application: All instances of Risefor, here are some of them:
- https://interpellation.voxpublic.org/
- https://extinction-rebellion.risefor.org/
- https://interpeller.plateforme-palestine.org/
- https://agir.risefor.org/
For us this is a huge issue as we base many of our campaigns around postal code search, thus searches that use numbers, and there are many postal codes that contains 0
at the beginning or end of the string..
We are also talking with big names, like greenpeace, to deploy instances. We did a test campaign with them 2 weeks ago and they really liked the tool and the decentralized concept of the Startin'blox's technologie;
For us this is a critical issue...