You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BaseCrudController is using an AND|OR regex to split the query string. This has problems when consumers of the api are searching for something that contains the text AND or OR, such as firstName:RANDY, this will screw up the query string. We should update this to use, | and & respectively. For one they are less used in queries, but for two it is shorter and makes more sense. Something alone the lines of a regex (?<!\|)\|(?!\|) should work. If bars are used in the queries, you can escape the bar with another bar, so firstName:BOB||BOBBY.
I suggest in the meantime to implement the new way, and add a application configuration variable that tells the BaseCrudController which method to use.
The text was updated successfully, but these errors were encountered:
BaseCrudController is using an
AND|OR
regex to split the query string. This has problems when consumers of the api are searching for something that contains the text AND or OR, such asfirstName:RANDY
, this will screw up the query string. We should update this to use,| and &
respectively. For one they are less used in queries, but for two it is shorter and makes more sense. Something alone the lines of a regex(?<!\|)\|(?!\|)
should work. If bars are used in the queries, you can escape the bar with another bar, sofirstName:BOB||BOBBY
.I suggest in the meantime to implement the new way, and add a application configuration variable that tells the BaseCrudController which method to use.
The text was updated successfully, but these errors were encountered: