[MGNLUI-6442] Exception when editing some properties in JCR app Created: 03/Nov/20  Updated: 08/Jan/21  Resolved: 06/Jan/21

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

Type: Bug Priority: Critical
Reporter: Christopher Zimmermann Assignee: Roman Kovařík
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File jcr-app-exception.png    
Issue Links:
Relates
relates to MGNLUI-6489 JCR-Browser: Renaming of properties f... Closed
relates to MGNLUI-6493 JCR Browser: Changing manually proper... Closed
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
Date of First Response:
Epic Link: Migrate JCR Browser
Sprint: UI FW 19
Story Points: 5

 Description   

Some properties in JCR app cannot be edited.

I consider this critical and close to a blocker because a project could get into a state where they are unable to edit a value that they need to edit. Maybe they could resort to a groovy script.

To reproduce:

  • Open JCR app
  • Change "/server/i18n/authoring/enabled" to "false".
  •  Get exception.
  • Value is not changed. 

 (Works without error in Configuration app.)

Error:
info.magnolia.ui.datasource.jcr.JcrPropertyWrapper cannot be cast to javax.jcr.Node
RpcInvocationException: Unable to invoke method save in com.vaadin.shared.ui.grid.editor.EditorServerRpc caused by InvocationTargetException caused....
 

A more subtle example:
 

  • Change /modules/dam/config/enforceDocumentMimeType to false.
  • No error.
  • Change it back to true.
  • Get exception.

 (Works without error in Configuration app.)

 
Another example. * Switch to "contacts" workspace.

  • Edit the value of this node "/vvangogh/email"
  • Hit the save button.
  • Get exception.

------

However when I edit this node in "config" workspace from "en" to "de" I get no error:

"/server/i18n/system/fallbackLanguage"



 Comments   
Comment by Christian Ringele [ 05/Jan/21 ]

I was able to change any property values, as long not renaming the property's name itself.
In my case only the renaming of properties were not possible: MGNLUI-6489

Comment by Christian Ringele [ 05/Jan/21 ]

While coding on the app, this should also be resolved to have its former & full functionality back: MGNLUI-6493

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