[MGNLUI-5873] CT: Exception when opening item with linked asset in m6 app that worked in m5 app. Created: 07/May/20  Updated: 18/Jun/20  Resolved: 28/May/20

Status: Closed
Project: Magnolia UI
Component/s: None
Affects Version/s: None
Fix Version/s: 6.2.2

Type: Bug Priority: Critical
Reporter: Christopher Zimmermann Assignee: Sang Ngo Huu
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: 0d
Time Spent: 2d 13m
Original Estimate: Not Specified

Attachments: File birds-app.yaml     File birds-ct.yaml    
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Release notes required:
Yes
Date of First Response:
Epic Link: UI framework implementation
Sprint: UI FW 2, UI FW 3
Story Points: 5

 Description   

In M6.2, in an app based on a content type (using !content-type). An Exception occurs when trying to edit a content item, that was previously editable in m5. The content is still editable when using the !content-type-m5 directive. 

Since the app is always based on the same content-type definition, it should work correctly with the same content.

Seems to be related to linked assets 'JcrPathToIdentifierConverter'.

To reproduce bug:

  • Add the attached content type definition to your resources.
  • Add the attached app definition to your resources.
  • Log out and in again.
  • Open the app
  • Add an item and link to an asset.
  • Change the app definiton to use '!content-type' instead of '!content-type-m5'
  • Close and reopen the app.
  • Double click on the item that you created.
  • Get an exception.

 

2020-05-07 16:22:58,264 ERROR agnolia.ui.framework.app.AppInstanceControllerImpl: Sub-app [detail] of app [tours] failed to startinfo.magnolia.jcr.RuntimeRepositoryException: javax.jcr.RepositoryException: invalid identifier: jcr:1044b3b8-30b1-48fe-8078-832b6cef8fb5at info.magnolia.ui.editor.converter.JcrPathToIdentifierConverter.convertToPresentation(JcrPathToIdentifierConverter.java:84) ~[magnolia-ui-framework-jcr-6.2.jar:?]at info.magnolia.ui.editor.converter.JcrPathToIdentifierConverter.convertToPresentation(JcrPathToIdentifierConverter.java:54) ~[magnolia-ui-framework-jcr-6.2.jar:?]

Dev notes:

  • Test against 6.2.1
  • Switch from read-only asset browser (dam-chooser) to 'assets app'
  • Attempt to get rid of the dam-chooser workaround in favor of pre-configured asset-linkfield


 Comments   
Comment by Aleksandr Pchelintcev [ 07/May/20 ]

seems like the wrong converter is yielded for asset property, linked Slack thread where a similar issue is discussed.

Generated at Mon Feb 12 09:30:54 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.