Open STommydx opened 4 years ago
Describe the bug _ character is not escaped in LIKE statements in book searching criteria.
_
To Reproduce
{ "Title": "# Book!", "Author": "Author", "Publisher": "Publisher", "Year": "2028" }
GET localhost:8080/BookManagementService/books?token={{token}}&title=_
Expected behavior 204 No Content
204 No Content
What actually happens 200 OK with the book returned
200 OK
{ "FoundBooks": 1, "Results": [ { "Title": "# Book!", "Author": "Author", "Publisher": "Publisher", "Year": "2028" } ] }
Describe the bug
_
character is not escaped in LIKE statements in book searching criteria.To Reproduce
_
_
GET localhost:8080/BookManagementService/books?token={{token}}&title=_
Expected behavior
204 No Content
What actually happens
200 OK
with the book returned