Details

    • Story Points:
      2
    • Fix Priority:
      5
    • Similar Issues:
      Show 5 results 

      Description

      Most of the DL stores don't implement a getFile(...) method and will therefore throw an UnsupportedOperationException.

      Steps to reproduce:
      1) Set dl.store.impl=com.liferay.portlet.documentlibrary.store.DBStore
      2) Try to publish to remove live environment using more than 10 MB as said here: https://issues.liferay.com/browse/LPS-37457?focusedCommentId=365393&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-365393

        Issue Links

          Activity

          Hide
          Mate Thurzo added a comment -

          Hey Daniel,

          can you please upload a stacktrace for this issue?

          Thanks,

          Máté

          Show
          Mate Thurzo added a comment - Hey Daniel, can you please upload a stacktrace for this issue? Thanks, Máté
          Hide
          Michael Han added a comment -

          We should not be using the getFile(...) method to access files from the repository. The DBStore for instance doesn't implement getFile(...) but rather implements getFileAsStream(...).

          Show
          Michael Han added a comment - We should not be using the getFile(...) method to access files from the repository. The DBStore for instance doesn't implement getFile(...) but rather implements getFileAsStream(...).
          Hide
          Mate Thurzo added a comment -

          I've localized where the problem is and I've implemented a solution for that.

          Show
          Mate Thurzo added a comment - I've localized where the problem is and I've implemented a solution for that.
          Hide
          Mark Jin added a comment -

          PASSED Manual Testing following the steps in the description.

          Reproduced on:
          Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: 53f3cd55a2bfc20a52b1d331f1717fe3a1f23200.

          Import LAR fails.

          The file Blogs-201309062447.portlet.lar cannot be imported.
          An unexpected error occurred while uploading your file.
          

          Fixed on:
          Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: 761517b2cc74e0ac90cc8837d766ebd65eca6292.

          Able to import LAR.

          Show
          Mark Jin added a comment - PASSED Manual Testing following the steps in the description. Reproduced on: Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: 53f3cd55a2bfc20a52b1d331f1717fe3a1f23200. Import LAR fails. The file Blogs-201309062447.portlet.lar cannot be imported. An unexpected error occurred while uploading your file. Fixed on: Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: 761517b2cc74e0ac90cc8837d766ebd65eca6292. Able to import LAR.

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 29 weeks ago

                Development

                  Structure Helper Panel