Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-68371

AWS4 auth is not working for the S3 store in Documents and Media

    Details

      Description

      This issue is only reproducible in 6.2.10 or prior versions.

      S3 buckets only supporting AWS4 auth are not working as Store in the DM.

      Steps to reproduce:

      1. Create a bucket in Frankfurt (see that Frankfurt region only supports AWS v4 http://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region)
      2. Configure Liferay to use this bucket.
      3. Start Liferay and try to add a file in the D&M

      Observed behaviour Error and in log file you can view the next trace:

      08:31:54,674 ERROR [http-bio-8080-exec-2][ThreadedStorageService$ThreadGroupManager:206] A thread failed with an exception. Firing ERROR event and cancelling all threads
      org.jets3t.service.S3ServiceException: S3 Error Message. -- ResponseCode: 400, ResponseStatus: Bad Request, XML Error Message: <?xml version="1.0" encoding="UTF-8"?><Error><Code>InvalidRequest</Code><Message>The authorization mechanism you have provided is not supported. Please use AWS4-HMAC-SHA256.</Message><RequestId>95016AEF49E409E8</RequestId><HostId>LJvQptLYd8aatRWuufO7or4jQQokYhHdRsgq0kuRVVdcqkgMDN8n6YyQHC/p5PkrAdhl4sT1JBc=</HostId></Error>
                      at org.jets3t.service.impl.rest.httpclient.RestS3Service.multipartStartUploadImpl(RestS3Service.java:786)
                      at org.jets3t.service.S3Service.multipartStartUpload(S3Service.java:3366)
                      at org.jets3t.service.multi.s3.ThreadedS3Service$MultipartStartRunnable.run(ThreadedS3Service.java:313)
                      at java.lang.Thread.run(Thread.java:745)
      08:31:54,724 ERROR [http-bio-8080-exec-2][render_portlet_jsp:77] null
      org.jets3t.service.S3ServiceException: S3 Error Message. -- ResponseCode: 400, ResponseStatus: Bad Request, XML Error Message: <?xml version="1.0" encoding="UTF-8"?><Error><Code>InvalidRequest</Code><Message>The authorization mechanism you have provided is not supported. Please use AWS4-HMAC-SHA256.</Message><RequestId>95016AEF49E409E8</RequestId><HostId>LJvQptLYd8aatRWuufO7or4jQQokYhHdRsgq0kuRVVdcqkgMDN8n6YyQHC/p5PkrAdhl4sT1JBc=</HostId></Error>
                      at org.jets3t.service.impl.rest.httpclient.RestS3Service.multipartStartUploadImpl(RestS3Service.java:786)
                      at org.jets3t.service.S3Service.multipartStartUpload(S3Service.java:3366)
                      at org.jets3t.service.multi.s3.ThreadedS3Service$MultipartStartRunnable.run(ThreadedS3Service.java:313)
                      at java.lang.Thread.run(Thread.java:745)
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  3 years, 9 weeks, 1 day ago

                  Packages

                  Version Package