rackspace / php-opencloud

The PHP SDK for OpenStack clouds
developer.rackspace.com
Other
451 stars 249 forks source link

Bad request checking if an object exist with special character in name #742

Open ronnieschuurbiers opened 5 years ago

ronnieschuurbiers commented 5 years ago

When I try to check if an object exists with object name ü.jpg I get a 400 bad request error. Other special characters like @.jpg work fine.

Is there any documentation what characters are (not) allowed for an object name?

qwebltd commented 3 years ago

I found the same. Turns out using rawurlencode() does the trick!

$container->getObject(rawurlencode('name containing special characters'));