Uploaded image for project: 'Magnolia Resources Module'
  1. Magnolia Resources Module
  2. MGNLRES-206

Uploading a file under folders not yet existing fails with NPE in FileTransformer

    XMLWordPrintable

Details

    • Bug
    • Resolution: Obsolete
    • Major
    • None
    • 2.4.2
    • None
    • None

    Description

      Uploading a file under a not yet existing folder path fails with NPE in FileTransformer
      JCR session holding the path (transient, not yet saved) is "lost" upon uploading the file which result in node being null (a new session is used which isn’t aware of the path to the new resource)

      Java.lang.NullPointerException
      at info.magnolia.ui.form.field.transformer.item.FileTransformer.getOrCreateFileItem(FileTransformer.java:147)
      

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                fgrilli Federico Grilli
                fgrilli Federico Grilli
                Nucleus
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD

                    Time Tracking

                      Estimated:
                      Original Estimate - Not Specified
                      Not Specified
                      Remaining:
                      Remaining Estimate - 0d
                      0d
                      Logged:
                      Time Spent - 0.75d
                      0.75d