REST request with symbols leads to 404 error
Problem
A 404 error occurs when calling the REST interface of LUY with a filter added to the URL.
For example, consider the following REST request, which aims to return all information systems with the status Current
.
![](../../../__attachments/93553451/image2019-1-3_15-24-4.png?inst-v=89dea2cd-9aae-4b82-9b5f-8d70bb16265e)
<LUY_URL>/api/data/InformationSystem[@status values="Current"]
Should this generate a 404 error, the symbols ( [ ] @ etc.) of the REST request are not interpreted correctly.
Solution
Encode the symbols of the REST request within the URI using the percent encoding. In the example above, this would lead to:
<LUY_URL>/api/data/InformationSystem%5B%40status%20values=%22Current%22%5D
You can also check the server.xml
file of your Tomcat installation for the suitable character encoding: https://wiki.apache.org/tomcat/FAQ/CharacterEncoding#Q2