Skip to Content
0
Jan 30, 2017 at 09:03 AM

REST API 404 when Qualifier Contains a Slash

69 Views

When we query our media containers via REST we get something like:

     <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
     <mediacontainers uri="http://server.com/ws410/rest/mediacontainers?mediacontainers_size=100&amp;mediacontainers_query=%7Bqualifier%7D%20LIKE%20%27%25foo%25%27">
         <mediacontainer qualifier="images/foo_02" pk="8796093808690" uri="http://server.com/ws410/rest/catalogs/bcpProductCatalog/catalogversions/Online/mediacontainers/images/foo_02"/>
         <mediacontainer qualifier="images/foo_01" pk="8796102557746" uri="http://server.com/ws410/rest/catalogs/bcpProductCatalog/catalogversions/Online/mediacontainers/images/foo_01"/>
     </mediacontainers>

However when we want to GET or DELETE one of these entries we always get a 404 not found. It looks like maybe the API doesn't understand the slash / in the qualifier of the URI.

In all other objects, where the qualifier does not contain a slash, we can GET the entries without any issue. Replacing the qualifier with the primary key pk value also does not work.

How do we GET/DELETE such entries?