Hello Kota,

Theoretically I understand the issue, but I don't see where I have
URLencoded / decoded any data? this is my sourcecode for test-uploading the
files where should I change anything (without hacking into the *AWS Node.js
SDK itself)? *

*my code that fails if file gets too big to upload in one part: *


*'use strict'; var fs = require('fs'), AWS = require('aws-sdk');
AWS.config.update( { "accessKeyId": "GHSEZVCH4NYD359IZUEX",
"secretAccessKey": "IZnu4wr0e-LaBZ2ShBXiIwGVceaMkJigpqPxCw==", "region":
"us-east-1",'httpOptions': {'proxy': 'http://172.16.3.21:8080'}});
AWS.config.update({region: ''}); var s3 = new AWS.S3(); var
globalUnCaughtException = function(err) { console.log("uncaughtException:
", err.stack); }; process.on('uncaughtException', globalUnCaughtException);
function uploadFile(s3) { console.log(s3); var body =
fs.createReadStream(fileName); var params = {Bucket: bucket, Key: fileKey,
Body: body}; s3.upload(params, function(err, data) {
console.log("uploaded", err, data); }); } if (process.argv[2] !== undefined
) { // strip path for s3 var fileName = process.argv[2]; var fileKey =
fileName.slice(fileName.lastIndexOf("/")+1); console.log("fileKey: " +
fileKey); // S3 Upload options var bucket = 'testje'; uploadFile(s3); }*



On Tue, Mar 10, 2015 at 2:25 AM, Kota Uenishi <k...@basho.com> wrote:

> Sorry, being late. I thought I've replied to you, but it was a very
> close one where I think you're hitting the same problem as this:
>
>
> http://lists.basho.com/pipermail/riak-users_lists.basho.com/2015-February/016845.html
>
> Riak CS often includes `=' in uploadId of multipart uploads while S3
> doesn't (where no specs described in official documents).
>
> On Thu, Feb 12, 2015 at 12:41 AM, Niels O <niel...@gmail.com> wrote:
> > Hello everyone,
> >
> > I have just installed riakcs and have the s3cmd and nodejs (the official
> > amazon) plugin working.
> >
> > with the same credentials (accesskey&secret) I CAN upload big files with
> > S3CMD but I CANNOT with the AWS/S3 nodejs plugin? (downloading very big
> > files is no problem b.t.w.)
> >
> >
> > with the nodejs plugin
> >
> > - until 992k, (I tested with 32 KiB increases) everything works
> > - starting at 1024 KiB I get [400 InvalidDigest: The Content-MD5 you
> > specified was invalid.]
> > - from 8192 KiB and beyond I get [403 AccessDenied] back from riakcs.
> >
> > this while -again- with s3cmd I am able to upload files of over 1 GiB
> size
> > easily  .. same machine, same creds
> >
> > any ideas?
> >
> >
> >
> >
> >
> > (below some riakcs debug logging from both the 400 and 403)  ...
> >
> >
> > 400 - InvalidDigest:
> >
> > 2015-02-11 16:34:16.911 [debug]
> > <0.17889.18>@riak_cs_s3_auth:calculate_signature:129 STS:
> >
> ["PUT","\n","0BsQLab2tMEzr8IWoS2m5w==","\n","application/octet-stream","\n","\n",[["x-amz-date",":",<<"Wed,
> > 11 Feb 2015 15:34:16 GMT">>,"\n"]],["/testje/4096k",[]]]
> > 2015-02-11 16:34:17.854 [debug]
> > <0.23568.18>@riak_cs_put_fsm:is_digest_valid:326 Calculated =
> > <<"pIFX5fpeo7+sPPNjtSBWBg==">>, Reported = "0BsQLab2tMEzr8IWoS2m5w=="
> > 2015-02-11 16:34:17.860 [debug] <0.23568.18>@riak_cs_put_fsm:done:303
> > Invalid digest in the PUT FSM
> >
> >
> > 403 - AccessDenied
> >
> > 2015-02-11 16:36:00.448 [debug]
> > <0.22889.18>@riak_cs_s3_auth:calculate_signature:129 STS:
> >
> ["POST","\n",[],"\n","application/octet-stream","\n","\n",[["x-amz-date",":",<<"Wed,
> > 11 Feb 2015 15:36:00 GMT">>,"\n"]],["/testje/8192k","?uploads"]]
> > 2015-02-11 16:36:00.484 [debug]
> > <0.23539.18>@riak_cs_s3_auth:calculate_signature:129 STS:
> >
> ["PUT","\n","sq5d2PIhC7I1xxT8Rp9cVg==","\n","application/octet-stream","\n","\n",[["x-amz-date",":",<<"Wed,
> > 11 Feb 2015 15:36:00
> >
> GMT">>,"\n"]],["/testje/8192k","?partNumber=1&uploadId=TXR2AuCeRDWwc2bviLPcOg=="]]
> > 2015-02-11 16:36:00.484 [debug]
> > <0.23539.18>@riak_cs_wm_common:post_authentication:471 bad_auth
> > 2015-02-11 16:36:00.494 [debug]
> > <0.23543.18>@riak_cs_s3_auth:calculate_signature:129 STS:
> >
> ["DELETE","\n",[],"\n","application/octet-stream","\n","\n",[["x-amz-date",":",<<"Wed,
> > 11 Feb 2015 15:36:00
> > GMT">>,"\n"]],["/testje/8192k","?uploadId=TXR2AuCeRDWwc2bviLPcOg=="]]
> > 2015-02-11 16:36:00.494 [debug]
> > <0.23543.18>@riak_cs_wm_common:post_authentication:471 bad_auth
> >
> >
> > _______________________________________________
> > riak-users mailing list
> > riak-users@lists.basho.com
> > http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
> >
>
>
>
> --
> Kota UENISHI / @kuenishi
> Basho Japan KK
>
_______________________________________________
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to