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
- is duplicated by
-
CONTTAGS-106 New asset name not filled correctly
-
- Closed
-
- relates to
-
MGNLDAM-919 Asset names are different in the Assets app and the asset chooser dialog
-
- Closed
-