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 <[email protected]> wrote:

> Hi Biruntha,
>
> As per the API documentation [1], I think the bucket URL should be like
> <BUCKET_NAME>/<HOST>. Could you please try with 
> *http://testbuckkkbiru.s3-us-east-2.amazonaws.com
> <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 <[email protected]>
> 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]
>> <deleteBucketReplication>
>>     <accessKeyId>xxxxxx</accessKeyId>
>>     <secretAccessKey>xxxxxxxxxx</secretAccessKey>
>>     <methodType>DELETE</methodType>
>>     <contentType>application/xml</contentType>
>>     <isXAmzDate>true</isXAmzDate>
>>     <bucketUrl>http://testbuckkkbiru.s3.amazonaws.com</bucketUrl>
>>     <contentLength></contentLength>
>>     <contentMD5></contentMD5>
>>     <region>us-east-2</region>
>>     <bucketName>testbuckkkbiru</bucketName>
>>     <host>s3.amazonaws.com</host>
>>     <expect></expect>
>>     <xAmzSecurityToken></xAmzSecurityToken>
>>     <xAmzAcl>public-read</xAmzAcl>
>> </deleteBucketReplication>
>> [4]
>> <?xml version="1.0" encoding="UTF-8"?>
>> <proxy xmlns="http://ws.apache.org/ns/synapse";
>>        name="amazons3_deleteBucketReplication"
>>        startOnLoad="true"
>>        statistics="disable"
>>        trace="disable"
>>        transports="http,https">
>>    <target>
>>       <inSequence onError="faultHandlerSeq">
>>          <property expression="//accessKeyId/text()" name="accessKeyId"/>
>>          <property expression="//secretAccessKey/text()"
>> name="secretAccessKey"/>
>>          <property expression="//methodType/text()" name="methodType"/>
>>          <property expression="//contentType/text()" name="contentType"/>
>>          <property expression="//bucketName/text()" name="bucketName"/>
>>          <property expression="//region/text()" name="region"/>
>>          <property expression="//isXAmzDate/text()" name="isXAmzDate"/>
>>          <property expression="//contentMD5/text()" name="contentMD5"/>
>>          <property expression="//xAmzSecurityToken/text()"
>> name="xAmzSecurityToken"/>
>>          <property expression="//host/text()" name="host"/>
>>          <property expression="//expect/text()" name="expect"/>
>>          <property expression="//contentLength/text()"
>> name="contentLength"/>
>>          <property expression="//xAmzMfa/text()" name="xAmzMfa"/>
>>          <property expression="//bucketUrl/text()" name="bucketUrl"/>
>>          <amazons3.init>
>>             <accessKeyId>{$ctx:accessKeyId}</accessKeyId>
>>             <secretAccessKey>{$ctx:secretAccessKey}</secretAccessKey>
>>             <methodType>{$ctx:methodType}</methodType>
>>             <contentType>{$ctx:contentType}</contentType>
>>             <bucketName>{$ctx:bucketName}</bucketName>
>>             <isXAmzDate>{$ctx:isXAmzDate}</isXAmzDate>
>>             <contentMD5>{$ctx:contentMD5}</contentMD5>
>>             <xAmzSecurityToken>{$ctx:xAmzSecurityToken}</
>> xAmzSecurityToken>
>>             <region>{$ctx:region}</region>
>>             <host>{$ctx:host}</host>
>>             <expect>{$ctx:expect}</expect>
>>             <contentLength>{$ctx:contentLength}</contentLength>
>>             <xAmzMfa>{$ctx:xAmzMfa}</xAmzMfa>
>>          </amazons3.init>
>>          <amazons3.deleteBucketReplication>
>>             <bucketUrl>{$ctx:bucketUrl}</bucketUrl>
>>          </amazons3.deleteBucketReplication>
>>          <respond/>
>>       </inSequence>
>>       <outSequence>
>>          <respond/>
>>       </outSequence>
>>    </target>
>>    <description/>
>> </proxy>
>>
>> [5]
>> <host>s3-us-east-2.amazonaws.com</host>
>> <bucketUrl>http://s3-us-east-2.amazonaws.com/testbuckkkbiru</bucketUrl>
>>
>> [6]
>> <Error><Code>RequestTimeout</Code><Message>Your socket connection to the
>> server was not read from or written to within the timeout period. Idle
>> connections will be closed.</Message><RequestId>
>> DEEACD868FB28742</RequestId><HostId>zVKD6i4XzrWD7Dh8htoqPrlDypGClg
>> B4SjdCD+4IQz7IkrqP1D7Xt4l+R9DhfsUSEefqZzlZoXo=</HostId></Error>
>>
>> Thanks,
>> --
>> Biruntha
>>
>> Software Engineer
>> WSO2
>> Email: [email protected]
>> LinkedIn: https://lk.linkedin.com/in/biruntha
>> Mobile : +94773718986
>>
>
>
> --
> Shakila Sasikaran
> Software Engineer
> Mobile :+94 (0) 77 526 6848
> [email protected]
> WSO2, Inc.
> lean . enterprise . middleware
> http://www.wso2.com/
>



-- 
Biruntha

Software Engineer
WSO2
Email: [email protected]
LinkedIn: https://lk.linkedin.com/in/biruntha
Mobile : +94773718986
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to