Details
-
Bug
-
Resolution: Fixed
-
Neutral
-
None
-
None
-
None
-
-
Empty show more show less
-
UI FW 19, UI FW 20, UI FW 21
-
2
Description
Scenario:
Due to MGNLUI-5840, asset references have been stored without the prefix jcr:. When opening their corresponding dialog, which is declared with the old syntax, these references are throwing an error like the following:
java.lang.IllegalArgumentException: 507b0635-d1b1-49ab-99d4-451751e0fd08 is not a valid ItemKey
Removing targetWorkspace property from the definition makes it work ok but, unfortunately, preview is not shown as reported in MGNLUI-5979.
Steps to reproduce (Magnolia 6.2.3)
- Create a component whose dialog contain following field:
- name: cinemagraph class: info.magnolia.ui.form.field.definition.LinkFieldDefinition required: true targetWorkspace: dam appName: assets identifierToPathConverter: class: info.magnolia.ui.form.field.converter.BaseIdentifierToPathConverter contentPreviewDefinition: contentPreviewClass: info.magnolia.dam.app.ui.field.DamFilePreviewComponent
- Store any link by using the dialog (Note the preview is shown in the dialog) and remove the jcr: prefix from the reference through JCR app (Forcing
MGNLUI-5840) - Open the component dialog again and see the error.
- Remove targetWorkspace property from the definition and open the component dialog again. It works ok and no error is thrown now but preview is not shown in the dialog
Expected results
There should be compatibility for assets that were stored without jcr: prefix.
Checklists
Attachments
Issue Links
- is caused by
-
MGNLUI-5840 Compatibility: asset type in custom content app is saved without `jcr:` prefix
-
- Closed
-
- is cloned by
-
MGNLDAM-927 CLONE - Provide compatibility to asset links
-
- Closed
-
-
MGNLUI-6517 Provide PreviewComponent for a binary node
-
- Open
-
- relates to
-
MGNLUI-5979 in 6.2.2 There is no preview for linkFields linking to assets as there was in M5UI.
-
- Closed
-
-
MGNLUI-6527 Image embedded with RTE in the old pages app "broken" when opening component in new pages app
-
- Closed
-