Re: [Dev] Getting "SignatureDoesNotMatch" error with deleteBucketReplication operation in Amazon s3 connector

2018-11-19 Thread Keerthika Mahendralingam
Hi Shaki,

Yes, my intension is to send a delete request without the body. But EI is
passing the existing payload in the context with the delete request as
well. Please find the wire log [1]. But as you said EI should not pass the
body with the delete request. Do you think I am missing anything or is this
needs to fixed from the EI side?

[2018-11-13 12:16:47,526] [EI-Core] DEBUG - wire HTTP-Sender I/O
dispatcher-1 << "DELETE /testbuckkkbiru/?replication HTTP/1.1[\r][\n]"
[2018-11-13 12:16:47,526] [EI-Core] DEBUG - wire HTTP-Sender I/O
dispatcher-1 << "Authorization: AWS4-HMAC-SHA256
Credential=XX/20181113/us-east-2/s3/aws4_request,SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date,Signature=a276ba88791386bfbce8650839a880e7e[\r][\n]"
[2018-11-13 12:16:47,526] [EI-Core] DEBUG - wire HTTP-Sender I/O
dispatcher-1 << "Origin:
chrome-extension://fhbjgbiflinjbdggehcddcbncdddomop[\r][\n]"
[2018-11-13 12:16:47,527] [EI-Core] DEBUG - wire HTTP-Sender I/O
dispatcher-1 << "x-amz-content-sha256: UNSIGNED-PAYLOAD[\r][\n]"
[2018-11-13 12:16:47,527] [EI-Core] DEBUG - wire HTTP-Sender I/O
dispatcher-1 << "Accept: */*[\r][\n]"
[2018-11-13 12:16:47,527] [EI-Core] DEBUG - wire HTTP-Sender I/O
dispatcher-1 << "Cache-Control: no-cache[\r][\n]"
[2018-11-13 12:16:47,527] [EI-Core] DEBUG - wire HTTP-Sender I/O
dispatcher-1 << "x-amz-date: Tue, 13 Nov 2018 06:46:47 GMT[\r][\n]"
[2018-11-13 12:16:47,527] [EI-Core] DEBUG - wire HTTP-Sender I/O
dispatcher-1 << "Postman-Token:
c82f33f9-2c85-68d9-67f4-5a43a5d98049[\r][\n]"
[2018-11-13 12:16:47,527] [EI-Core] DEBUG - wire HTTP-Sender I/O
dispatcher-1 << "Accept-Encoding: gzip, deflate[\r][\n]"
[2018-11-13 12:16:47,527] [EI-Core] DEBUG - wire HTTP-Sender I/O
dispatcher-1 << "Accept-Language: en-US,en;q=0.9[\r][\n]"
[2018-11-13 12:16:47,527] [EI-Core] DEBUG - wire HTTP-Sender I/O
dispatcher-1 << "Content-Type: application/xml[\r][\n]"
[2018-11-13 12:16:47,527] [EI-Core] DEBUG - wire HTTP-Sender I/O
dispatcher-1 << "Transfer-Encoding: chunked[\r][\n]"
[2018-11-13 12:16:47,527] [EI-Core] DEBUG - wire HTTP-Sender I/O
dispatcher-1 << "Host: s3.us-east-2.amazonaws.com[\r][\n]"
[2018-11-13 12:16:47,527] [EI-Core] DEBUG - wire HTTP-Sender I/O
dispatcher-1 << "Connection: Keep-Alive[\r][\n]"
[2018-11-13 12:16:47,528] [EI-Core] DEBUG - wire HTTP-Sender I/O
dispatcher-1 << "User-Agent: Synapse-PT-HttpComponents-NIO[\r][\n]"
[2018-11-13 12:16:47,528] [EI-Core] DEBUG - wire HTTP-Sender I/O
dispatcher-1 << "[\r][\n]"
[2018-11-13 12:16:47,528] [EI-Core] DEBUG - wire HTTP-Sender I/O
dispatcher-1 << "271[\r][\n]"
[2018-11-13 12:16:47,528] [EI-Core] DEBUG - wire HTTP-Sender I/O
dispatcher-1 << "[\n]"
[2018-11-13 12:16:47,528] [EI-Core] DEBUG - wire HTTP-Sender I/O
dispatcher-1 << "[\n]"
[2018-11-13 12:16:47,528] [EI-Core] DEBUG - wire HTTP-Sender I/O
dispatcher-1 << "[\n]"
[2018-11-13 12:16:47,528] [EI-Core] DEBUG - wire HTTP-Sender I/O
dispatcher-1 << "DELETE[\n]"
[2018-11-13 12:16:47,528] [EI-Core] DEBUG - wire HTTP-Sender I/O
dispatcher-1 << "application/xml[\n]"
[2018-11-13 12:16:47,528] [EI-Core] DEBUG - wire HTTP-Sender I/O
dispatcher-1 << "true[\n]"
[2018-11-13 12:16:47,528] [EI-Core] DEBUG - wire HTTP-Sender I/O
dispatcher-1 << "0[\n]"
[2018-11-13 12:16:47,528] [EI-Core] DEBUG - wire HTTP-Sender I/O
dispatcher-1 << "testbuck[\n]"
[2018-11-13 12:16:47,528] [EI-Core] DEBUG - wire HTTP-Sender I/O
dispatcher-1 << "s3.us-east-2.amazonaws.com[\n]"
[2018-11-13 12:16:47,528] [EI-Core] DEBUG - wire HTTP-Sender I/O
dispatcher-1 << "http://s3.us-east-2.amazonaws.com/testbuck
[\n]"
[2018-11-13 12:16:47,528] [EI-Core] DEBUG - wire HTTP-Sender I/O
dispatcher-1 << "[\n]"
[2018-11-13 12:16:47,529] [EI-Core] DEBUG - wire HTTP-Sender I/O
dispatcher-1 << "us-east-2[\n]"
[2018-11-13 12:16:47,529] [EI-Core] DEBUG - wire HTTP-Sender I/O
dispatcher-1 << "[\n]"
[2018-11-13 12:16:47,529] [EI-Core] DEBUG - wire HTTP-Sender I/O
dispatcher-1 << "[\n]"
[2018-11-13 12:16:47,529] [EI-Core] DEBUG - wire HTTP-Sender I/O
dispatcher-1 << "public-read[\n]"
[2018-11-13 12:16:47,529] [EI-Core] DEBUG - wire HTTP-Sender I/O
dispatcher-1 << "[\r][\n]"
[2018-11-13 12:16:47,529] [EI-Core] DEBUG - wire HTTP-Sender I/O
dispatcher-1 << "0[\r][\n]"
[2018-11-13 12:16:47,529] [EI-Core] DEBUG - wire HTTP-Sender I/O
dispatcher-1 << "[\r][\n]"
[2018-11-13 12:17:07,879] [EI-Core] DEBUG - wire HTTP-Sender I/O
dispatcher-1 >> "HTTP/1.1 400 Bad Request[\r][\n]"
[2018-11-13 12:17:07,879] [EI-Core] DEBUG - wire HTTP-Sender I/O
dispatcher-1 >> "x-amz-request-id: F5C724399C125966[\r][\n]"
[2018-11-13 12:17:07,879] [EI-Core] DEBUG - wire HTTP-Sender I/O
dispatcher-1 >> "x-amz-id-2:
Hl9SMI32dNfQkO3lDftVSENO0HCYsECYSCxB2K4tQdITmn9hqHACt1AIqVFnD98Nq+YbPyv58y0=[\r][\n]"
[2018-11-13 12:17:07,879] [EI-Core] DEBUG - wire HTTP-Sender I/O
dispatcher-1 >> "Content-Type: application/xml[\r][\n]"
[2018-11-13 12:17:07,880] [EI-Core] DEBUG - wire HTTP-Sender I/O
dispatcher-1 >> 

