Question

I’m using the putObjectAcl function from the AWS PHP SDK. And when I input a Filepath or Filename, that contains symbols like @ (at) the function returns an Exception. I opened an Issue Ticket on the repo of the PHP AWS SDK addressing this issue, to make sure, that the SDK itself isn’t the problem. (The Issue Ticket)

And the answer from a contributor concludes that the problem has to be on Digitaloceans end. In more detail, that Digitalcoean isn’t encoding the URL again, thus the File cant be found.

One thing I recommend trying: explicitly use v2 signatures, as the encoding rules differ from v4 signatures. I’ve seen success with that in the past.

Should you continue seeing issues, we’ll need to dig in further as there is a lot of variation from SDK to SDK. Could you capture the full request + response headers that are being sent to the Spaces API by your script so we can evaluate them? (you should redact your values of DO_ACCESS_KEY_ID and DO_SPACE if you do post it publically)

With the headers, we’ll be able to tell if this is an issue with encoding on the client SDK end or on our end with Spaces resolving the request.

I personally recommend writing these into a ticket: https://do.co/new-ticket where our Developer Support team can assist (just reference this community post, if you’d like, you can even ask for me). Or you can include the outputs here, just remember to redact the above.