javaswift / joss

Java library for OpenStack Storage, aka Swift
http://javaswift.org
117 stars 108 forks source link

Problem uploading files in directory #181

Open grm opened 4 years ago

grm commented 4 years ago

Hello,

I wanted to upload a file in a specific directory, but it seems there is an issue with it :

12:43:19.079 [Test worker] ERROR org.javaswift.joss.command.impl.core.AbstractCommand - JOSS / HTTP PUT call http://127.0.0.1:28081/v1/KEY_13f1724fcf37496eb357b795779dd1f3/new-container/%2Ftmp%2Ftest, HTTP status 404, Error ENTITY_DOES_NOT_EXIST
12:43:19.079 [Test worker] ERROR org.javaswift.joss.command.impl.core.AbstractCommand - * X-Auth-Token=gAAAAABfX0lGHPwykvILp-DoszHEuX-lQPQmdiDCjGy_4p3r6vJOIxfIEn3rYvzlM6cr6L7IjEGPyI-kI1185lmPxAFqsX8O0ebA3AlV0wuAtXSb9-JTKdBWoFRVRmbSfo0YPioMdm7ofjDLWVbS2bpf-jSerkgcIcU5-ZQE0cKx-6SzlMcak7Y
12:43:19.079 [Test worker] ERROR org.javaswift.joss.command.impl.core.AbstractCommand - * CONNECTION=Keep-Alive
12:43:19.079 [Test worker] ERROR org.javaswift.joss.command.impl.core.AbstractCommand - * ETag=57900f45c28b6d18bfcb4c49a15c0f06

It seems related to pathes that are encoded in the URL like shown here : https://github.com/javaswift/joss/issues/77

Is there a way to upload a file in a specific directory instead of only the root of the container ?

Thanks, Jérémie