putObjectPolicy fails due to wrong Content-Type
Patrick F. Marques
patrickfmarques at gmail.com
Fri Mar 13 13:45:21 EDT 2015
As far as I can see there is no way to do that, and I think that is a bug
of SDK... to temporarily fix that was support a "fake member" on method
just like this one (
Is just a simple trick while there is no official solution.
Maybe I should open an issue on AWS NodeJS SDK I lets see what they say
On Fri, Mar 13, 2015 at 5:38 PM, Matthew Brender <mbrender at basho.com> wrote:
> Hi Patrick,
> You'll need to investigate whether you can define a content type through
> the SDK. The use of application/octet-stream is defined as "arbitrary
> binary data" in RFC 2046 as explained well here . I'm not sure if you
> have the ability to define the content type and have not done so or whether
> the SDK is at fault.
> *Matt Brender | Developer Advocacy Lead*
> Basho Technologies
> t: @mjbrender <https://twitter.com/mjbrender>
> c: +1 617.817.3195
> On Fri, Mar 13, 2015 at 10:52 AM, Patrick F. Marques <
> patrickfmarques at gmail.com> wrote:
>> Just the link to the issue https://github.com/basho/riak_cs/issues/1091
>> @Mathew do you know if AWS NodeJS SDK is doing it wrong so I
>> can also open an issue on amazon repo?
>> On Fri, Mar 13, 2015 at 2:41 PM, Matthew Brender <mbrender at basho.com>
>>> Hi Patrick,
>>> I'm glad you figured out the root cause here. You bring up a great
>>> opportunity to improve on error responses too. Please open a GitHub issue
>>> for this and any similar observations so PM can keep track of it.
>>> *Matt Brender | Developer Advocacy Lead*
>>> Basho Technologies
>>> t: @mjbrender <https://twitter.com/mjbrender>
>>> On Wed, Mar 11, 2015 at 2:32 PM, Patrick F. Marques <
>>> patrickfmarques at gmail.com> wrote:
>>>> Hi, I'm trying to use node-aws-sdk to set bucket policies but the SDK
>>>> sends the request with the wrong Content-Type, "application/octet-stream".
>>>> I'm not sure if there is something wrong on my side or if AWS S3 also
>>>> supports this since it is its SDK.
>>>> To find the problem I was digging in the SDK code because the server
>>>> response is just a 500 Internal Server Error. It could be nice to return at
>>>> least something like "Unaccepted Content-Type in request".
>>>> Patrick Marques
>>>> riak-users mailing list
>>>> riak-users at lists.basho.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the riak-users