Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Problem

 

A 404 Error error occurs when calling the REST interface of iteraplan with a filter added to the URL.

For example consider the following REST commandrequest, which aims to display return all Information Systems with the Status "Current".

Image RemovedImage Added

<ITERAPLAN_URL>/api/data/InformationSystem[@typeOfStatus@status values="Current"]

When Should this generates generate a Error 404 error, the symbols of the REST command cannot be correctly interpreted( [ ] @ etc.) of the REST request are not interpreted correctly.

Solution

In this case write Encode the symbols of the REST command with request within the URI bytes, after %xx.using the percent encoding. In the example above this would lead to:

<ITERAPLAN_URL>/api/data/InformationSystem%5B%40typeOfStatusInformationSystem%5B%40status%20values=%22Current%22%5D

You can also check the "server.xml" file of your Tomcat Server installation for the attribute of the suitable character encoding.https://wiki.apache.org/tomcat/FAQ/CharacterEncoding#Q2

Content by Label
showLabelsfalse
max5
spacesIKB
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel in ("rest","url","api","404") and type = "page" and space = "IKB"
labelsrest api URL 404

Page properties
hiddentrue
Related issues