TFaga / lynx

Lynx automatically exposes your JPA entities as a REST service with build-in metadata and query support using JAX-RS.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Problem with & in LIKE query.

jgasperlin opened this issue · comments

If i include & or %26 in query like this:

"where=title:like:'Tools & Furniture'&limit=30"

It returns wrong result.

Problem is in code:

QueryStringBuilder 182:
for (String pair : query.split("&")) {

I changed regex from "&" to "&(?=([^']'[^']')[^']$)", to ignore '&' between two '.

Hey,

Thanks for the info. Will add your fix ASAP.