Re: [Dev] Getting "SignatureDoesNotMatch" error with deleteBucketReplication operation in Amazon s3 connector

2018-11-19 Thread Shakila Sasikaran
Hi Keerthika,

I have checked the fix. As far as I understood, your intension is to send
the DELETE request without the body and set the Content-Length. Please
correct me if I'm wrong.
This FORCE_POST_PUT_NOBODY is for sending POST and PUT requests without
body and this property will not be considered in the DELETE request path.
AFAIK the delete request from EI will not contain body and content length.

Thanks

On Mon, Nov 19, 2018 at 4:47 PM Keerthika Mahendralingam 
wrote:

> Hi Biruntha,
>
> I have added the fix to the connector in the following pr [1]. Could you
> please check now.
>
> [1]. https://github.com/wso2-extensions/esb-connector-amazons3/pull/25
> 
>
> Thanks,
> Keerthika.
>
> On Tue, Nov 13, 2018 at 12:35 PM Keerthika Mahendralingam <
> keerth...@wso2.com> wrote:
>
>> Hi Biruntha,
>>
>> This method is working fine with EI 6.1.1. But getting the same error as
>> yours with EI 6.4.0. Need to check.
>>
>> Thanks,
>> Keerthika.
>>
>> On Tue, Nov 13, 2018 at 11:45 AM Keerthika Mahendralingam <
>> keerth...@wso2.com> wrote:
>>
>>> Hi Biruntha,
>>>
>>> I have tried the deleteBucketReplication with the following request. It
>>> worked for me.
>>>
>>> 
>>> XXX
>>> 
>>> DELETE
>>> application/xml
>>> true
>>> signv4test
>>> s3.us-east-2.amazonaws.com
>>> http://s3.us-east-2.amazonaws.com/signv4test
>>> 
>>> 
>>> us-east-2
>>> 
>>> 
>>> public-read
>>> 
>>>
>>> Thanks,
>>> Keerthika.
>>>
>>> On Thu, Nov 8, 2018 at 9:23 AM Biruntha Gnaneswaran 
>>> wrote:
>>>
 Hi Keerthika,

 I have tried with the above mentioned two configs. But for both configs
 I'm getting RequestTimeout error as in [1]. Please find the wire log for
 this two request and response [2] & [3].

 [1]
 
 RequestTimeout
 Your socket connection to the server was not read from or
 written to within the timeout period. Idle connections will be
 closed.
 9D3D185B485D9BD9

 RhLOUIb8SMBZCLTddE0oKFF4OxZ5qQOOIDjikeB66xQgIHshsdsk0fHUdPd1TTgEelN8WZT4XWE=
 

 [2]

 [2018-11-08 09:13:21,966] [EI-Core] DEBUG - wire HTTP-Listener I/O
 dispatcher-2 >> "POST /services/amazons3_deleteBucketReplication
 HTTP/1.1[\r][\n]"
 [2018-11-08 09:13:21,967] [EI-Core] DEBUG - wire HTTP-Listener I/O
 dispatcher-2 >> "Content-Type: application/xml[\r][\n]"
 [2018-11-08 09:13:21,967] [EI-Core] DEBUG - wire HTTP-Listener I/O
 dispatcher-2 >> "cache-control: no-cache[\r][\n]"
 [2018-11-08 09:13:21,967] [EI-Core] DEBUG - wire HTTP-Listener I/O
 dispatcher-2 >> "Postman-Token:
 96535872-a3e1-4702-ad2d-f87b5a8a93cd[\r][\n]"
 [2018-11-08 09:13:21,967] [EI-Core] DEBUG - wire HTTP-Listener I/O
 dispatcher-2 >> "User-Agent: PostmanRuntime/7.3.0[\r][\n]"
 [2018-11-08 09:13:21,967] [EI-Core] DEBUG - wire HTTP-Listener I/O
 dispatcher-2 >> "Accept: */*[\r][\n]"
 [2018-11-08 09:13:21,967] [EI-Core] DEBUG - wire HTTP-Listener I/O
 dispatcher-2 >> "Host: biruntha:8280[\r][\n]"
 [2018-11-08 09:13:21,967] [EI-Core] DEBUG - wire HTTP-Listener I/O
 dispatcher-2 >> "accept-encoding: gzip, deflate[\r][\n]"
 [2018-11-08 09:13:21,967] [EI-Core] DEBUG - wire HTTP-Listener I/O
 dispatcher-2 >> "content-length: 827[\r][\n]"
 [2018-11-08 09:13:21,967] [EI-Core] DEBUG - wire HTTP-Listener I/O
 dispatcher-2 >> "Connection: keep-alive[\r][\n]"
 [2018-11-08 09:13:21,967] [EI-Core] DEBUG - wire HTTP-Listener I/O
 dispatcher-2 >> "[\r][\n]"
 [2018-11-08 09:13:21,967] [EI-Core] DEBUG - wire HTTP-Listener I/O
 dispatcher-2 >> "[\n]"
 [2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
 dispatcher-2 >> "x[\n]"
 [2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
 dispatcher-2 >> "
 x[\n]"
 [2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
 dispatcher-2 >> "DELETE[\n]"
 [2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
 dispatcher-2 >> "true[\n]"
 [2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
 dispatcher-2 >> "0[\n]"
 [2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
 dispatcher-2 >> "[\n]"
 [2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
 dispatcher-2 >> "us-east-2[\n]"
 [2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
 dispatcher-2 >> "testbuckkkbiru[\n]"
 [2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
 dispatcher-2 >> "s3.us-east-2.amazonaws.com[\n]"
 [2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
 dispatcher-2 >> "
 http://s3.us-east-2.amazonaws.com/testbuckkkbiru[\n]"
 [2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
 

Re: [Dev] Getting "SignatureDoesNotMatch" error with deleteBucketReplication operation in Amazon s3 connector

2018-11-19 Thread Keerthika Mahendralingam
Hi Biruntha,

I have added the fix to the connector in the following pr [1]. Could you
please check now.

[1]. https://github.com/wso2-extensions/esb-connector-amazons3/pull/25


Thanks,
Keerthika.

On Tue, Nov 13, 2018 at 12:35 PM Keerthika Mahendralingam <
keerth...@wso2.com> wrote:

> Hi Biruntha,
>
> This method is working fine with EI 6.1.1. But getting the same error as
> yours with EI 6.4.0. Need to check.
>
> Thanks,
> Keerthika.
>
> On Tue, Nov 13, 2018 at 11:45 AM Keerthika Mahendralingam <
> keerth...@wso2.com> wrote:
>
>> Hi Biruntha,
>>
>> I have tried the deleteBucketReplication with the following request. It
>> worked for me.
>>
>> 
>> XXX
>> 
>> DELETE
>> application/xml
>> true
>> signv4test
>> s3.us-east-2.amazonaws.com
>> http://s3.us-east-2.amazonaws.com/signv4test
>> 
>> 
>> us-east-2
>> 
>> 
>> public-read
>> 
>>
>> Thanks,
>> Keerthika.
>>
>> On Thu, Nov 8, 2018 at 9:23 AM Biruntha Gnaneswaran 
>> wrote:
>>
>>> Hi Keerthika,
>>>
>>> I have tried with the above mentioned two configs. But for both configs
>>> I'm getting RequestTimeout error as in [1]. Please find the wire log for
>>> this two request and response [2] & [3].
>>>
>>> [1]
>>> 
>>> RequestTimeout
>>> Your socket connection to the server was not read from or
>>> written to within the timeout period. Idle connections will be
>>> closed.
>>> 9D3D185B485D9BD9
>>>
>>> RhLOUIb8SMBZCLTddE0oKFF4OxZ5qQOOIDjikeB66xQgIHshsdsk0fHUdPd1TTgEelN8WZT4XWE=
>>> 
>>>
>>> [2]
>>>
>>> [2018-11-08 09:13:21,966] [EI-Core] DEBUG - wire HTTP-Listener I/O
>>> dispatcher-2 >> "POST /services/amazons3_deleteBucketReplication
>>> HTTP/1.1[\r][\n]"
>>> [2018-11-08 09:13:21,967] [EI-Core] DEBUG - wire HTTP-Listener I/O
>>> dispatcher-2 >> "Content-Type: application/xml[\r][\n]"
>>> [2018-11-08 09:13:21,967] [EI-Core] DEBUG - wire HTTP-Listener I/O
>>> dispatcher-2 >> "cache-control: no-cache[\r][\n]"
>>> [2018-11-08 09:13:21,967] [EI-Core] DEBUG - wire HTTP-Listener I/O
>>> dispatcher-2 >> "Postman-Token:
>>> 96535872-a3e1-4702-ad2d-f87b5a8a93cd[\r][\n]"
>>> [2018-11-08 09:13:21,967] [EI-Core] DEBUG - wire HTTP-Listener I/O
>>> dispatcher-2 >> "User-Agent: PostmanRuntime/7.3.0[\r][\n]"
>>> [2018-11-08 09:13:21,967] [EI-Core] DEBUG - wire HTTP-Listener I/O
>>> dispatcher-2 >> "Accept: */*[\r][\n]"
>>> [2018-11-08 09:13:21,967] [EI-Core] DEBUG - wire HTTP-Listener I/O
>>> dispatcher-2 >> "Host: biruntha:8280[\r][\n]"
>>> [2018-11-08 09:13:21,967] [EI-Core] DEBUG - wire HTTP-Listener I/O
>>> dispatcher-2 >> "accept-encoding: gzip, deflate[\r][\n]"
>>> [2018-11-08 09:13:21,967] [EI-Core] DEBUG - wire HTTP-Listener I/O
>>> dispatcher-2 >> "content-length: 827[\r][\n]"
>>> [2018-11-08 09:13:21,967] [EI-Core] DEBUG - wire HTTP-Listener I/O
>>> dispatcher-2 >> "Connection: keep-alive[\r][\n]"
>>> [2018-11-08 09:13:21,967] [EI-Core] DEBUG - wire HTTP-Listener I/O
>>> dispatcher-2 >> "[\r][\n]"
>>> [2018-11-08 09:13:21,967] [EI-Core] DEBUG - wire HTTP-Listener I/O
>>> dispatcher-2 >> "[\n]"
>>> [2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
>>> dispatcher-2 >> "x[\n]"
>>> [2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
>>> dispatcher-2 >> "
>>> x[\n]"
>>> [2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
>>> dispatcher-2 >> "DELETE[\n]"
>>> [2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
>>> dispatcher-2 >> "true[\n]"
>>> [2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
>>> dispatcher-2 >> "0[\n]"
>>> [2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
>>> dispatcher-2 >> "[\n]"
>>> [2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
>>> dispatcher-2 >> "us-east-2[\n]"
>>> [2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
>>> dispatcher-2 >> "testbuckkkbiru[\n]"
>>> [2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
>>> dispatcher-2 >> "s3.us-east-2.amazonaws.com[\n]"
>>> [2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
>>> dispatcher-2 >> "
>>> http://s3.us-east-2.amazonaws.com/testbuckkkbiru[\n]"
>>> [2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
>>> dispatcher-2 >> "[\n]"
>>> [2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
>>> dispatcher-2 >> "[\n]"
>>> [2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
>>> dispatcher-2 >> "public-read[\n]"
>>> [2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
>>> dispatcher-2 >> "[\n]"
>>> [2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
>>> dispatcher-2 >> "[\n]"
>>> [2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
>>> dispatcher-2 >> "[\n]"
>>> [2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O

Re: [Dev] Getting "SignatureDoesNotMatch" error with deleteBucketReplication operation in Amazon s3 connector

2018-11-12 Thread Keerthika Mahendralingam
Hi Biruntha,

This method is working fine with EI 6.1.1. But getting the same error as
yours with EI 6.4.0. Need to check.

Thanks,
Keerthika.

On Tue, Nov 13, 2018 at 11:45 AM Keerthika Mahendralingam <
keerth...@wso2.com> wrote:

> Hi Biruntha,
>
> I have tried the deleteBucketReplication with the following request. It
> worked for me.
>
> 
> XXX
> 
> DELETE
> application/xml
> true
> signv4test
> s3.us-east-2.amazonaws.com
> http://s3.us-east-2.amazonaws.com/signv4test
> 
> 
> us-east-2
> 
> 
> public-read
> 
>
> Thanks,
> Keerthika.
>
> On Thu, Nov 8, 2018 at 9:23 AM Biruntha Gnaneswaran 
> wrote:
>
>> Hi Keerthika,
>>
>> I have tried with the above mentioned two configs. But for both configs
>> I'm getting RequestTimeout error as in [1]. Please find the wire log for
>> this two request and response [2] & [3].
>>
>> [1]
>> 
>> RequestTimeout
>> Your socket connection to the server was not read from or
>> written to within the timeout period. Idle connections will be
>> closed.
>> 9D3D185B485D9BD9
>>
>> RhLOUIb8SMBZCLTddE0oKFF4OxZ5qQOOIDjikeB66xQgIHshsdsk0fHUdPd1TTgEelN8WZT4XWE=
>> 
>>
>> [2]
>>
>> [2018-11-08 09:13:21,966] [EI-Core] DEBUG - wire HTTP-Listener I/O
>> dispatcher-2 >> "POST /services/amazons3_deleteBucketReplication
>> HTTP/1.1[\r][\n]"
>> [2018-11-08 09:13:21,967] [EI-Core] DEBUG - wire HTTP-Listener I/O
>> dispatcher-2 >> "Content-Type: application/xml[\r][\n]"
>> [2018-11-08 09:13:21,967] [EI-Core] DEBUG - wire HTTP-Listener I/O
>> dispatcher-2 >> "cache-control: no-cache[\r][\n]"
>> [2018-11-08 09:13:21,967] [EI-Core] DEBUG - wire HTTP-Listener I/O
>> dispatcher-2 >> "Postman-Token:
>> 96535872-a3e1-4702-ad2d-f87b5a8a93cd[\r][\n]"
>> [2018-11-08 09:13:21,967] [EI-Core] DEBUG - wire HTTP-Listener I/O
>> dispatcher-2 >> "User-Agent: PostmanRuntime/7.3.0[\r][\n]"
>> [2018-11-08 09:13:21,967] [EI-Core] DEBUG - wire HTTP-Listener I/O
>> dispatcher-2 >> "Accept: */*[\r][\n]"
>> [2018-11-08 09:13:21,967] [EI-Core] DEBUG - wire HTTP-Listener I/O
>> dispatcher-2 >> "Host: biruntha:8280[\r][\n]"
>> [2018-11-08 09:13:21,967] [EI-Core] DEBUG - wire HTTP-Listener I/O
>> dispatcher-2 >> "accept-encoding: gzip, deflate[\r][\n]"
>> [2018-11-08 09:13:21,967] [EI-Core] DEBUG - wire HTTP-Listener I/O
>> dispatcher-2 >> "content-length: 827[\r][\n]"
>> [2018-11-08 09:13:21,967] [EI-Core] DEBUG - wire HTTP-Listener I/O
>> dispatcher-2 >> "Connection: keep-alive[\r][\n]"
>> [2018-11-08 09:13:21,967] [EI-Core] DEBUG - wire HTTP-Listener I/O
>> dispatcher-2 >> "[\r][\n]"
>> [2018-11-08 09:13:21,967] [EI-Core] DEBUG - wire HTTP-Listener I/O
>> dispatcher-2 >> "[\n]"
>> [2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
>> dispatcher-2 >> "x[\n]"
>> [2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
>> dispatcher-2 >> "
>> x[\n]"
>> [2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
>> dispatcher-2 >> "DELETE[\n]"
>> [2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
>> dispatcher-2 >> "true[\n]"
>> [2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
>> dispatcher-2 >> "0[\n]"
>> [2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
>> dispatcher-2 >> "[\n]"
>> [2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
>> dispatcher-2 >> "us-east-2[\n]"
>> [2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
>> dispatcher-2 >> "testbuckkkbiru[\n]"
>> [2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
>> dispatcher-2 >> "s3.us-east-2.amazonaws.com[\n]"
>> [2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
>> dispatcher-2 >> "
>> http://s3.us-east-2.amazonaws.com/testbuckkkbiru[\n]"
>> [2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
>> dispatcher-2 >> "[\n]"
>> [2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
>> dispatcher-2 >> "[\n]"
>> [2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
>> dispatcher-2 >> "public-read[\n]"
>> [2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
>> dispatcher-2 >> "[\n]"
>> [2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
>> dispatcher-2 >> "[\n]"
>> [2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
>> dispatcher-2 >> "[\n]"
>> [2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
>> dispatcher-2 >> "[\n]"
>> [2018-11-08 09:13:21,969] [EI-Core] DEBUG - wire HTTP-Listener I/O
>> dispatcher-2 >> "[\n]"
>> [2018-11-08 09:13:21,969] [EI-Core] DEBUG - wire HTTP-Listener I/O
>> dispatcher-2 >> ""
>> [2018-11-08 09:13:21,969] [EI-Core] DEBUG - headers http-incoming-2 >>
>> POST /services/amazons3_deleteBucketReplication HTTP/1.1
>> [2018-11-08 09:13:21,969] [EI-Core] DEBUG - headers http-incoming-2 >>
>> Content-Type: application/xml
>> [2018-11-08 

Re: [Dev] Getting "SignatureDoesNotMatch" error with deleteBucketReplication operation in Amazon s3 connector

2018-11-12 Thread Keerthika Mahendralingam
Hi Biruntha,

I have tried the deleteBucketReplication with the following request. It
worked for me.


XXX

DELETE
application/xml
true
signv4test
s3.us-east-2.amazonaws.com
http://s3.us-east-2.amazonaws.com/signv4test


us-east-2


public-read


Thanks,
Keerthika.

On Thu, Nov 8, 2018 at 9:23 AM Biruntha Gnaneswaran 
wrote:

> Hi Keerthika,
>
> I have tried with the above mentioned two configs. But for both configs
> I'm getting RequestTimeout error as in [1]. Please find the wire log for
> this two request and response [2] & [3].
>
> [1]
> 
> RequestTimeout
> Your socket connection to the server was not read from or
> written to within the timeout period. Idle connections will be
> closed.
> 9D3D185B485D9BD9
>
> RhLOUIb8SMBZCLTddE0oKFF4OxZ5qQOOIDjikeB66xQgIHshsdsk0fHUdPd1TTgEelN8WZT4XWE=
> 
>
> [2]
>
> [2018-11-08 09:13:21,966] [EI-Core] DEBUG - wire HTTP-Listener I/O
> dispatcher-2 >> "POST /services/amazons3_deleteBucketReplication
> HTTP/1.1[\r][\n]"
> [2018-11-08 09:13:21,967] [EI-Core] DEBUG - wire HTTP-Listener I/O
> dispatcher-2 >> "Content-Type: application/xml[\r][\n]"
> [2018-11-08 09:13:21,967] [EI-Core] DEBUG - wire HTTP-Listener I/O
> dispatcher-2 >> "cache-control: no-cache[\r][\n]"
> [2018-11-08 09:13:21,967] [EI-Core] DEBUG - wire HTTP-Listener I/O
> dispatcher-2 >> "Postman-Token:
> 96535872-a3e1-4702-ad2d-f87b5a8a93cd[\r][\n]"
> [2018-11-08 09:13:21,967] [EI-Core] DEBUG - wire HTTP-Listener I/O
> dispatcher-2 >> "User-Agent: PostmanRuntime/7.3.0[\r][\n]"
> [2018-11-08 09:13:21,967] [EI-Core] DEBUG - wire HTTP-Listener I/O
> dispatcher-2 >> "Accept: */*[\r][\n]"
> [2018-11-08 09:13:21,967] [EI-Core] DEBUG - wire HTTP-Listener I/O
> dispatcher-2 >> "Host: biruntha:8280[\r][\n]"
> [2018-11-08 09:13:21,967] [EI-Core] DEBUG - wire HTTP-Listener I/O
> dispatcher-2 >> "accept-encoding: gzip, deflate[\r][\n]"
> [2018-11-08 09:13:21,967] [EI-Core] DEBUG - wire HTTP-Listener I/O
> dispatcher-2 >> "content-length: 827[\r][\n]"
> [2018-11-08 09:13:21,967] [EI-Core] DEBUG - wire HTTP-Listener I/O
> dispatcher-2 >> "Connection: keep-alive[\r][\n]"
> [2018-11-08 09:13:21,967] [EI-Core] DEBUG - wire HTTP-Listener I/O
> dispatcher-2 >> "[\r][\n]"
> [2018-11-08 09:13:21,967] [EI-Core] DEBUG - wire HTTP-Listener I/O
> dispatcher-2 >> "[\n]"
> [2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
> dispatcher-2 >> "x[\n]"
> [2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
> dispatcher-2 >> "
> x[\n]"
> [2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
> dispatcher-2 >> "DELETE[\n]"
> [2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
> dispatcher-2 >> "true[\n]"
> [2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
> dispatcher-2 >> "0[\n]"
> [2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
> dispatcher-2 >> "[\n]"
> [2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
> dispatcher-2 >> "us-east-2[\n]"
> [2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
> dispatcher-2 >> "testbuckkkbiru[\n]"
> [2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
> dispatcher-2 >> "s3.us-east-2.amazonaws.com[\n]"
> [2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
> dispatcher-2 >> "
> http://s3.us-east-2.amazonaws.com/testbuckkkbiru[\n]"
> [2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
> dispatcher-2 >> "[\n]"
> [2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
> dispatcher-2 >> "[\n]"
> [2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
> dispatcher-2 >> "public-read[\n]"
> [2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
> dispatcher-2 >> "[\n]"
> [2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
> dispatcher-2 >> "[\n]"
> [2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
> dispatcher-2 >> "[\n]"
> [2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
> dispatcher-2 >> "[\n]"
> [2018-11-08 09:13:21,969] [EI-Core] DEBUG - wire HTTP-Listener I/O
> dispatcher-2 >> "[\n]"
> [2018-11-08 09:13:21,969] [EI-Core] DEBUG - wire HTTP-Listener I/O
> dispatcher-2 >> ""
> [2018-11-08 09:13:21,969] [EI-Core] DEBUG - headers http-incoming-2 >>
> POST /services/amazons3_deleteBucketReplication HTTP/1.1
> [2018-11-08 09:13:21,969] [EI-Core] DEBUG - headers http-incoming-2 >>
> Content-Type: application/xml
> [2018-11-08 09:13:21,969] [EI-Core] DEBUG - headers http-incoming-2 >>
> cache-control: no-cache
> [2018-11-08 09:13:21,969] [EI-Core] DEBUG - headers http-incoming-2 >>
> Postman-Token: 96535872-a3e1-4702-ad2d-f87b5a8a93cd
> [2018-11-08 09:13:21,969] [EI-Core] DEBUG - headers http-incoming-2 >>
> User-Agent: PostmanRuntime/7.3.0
> [2018-11-08 09:13:21,969] [EI-Core] DEBUG - headers 

Re: [Dev] Getting "SignatureDoesNotMatch" error with deleteBucketReplication operation in Amazon s3 connector

2018-11-07 Thread Biruntha Gnaneswaran
Hi Keerthika,

I have tried with the above mentioned two configs. But for both configs I'm
getting RequestTimeout error as in [1]. Please find the wire log for this
two request and response [2] & [3].

[1]

RequestTimeout
Your socket connection to the server was not read from or
written to within the timeout period. Idle connections will be
closed.
9D3D185B485D9BD9
RhLOUIb8SMBZCLTddE0oKFF4OxZ5qQOOIDjikeB66xQgIHshsdsk0fHUdPd1
TTgEelN8WZT4XWE=


[2]

[2018-11-08 09:13:21,966] [EI-Core] DEBUG - wire HTTP-Listener I/O
dispatcher-2 >> "POST /services/amazons3_deleteBucketReplication
HTTP/1.1[\r][\n]"
[2018-11-08 09:13:21,967] [EI-Core] DEBUG - wire HTTP-Listener I/O
dispatcher-2 >> "Content-Type: application/xml[\r][\n]"
[2018-11-08 09:13:21,967] [EI-Core] DEBUG - wire HTTP-Listener I/O
dispatcher-2 >> "cache-control: no-cache[\r][\n]"
[2018-11-08 09:13:21,967] [EI-Core] DEBUG - wire HTTP-Listener I/O
dispatcher-2 >> "Postman-Token: 96535872-a3e1-4702-ad2d-
f87b5a8a93cd[\r][\n]"
[2018-11-08 09:13:21,967] [EI-Core] DEBUG - wire HTTP-Listener I/O
dispatcher-2 >> "User-Agent: PostmanRuntime/7.3.0[\r][\n]"
[2018-11-08 09:13:21,967] [EI-Core] DEBUG - wire HTTP-Listener I/O
dispatcher-2 >> "Accept: */*[\r][\n]"
[2018-11-08 09:13:21,967] [EI-Core] DEBUG - wire HTTP-Listener I/O
dispatcher-2 >> "Host: biruntha:8280[\r][\n]"
[2018-11-08 09:13:21,967] [EI-Core] DEBUG - wire HTTP-Listener I/O
dispatcher-2 >> "accept-encoding: gzip, deflate[\r][\n]"
[2018-11-08 09:13:21,967] [EI-Core] DEBUG - wire HTTP-Listener I/O
dispatcher-2 >> "content-length: 827[\r][\n]"
[2018-11-08 09:13:21,967] [EI-Core] DEBUG - wire HTTP-Listener I/O
dispatcher-2 >> "Connection: keep-alive[\r][\n]"
[2018-11-08 09:13:21,967] [EI-Core] DEBUG - wire HTTP-Listener I/O
dispatcher-2 >> "[\r][\n]"
[2018-11-08 09:13:21,967] [EI-Core] DEBUG - wire HTTP-Listener I/O
dispatcher-2 >> "[\n]"
[2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
dispatcher-2 >> "x[\n]"
[2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
dispatcher-2 >> "x[\n]"
[2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
dispatcher-2 >> "DELETE[\n]"
[2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
dispatcher-2 >> "true[\n]"
[2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
dispatcher-2 >> "0[\n]"
[2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
dispatcher-2 >> "[\n]"
[2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
dispatcher-2 >> "us-east-2[\n]"
[2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
dispatcher-2 >> "testbuckkkbiru[\n]"
[2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
dispatcher-2 >> "s3.us-east-2.amazonaws.com[\n]"
[2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
dispatcher-2 >> "http://s3.us-east-
2.amazonaws.com/testbuckkkbiru[\n]"
[2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
dispatcher-2 >> "[\n]"
[2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
dispatcher-2 >> "[\n]"
[2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
dispatcher-2 >> "public-read[\n]"
[2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
dispatcher-2 >> "[\n]"
[2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
dispatcher-2 >> "[\n]"
[2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
dispatcher-2 >> "[\n]"
[2018-11-08 09:13:21,968] [EI-Core] DEBUG - wire HTTP-Listener I/O
dispatcher-2 >> "[\n]"
[2018-11-08 09:13:21,969] [EI-Core] DEBUG - wire HTTP-Listener I/O
dispatcher-2 >> "[\n]"
[2018-11-08 09:13:21,969] [EI-Core] DEBUG - wire HTTP-Listener I/O
dispatcher-2 >> ""
[2018-11-08 09:13:21,969] [EI-Core] DEBUG - headers http-incoming-2 >> POST
/services/amazons3_deleteBucketReplication HTTP/1.1
[2018-11-08 09:13:21,969] [EI-Core] DEBUG - headers http-incoming-2 >>
Content-Type: application/xml
[2018-11-08 09:13:21,969] [EI-Core] DEBUG - headers http-incoming-2 >>
cache-control: no-cache
[2018-11-08 09:13:21,969] [EI-Core] DEBUG - headers http-incoming-2 >>
Postman-Token: 96535872-a3e1-4702-ad2d-f87b5a8a93cd
[2018-11-08 09:13:21,969] [EI-Core] DEBUG - headers http-incoming-2 >>
User-Agent: PostmanRuntime/7.3.0
[2018-11-08 09:13:21,969] [EI-Core] DEBUG - headers http-incoming-2 >>
Accept: */*
[2018-11-08 09:13:21,969] [EI-Core] DEBUG - headers http-incoming-2 >>
Host: biruntha:8280
[2018-11-08 09:13:21,969] [EI-Core] DEBUG - headers http-incoming-2 >>
accept-encoding: gzip, deflate
[2018-11-08 09:13:21,969] [EI-Core] DEBUG - headers http-incoming-2 >>
content-length: 827
[2018-11-08 09:13:21,969] [EI-Core] DEBUG - headers http-incoming-2 >>
Connection: keep-alive
[2018-11-08 09:13:22,070] [EI-Core]  WARN - SequenceMediator onError
handler : faultHandlerSeq for sequence : null cannot be found
[2018-11-08 09:13:22,435] [EI-Core] 

Re: [Dev] Getting "SignatureDoesNotMatch" error with deleteBucketReplication operation in Amazon s3 connector

2018-11-07 Thread Keerthika Mahendralingam
Hi Biruntha,

If you are using virtual-hosted–style bucket url(
http://testbuckkkbiru.s3.amazonaws.com) then the host should be
testbuckkkbiru.s3.amazonaws.com and you should not provide the bucketName
in your init configuration. And also, since you are trying to access the
bucket from us-east-2 your bucket url should be
http://testbuckkkbiru.s3.us-east-2.amazonaws.com. Could you please try with
the following config:


xx
xx
DELETE
application/xml
true
testbuckkkbiru
s3.us-east-2.amazonaws.com
http://s3.us-east-2.amazonaws.com/testbuckkkbiru


us-east-2


public-read


or


xx
xx
DELETE
application/xml
true
testbuckkkbiru.s3.us-east-2.amazonaws.com
http://testbuckkkbiru.s3.us-east-2.amazonaws.com


us-east-2


public-read


[1]. https://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region

Thanks,
Keerthika.

On Tue, Oct 9, 2018 at 11:52 AM Biruntha Gnaneswaran 
wrote:

> Hi Shakila,
>
> I have tried as you mentioned but still I'm getting
> "SignatureDoesNotMatch" error. So, I have posted stackoverflow question
> regarding this [1].
>
> [1]
> https://stackoverflow.com/questions/52714250/getting-signaturedoesnotmatch-error-with-delete-bucket-replication-operation-i
>
> Thanks,
>
> On Mon, Oct 8, 2018 at 1:56 PM, Shakila Sasikaran 
> wrote:
>
>> Hi Biruntha,
>>
>> As per the API documentation [1], I think the bucket URL should be like
>> /. Could you please try with 
>> *http://testbuckkkbiru.s3-us-east-2.amazonaws.com
>> *?
>>
>> [1]
>> https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketDELETEreplication.html
>>
>> Thanks
>>
>> On Fri, Oct 5, 2018 at 3:00 PM Biruntha Gnaneswaran 
>> wrote:
>>
>>> Hi All,
>>>
>>> I'm trying to use deleteBucketReplication operation in amazon s3
>>> connector [1] & [2]. But I'm getting "SignatureDoesNotMatch" error with the
>>> sample request [3] & [4].  When I try this method with host and bucketUrl
>>> as in [5], I'm getting error as in [6]. Am I missed anything? Appreciate
>>> your input on this.
>>>
>>>
>>> [1]
>>> https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketDELETEreplication.html
>>> [2]
>>> https://docs.wso2.com/display/ESBCONNECTORS/Working+with+Buckets+in+Amazon+S3#WorkingwithBucketsinAmazonS3-deleteBucketReplication
>>> [3]
>>> 
>>> xx
>>> xx
>>> DELETE
>>> application/xml
>>> true
>>> http://testbuckkkbiru.s3.amazonaws.com
>>> 
>>> 
>>> us-east-2
>>> testbuckkkbiru
>>> s3.amazonaws.com
>>> 
>>> 
>>> public-read
>>> 
>>> [4]
>>> 
>>> http://ws.apache.org/ns/synapse;
>>>name="amazons3_deleteBucketReplication"
>>>startOnLoad="true"
>>>statistics="disable"
>>>trace="disable"
>>>transports="http,https">
>>>
>>>   
>>>  
>>>  >> name="secretAccessKey"/>
>>>  
>>>  
>>>  
>>>  
>>>  
>>>  
>>>  >> name="xAmzSecurityToken"/>
>>>  
>>>  
>>>  >> name="contentLength"/>
>>>  
>>>  
>>>  
>>> {$ctx:accessKeyId}
>>> {$ctx:secretAccessKey}
>>> {$ctx:methodType}
>>> {$ctx:contentType}
>>> {$ctx:bucketName}
>>> {$ctx:isXAmzDate}
>>> {$ctx:contentMD5}
>>>
>>> {$ctx:xAmzSecurityToken}
>>> {$ctx:region}
>>> {$ctx:host}
>>> {$ctx:expect}
>>> {$ctx:contentLength}
>>> {$ctx:xAmzMfa}
>>>  
>>>  
>>> {$ctx:bucketUrl}
>>>  
>>>  
>>>   
>>>   
>>>  
>>>   
>>>
>>>
>>> 
>>>
>>> [5]
>>> s3-us-east-2.amazonaws.com
>>> http://s3-us-east-2.amazonaws.com/testbuckkkbiru
>>>
>>> [6]
>>> RequestTimeoutYour socket connection to the
>>> server was not read from or written to within the timeout period. Idle
>>> connections will be
>>> closed.DEEACD868FB28742zVKD6i4XzrWD7Dh8htoqPrlDypGClgB4SjdCD+4IQz7IkrqP1D7Xt4l+R9DhfsUSEefqZzlZoXo=
>>>
>>> Thanks,
>>> --
>>> Biruntha
>>>
>>> Software Engineer
>>> WSO2
>>> Email: birun...@wso2.com
>>> LinkedIn: https://lk.linkedin.com/in/biruntha
>>> Mobile : +94773718986
>>>
>>
>>
>> --
>> Shakila Sasikaran
>> Software Engineer
>> Mobile :+94 (0) 77 526 6848
>> shak...@wso2.com
>> WSO2, Inc.
>> lean . enterprise . middleware
>> http://www.wso2.com/
>>
>
>
>
> --
> Biruntha
>
> Software Engineer
> WSO2
> Email: birun...@wso2.com
> LinkedIn: https://lk.linkedin.com/in/biruntha
> Mobile : +94773718986
>


-- 

Keerthika Mahendralingam
Senior Software Engineer
Mobile :+94 (0) 776 121144
keerth...@wso2.com
WSO2, Inc.
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Getting "SignatureDoesNotMatch" error with deleteBucketReplication operation in Amazon s3 connector

2018-10-09 Thread Biruntha Gnaneswaran
Hi Shakila,

I have tried as you mentioned but still I'm getting "SignatureDoesNotMatch"
error. So, I have posted stackoverflow question regarding this [1].

[1]
https://stackoverflow.com/questions/52714250/getting-signaturedoesnotmatch-error-with-delete-bucket-replication-operation-i

Thanks,

On Mon, Oct 8, 2018 at 1:56 PM, Shakila Sasikaran  wrote:

> Hi Biruntha,
>
> As per the API documentation [1], I think the bucket URL should be like
> /. Could you please try with 
> *http://testbuckkkbiru.s3-us-east-2.amazonaws.com
> *?
>
> [1] https://docs.aws.amazon.com/AmazonS3/latest/API/
> RESTBucketDELETEreplication.html
>
> Thanks
>
> On Fri, Oct 5, 2018 at 3:00 PM Biruntha Gnaneswaran 
> wrote:
>
>> Hi All,
>>
>> I'm trying to use deleteBucketReplication operation in amazon s3
>> connector [1] & [2]. But I'm getting "SignatureDoesNotMatch" error with the
>> sample request [3] & [4].  When I try this method with host and bucketUrl
>> as in [5], I'm getting error as in [6]. Am I missed anything? Appreciate
>> your input on this.
>>
>>
>> [1] https://docs.aws.amazon.com/AmazonS3/latest/API/
>> RESTBucketDELETEreplication.html
>> [2] https://docs.wso2.com/display/ESBCONNECTORS/Working+with+
>> Buckets+in+Amazon+S3#WorkingwithBucketsinAmazonS3-deleteBucketReplication
>> [3]
>> 
>> xx
>> xx
>> DELETE
>> application/xml
>> true
>> http://testbuckkkbiru.s3.amazonaws.com
>> 
>> 
>> us-east-2
>> testbuckkkbiru
>> s3.amazonaws.com
>> 
>> 
>> public-read
>> 
>> [4]
>> 
>> http://ws.apache.org/ns/synapse;
>>name="amazons3_deleteBucketReplication"
>>startOnLoad="true"
>>statistics="disable"
>>trace="disable"
>>transports="http,https">
>>
>>   
>>  
>>  > name="secretAccessKey"/>
>>  
>>  
>>  
>>  
>>  
>>  
>>  > name="xAmzSecurityToken"/>
>>  
>>  
>>  > name="contentLength"/>
>>  
>>  
>>  
>> {$ctx:accessKeyId}
>> {$ctx:secretAccessKey}
>> {$ctx:methodType}
>> {$ctx:contentType}
>> {$ctx:bucketName}
>> {$ctx:isXAmzDate}
>> {$ctx:contentMD5}
>> {$ctx:xAmzSecurityToken}> xAmzSecurityToken>
>> {$ctx:region}
>> {$ctx:host}
>> {$ctx:expect}
>> {$ctx:contentLength}
>> {$ctx:xAmzMfa}
>>  
>>  
>> {$ctx:bucketUrl}
>>  
>>  
>>   
>>   
>>  
>>   
>>
>>
>> 
>>
>> [5]
>> s3-us-east-2.amazonaws.com
>> http://s3-us-east-2.amazonaws.com/testbuckkkbiru
>>
>> [6]
>> RequestTimeoutYour socket connection to the
>> server was not read from or written to within the timeout period. Idle
>> connections will be closed.
>> DEEACD868FB28742zVKD6i4XzrWD7Dh8htoqPrlDypGClg
>> B4SjdCD+4IQz7IkrqP1D7Xt4l+R9DhfsUSEefqZzlZoXo=
>>
>> Thanks,
>> --
>> Biruntha
>>
>> Software Engineer
>> WSO2
>> Email: birun...@wso2.com
>> LinkedIn: https://lk.linkedin.com/in/biruntha
>> Mobile : +94773718986
>>
>
>
> --
> Shakila Sasikaran
> Software Engineer
> Mobile :+94 (0) 77 526 6848
> shak...@wso2.com
> WSO2, Inc.
> lean . enterprise . middleware
> http://www.wso2.com/
>



-- 
Biruntha

Software Engineer
WSO2
Email: birun...@wso2.com
LinkedIn: https://lk.linkedin.com/in/biruntha
Mobile : +94773718986
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Getting "SignatureDoesNotMatch" error with deleteBucketReplication operation in Amazon s3 connector

2018-10-08 Thread Shakila Sasikaran
Hi Biruntha,

As per the API documentation [1], I think the bucket URL should be like
/. Could you please try with
*http://testbuckkkbiru.s3-us-east-2.amazonaws.com
*?

[1]
https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketDELETEreplication.html

Thanks

On Fri, Oct 5, 2018 at 3:00 PM Biruntha Gnaneswaran 
wrote:

> Hi All,
>
> I'm trying to use deleteBucketReplication operation in amazon s3 connector
> [1] & [2]. But I'm getting "SignatureDoesNotMatch" error with the sample
> request [3] & [4].  When I try this method with host and bucketUrl as in
> [5], I'm getting error as in [6]. Am I missed anything? Appreciate your
> input on this.
>
>
> [1]
> https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketDELETEreplication.html
> [2]
> https://docs.wso2.com/display/ESBCONNECTORS/Working+with+Buckets+in+Amazon+S3#WorkingwithBucketsinAmazonS3-deleteBucketReplication
> [3]
> 
> xx
> xx
> DELETE
> application/xml
> true
> http://testbuckkkbiru.s3.amazonaws.com
> 
> 
> us-east-2
> testbuckkkbiru
> s3.amazonaws.com
> 
> 
> public-read
> 
> [4]
> 
> http://ws.apache.org/ns/synapse;
>name="amazons3_deleteBucketReplication"
>startOnLoad="true"
>statistics="disable"
>trace="disable"
>transports="http,https">
>
>   
>  
>   name="secretAccessKey"/>
>  
>  
>  
>  
>  
>  
>   name="xAmzSecurityToken"/>
>  
>  
>   name="contentLength"/>
>  
>  
>  
> {$ctx:accessKeyId}
> {$ctx:secretAccessKey}
> {$ctx:methodType}
> {$ctx:contentType}
> {$ctx:bucketName}
> {$ctx:isXAmzDate}
> {$ctx:contentMD5}
> {$ctx:xAmzSecurityToken}
> {$ctx:region}
> {$ctx:host}
> {$ctx:expect}
> {$ctx:contentLength}
> {$ctx:xAmzMfa}
>  
>  
> {$ctx:bucketUrl}
>  
>  
>   
>   
>  
>   
>
>
> 
>
> [5]
> s3-us-east-2.amazonaws.com
> http://s3-us-east-2.amazonaws.com/testbuckkkbiru
>
> [6]
> RequestTimeoutYour socket connection to the
> server was not read from or written to within the timeout period. Idle
> connections will be
> closed.DEEACD868FB28742zVKD6i4XzrWD7Dh8htoqPrlDypGClgB4SjdCD+4IQz7IkrqP1D7Xt4l+R9DhfsUSEefqZzlZoXo=
>
> Thanks,
> --
> Biruntha
>
> Software Engineer
> WSO2
> Email: birun...@wso2.com
> LinkedIn: https://lk.linkedin.com/in/biruntha
> Mobile : +94773718986
>


-- 
Shakila Sasikaran
Software Engineer
Mobile :+94 (0) 77 526 6848
shak...@wso2.com
WSO2, Inc.
lean . enterprise . middleware
http://www.wso2.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Getting "SignatureDoesNotMatch" error with deleteBucketReplication operation in Amazon s3 connector

2018-10-05 Thread Biruntha Gnaneswaran
Hi All,

I'm trying to use deleteBucketReplication operation in amazon s3 connector
[1] & [2]. But I'm getting "SignatureDoesNotMatch" error with the sample
request [3] & [4].  When I try this method with host and bucketUrl as in
[5], I'm getting error as in [6]. Am I missed anything? Appreciate your
input on this.


[1]
https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketDELETEreplication.html
[2]
https://docs.wso2.com/display/ESBCONNECTORS/Working+with+Buckets+in+Amazon+S3#WorkingwithBucketsinAmazonS3-deleteBucketReplication
[3]

xx
xx
DELETE
application/xml
true
http://testbuckkkbiru.s3.amazonaws.com


us-east-2
testbuckkkbiru
s3.amazonaws.com


public-read

[4]

http://ws.apache.org/ns/synapse;
   name="amazons3_deleteBucketReplication"
   startOnLoad="true"
   statistics="disable"
   trace="disable"
   transports="http,https">
   
  
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
{$ctx:accessKeyId}
{$ctx:secretAccessKey}
{$ctx:methodType}
{$ctx:contentType}
{$ctx:bucketName}
{$ctx:isXAmzDate}
{$ctx:contentMD5}
{$ctx:xAmzSecurityToken}
{$ctx:region}
{$ctx:host}
{$ctx:expect}
{$ctx:contentLength}
{$ctx:xAmzMfa}
 
 
{$ctx:bucketUrl}
 
 
  
  
 
  
   
   


[5]
s3-us-east-2.amazonaws.com
http://s3-us-east-2.amazonaws.com/testbuckkkbiru

[6]
RequestTimeoutYour socket connection to the
server was not read from or written to within the timeout period. Idle
connections will be
closed.DEEACD868FB28742zVKD6i4XzrWD7Dh8htoqPrlDypGClgB4SjdCD+4IQz7IkrqP1D7Xt4l+R9DhfsUSEefqZzlZoXo=

Thanks,
-- 
Biruntha

Software Engineer
WSO2
Email: birun...@wso2.com
LinkedIn: https://lk.linkedin.com/in/biruntha
Mobile : +94773718986
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev