[MGNLUI-4422] RichTextField ReadOnly exception when viewing Show Version Created: 24/Apr/18  Updated: 24/Apr/18  Resolved: 24/Apr/18

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

Type: Bug Priority: Neutral
Reporter: Matjaz Trcek Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File Screen Shot 2018-04-24 at 1.57.29 PM.png    
Issue Links:
duplicate
duplicates MGNLUI-4322 Show version of empty RichTextField v... 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

 Description   

MagnoliaRichTextField has unexpected value change from the client side resulting in the readOnly exception on the server side. 

Repro step: 

Create several version in tours app of a tour. Publish them. 

Then show one of the previous versions. 

com.vaadin.v7.data.Property$ReadOnlyException: nullcom.vaadin.v7.data.Property$ReadOnlyException: null at com.vaadin.v7.ui.AbstractField.setValue(AbstractField.java:470) ~[vaadin-compatibility-server-8.1.5.jar:8.1.5] at com.vaadin.v7.ui.AbstractField.setValue(AbstractField.java:445) ~[vaadin-compatibility-server-8.1.5.jar:8.1.5] at info.magnolia.ui.vaadin.richtext.MagnoliaRichTextField.changeVariables(MagnoliaRichTextField.java:84) ~[magnolia-ui-vaadin-common-widgets-5.6.3-SNAPSHOT.jar:5.6.3-SNAPSHOT] at com.vaadin.server.communication.ServerRpcHandler.changeVariables(ServerRpcHandler.java:626) ~[vaadin-server-8.1.5.jar:8.1.5] at com.vaadin.server.communication.ServerRpcHandler.handleInvocation(ServerRpcHandler.java:471) [vaadin-server-8.1.5.jar:8.1.5] at com.vaadin.server.communication.ServerRpcHandler.handleInvocations(ServerRpcHandler.java:414) [vaadin-server-8.1.5.jar:8.1.5] at com.vaadin.server.communication.ServerRpcHandler.handleRpc(ServerRpcHandler.java:274) [vaadin-server-8.1.5.jar:8.1.5] at com.vaadin.server.communication.UidlRequestHandler.synchronizedHandleRequest(UidlRequestHandler.java:90) [vaadin-server-8.1.5.jar:8.1.5] at com.vaadin.server.SynchronizedRequestHandler.handleRequest(SynchronizedRequestHandler.java:41) [vaadin-server-8.1.5.jar:8.1.5] at com.vaadin.server.VaadinService.handleRequest(VaadinService.java:1568) [vaadin-server-8.1.5.jar:8.1.5] at com.vaadin.server.VaadinServlet.service(VaadinServlet.java:381) [vaadin-server-8.1.5.jar:8.1.5] at info.magnolia.ui.admincentral.AdmincentralVaadinServlet.service(AdmincentralVaadinServlet.java:141) [magnolia-ui-admincentral-5.6.3-SNAPSHOT.jar:?] at javax.servlet.http.HttpServlet.service(HttpServlet.java:742) [servlet-api.jar:?]

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