PUBLIC - Liferay Portal Community Edition
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-30526

Exporting/Importing the document library with documents attached to a document type causes a null pointer exception

    Details

    • Branch Version/s:
      6.1.x
    • Backported to Branch:
      Committed
    • Fix Priority:
      4
    • Similar Issues:
      Show 4 results 

      Description

      Steps To reproduce:

      1. Go to control panel
      2. Click on Documents and Media
      3. Click manage > document types
      4. Click Add
      5. Type in 'Test' into the name box and add a text field in the main metadata fields and then click save
      6. Close the document types window
      7. Click Add > Test
      8. For file, choose any file
      9. Input a title ('test') and input some text into the text field
      10. Click publish
      11. Click on the wrench icon and then click 'Export/Import'
      12. Choose 'All for the Range' and then click export
      13. Go to 'Sites' under 'Portal' in the Control Panel menu
      14. Click Add > Blank Site
      15. Put 'Test' as the name and then click save
      16. Make sure the control panel switched to the 'Test' site and then click on Documents and Media
      17. Click the wrench icon and then click on 'Import/Export'
      18. Click on the Import tab
      19. Choose the file that was just exported and downloaded
      20. Choose 'Copy as New' as the Data Strategy and then click import

      The attached log file shows the stacktrace.

        Issue Links

          Activity

          Hide
          Michael Saechang added a comment -

          Committed on:
          Portal 6.2.x GIT ID: 0e918ce322aa6a763d72eb274c3de95d687d0ee0.

          Show
          Michael Saechang added a comment - Committed on: Portal 6.2.x GIT ID: 0e918ce322aa6a763d72eb274c3de95d687d0ee0.
          Hide
          Luyang Tan (Inactive) added a comment -

          PASSED Manual Testing following the steps in the description.

          Reproduced on:
          Tomcat 7.0 + MySQL 5. Portal 6.1.20 EE GA2.

          I will see the message: An unexpected error occurred while importing your file.
          I also can see the console error as the attachment shown.

          Fixed on:
          Tomcat 7.0 + MySQL 5. Portal 6.1.x EE GIT ID: 3fed8cd4b168409ce9fd7ad347ef73a64696d377.
          Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: 13dd62e1971a8ac5b6f581d3f8f8947d9bfc351c.

          I can import the file successfully and no error in the console.

          Show
          Luyang Tan (Inactive) added a comment - PASSED Manual Testing following the steps in the description. Reproduced on: Tomcat 7.0 + MySQL 5. Portal 6.1.20 EE GA2. I will see the message: An unexpected error occurred while importing your file. I also can see the console error as the attachment shown. Fixed on: Tomcat 7.0 + MySQL 5. Portal 6.1.x EE GIT ID: 3fed8cd4b168409ce9fd7ad347ef73a64696d377. Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: 13dd62e1971a8ac5b6f581d3f8f8947d9bfc351c. I can import the file successfully and no error in the console.

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                2 years, 24 weeks, 1 day ago

                Development

                  Structure Helper Panel