Uploaded image for project: 'Magnolia DAM Module'
  1. Magnolia DAM Module
  2. MGNLDAM-875

Upload assets create untitled nodes regardless of provided asset name

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Medium
    • None
    • 3.0.3
    • None
    • None
    • MGNL dx-core bundle: magnolia-dx-core-demo-webapp-6.2.3-20200904.094337-21-tomcat-bundle

    Description

      Steps to reproduce

      1. Open "Assets app"
      2. Click on "Upload asset"
      3. Upload file (e.g., "image.png")
      4. Click "Commit"

      1. Open "Assets app"
      2. Click on "Upload asset"
      3. Upload file (e.g., "image.png")
      4. Set Asset name to "test image"
      5. Click "Commit"

      Expected results

      New asset with

      • nodeName: "image.png"
      • name: "image"

      New asset with

      • nodeName: "image.png"
      • name: "test image"

      Actual results

      New asset with

      • nodeName: "untitled"
      • name: "untitled"

      New asset with

      • nodeName: "untitled"
      • name: "test image"

      Workaround

      Rename item

      Other notes

      • Issue is reproducible on Magnolia dx-core budle:
        magnolia-dx-core-demo-webapp-6.2.3-20200904.094337-21-tomcat-bundle
      • CE bundle isn't affected

      Development notes

      • there is a save action on DX triggered by the tag field/tag manager
      • we might consider introducing setTags() method to tag manager which doesn't save the session
        • this is probably a bug in tags behavior - tags assume you want to save immediately, which is not the case, investigate on that front.
      • or should JcrSessionWrapper ignore session saving before #commit?
      • or reevaluate why the asset commit action has to be so complicated (e.g. checking if item is new, a lot of conditions with different behaviours)

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                Unassigned Unassigned
                mhaderka Martin Haderka
                Votes:
                0 Vote for this issue
                Watchers:
                1 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 - Not Specified
                      Not Specified
                      Logged:
                      Time Spent - 10m
                      10m