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

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

      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)
      

        Acceptance criteria

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

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD

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