[Fiware-tech-help] [BUG] ObjectStorage JavaScript API :: listContainer() method not working properly

Michał Michalski buyuk.dev at gmail.com
Thu Apr 9 10:35:52 CEST 2015


I'm trying to implement a WireCloud widget which communicates with
ObjectStorage via JS *ObjectStorageAPI*. After some troubles with enabling
ObjectStorageAPI i've manages to run command *os_api.listContainer()* and
in response I've got 409 error, with message attached *"The requested name
already exists as a different type"*. I've managed to figure out what is
causing this error. In order to list a container, cdmi request url must end
with "/" character. When I use os_api.listContainer() it generates url
without it. If I manually append '/' character to request url, valid
response is returned with container's contents. First idea of fixing it -
to append "/" to container's name within function call doesn't work. "/"
character is replaced by escape sequence "%2F".
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.fiware.org/private/fiware-tech-help/attachments/20150409/4e49e5db/attachment.html>


More information about the Fiware-tech-help mailing list

You can get more information about our cookies and privacy policies clicking on the following links: Privacy policy   Cookies policy