AnsweredAssumed Answered

Alfresco 5.1 s3 connector error

Question asked by chaituu on Aug 3, 2016
we re using alfresco s3 connector for common content store location which is mounted on Amazon cloud.we are getting below error after applying alfresco-s3-connector-1.3.0.2-6.amp to alfresco.war.I have also pasted properties that is configured for s3 connector in alfresco-global.properties.currently we are using below properties for 4.2.2 version.Does below properties works for 5.1 version as well.

as per error,it says "The encryption method specified is not supported".Does s3 1.3.0.2 version supports SSE-C encryption method.if not what is encryption do we need to use?

ERROR [integrations.s3store.S3StreamListener] [localhost-startStop-1] S3StreamListener: Failed to upload content: contentstore/-system-/df50ad48-cfa5-4458-972c-8a3b1c79280e.bin400, InvalidArgument, The encryption method specified is not supported)
org.jets3t.service.S3ServiceException: Service Error Message. – ResponseCode: 400, ResponseStatus: Bad Request, XML Error Message: <?xml version="1.0" encoding="UTF-8"?><Error><Code>InvalidArgument</Code><Message>The encryption method specified is not supported</Message><ArgumentName>x-amz-server-side-encryption</ArgumentName><ArgumentValue>SSE-C</ArgumentValue><RequestId>0C80A51A0F0DA3EE</RequestId><HostId>Zv6UMkdROxQdjIArBFaqGgmPX1luElJT4ZTJxl/aTQACLHu3fxhrguGJtoJZHWefZ1HhE1Y6v2Q=</HostId></Error>
        at org.jets3t.service.S3Service.putObject(S3Service.java:2358)
        at org.alfresco.integrations.s3store.S3ServiceAdapterImpl.putObject(S3ServiceAdapterImpl.java:56)
        at org.alfresco.integrations.s3store.S3StreamListener.uploadFileAsSinglepart(S3StreamListener.java:130)
        at org.alfresco.integrations.s3store.S3StreamListener.uploadFile(S3StreamListener.java:122)
        at org.alfresco.integrations.s3store.S3StreamListener.retrieveFileStreamAndUpload(S3StreamListener.java:87)
s3.accessKey=ETETETETETETETETE
s3.secretKey=DGDGDGDGDGDG+G6rQ25YC
s3.bucketName=XXXX-sandbox
s3.bucketLocation=US

s3.encryption=SSE-C

##Jets3t override
storage-service.disable-live-md5=true

### Crypto Database ###
db.crypto.url= jdbc:oracle:thin:@XXXXX:1521:test
db.crypto.username=s3perf
db.crypto.password=xxxxxxx

s3.keystore.location=file:/usr/share/tomcat7/keystore/s3keystore.p12
s3.keystore.password=password
s3.keystore.type=PKCS12
s3.key.alias=test
s3.key.password=password  

Outcomes