You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Getting this error "containerName" is a required option, but it was not provided" when listing out the objects #163
Object creation and downloading are working properly but I got issues when get the object details (like content type, length etc)
Code which is throwing the error :
$container = $openstack->objectStoreV1()
->getContainer($this->container_name);
foreach ($container->listObjects() as $object) {
$data = $object->retrieve();
var_dump($data);
}
I spent a couple of minutes inspecting the code to suggest a PR, but I am blocked here on OperatorResource, line 90 the $data array does not contains the containerName.
I suppose that this $data array come from the answer of swift api, but how can I ask the OpenStack\Common\Resource\Iterator object to add container name to this array ?
Activity
julienfastre commentedon Nov 3, 2017
I encounter the same issue and was coming here to fill a ticket...
This is the output of
var_dumpof an object coming withlistObjects:$containerNameis null, as you can see.julienfastre commentedon Nov 3, 2017
I spent a couple of minutes inspecting the code to suggest a PR, but I am blocked here on OperatorResource, line 90 the
$dataarray does not contains thecontainerName.I suppose that this
$dataarray come from the answer of swift api, but how can I ask theOpenStack\Common\Resource\Iteratorobject to add container name to this array ?If you can guide me, I would be happy to help.
haphan commentedon Feb 8, 2018
Confirm this is a bug and I was able to reproduce on my end.
This issue is being addressed at #208.
@julienfastre @thatipelli69
haphan commentedon Feb 8, 2018
This issue was fixed and merged to branch 3.x and backported to 2.x