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

Unable to upload documents in Documents & Media with Amazon S3 DL Store

    Details

      Description

      Steps to Reproduce
      1. Configure Liferay to use Amazon s3 as the DL Store.
      2. Start the Portal and navigate to the Documents & Media of default Site
      3. Upload a Basic Document.

      Result: An error is displayed in GUI (see attached image) and the next exception logs

      21:40:18,616 ERROR [http-bio-8080-exec-7][S3Store:73] Request Error: java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.Integer
      Listening for transport dt_socket at address: 8000
      21:40:18,800 ERROR [http-bio-8080-exec-7][render_portlet_jsp:132] null
      org.jets3t.service.S3ServiceException: The action Create Object in bucket cannot be performed with an invalid bucket: null
              at org.jets3t.service.S3Service.putObject(S3Service.java:2267)
              at com.liferay.portlet.documentlibrary.store.S3Store.addFile(S3Store.java:94)
              at com.liferay.portlet.documentlibrary.store.BaseStore.addFile(BaseStore.java:109)
              at com.liferay.portlet.documentlibrary.store.StoreProxyImpl.addFile(StoreProxyImpl.java:55)
              at com.liferay.portlet.documentlibrary.store.SafeFileNameStoreWrapper.addFile(SafeFileNameStoreWrapper.java:73)
              at com.liferay.portlet.documentlibrary.store.DLStoreImpl.addFile(DLStoreImpl.java:108)
            [...]
      

      Expected: The document is uploaded.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              shitian.zhang Shitian "Shelton" Zhang (Inactive)
              Reporter:
              jose.jimenez Jose Jimenez
              Participants of an Issue:
              Recent user:
              Esther Sanz
              Votes:
              3 Vote for this issue
              Watchers:
              8 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                6 years, 18 weeks ago

                  Packages

                  Version Package
                  6.1.X EE
                  6.2.2 CE GA3
                  6.2.X EE
                  7.0.0 M1