[CONTEDIT-311] Unable to open content editor (stories) after block picker was used Created: 13/Nov/20  Updated: 18/Feb/21  Resolved: 22/Jan/21

Status: Closed
Project: Content Editor
Component/s: None
Affects Version/s: 1.3.4
Fix Version/s: 1.3.5

Type: Bug Priority: Critical
Reporter: Monica Damborenea Assignee: Lam Nguyen Bao
Resolution: Fixed Votes: 2
Labels: maintenance
Remaining Estimate: 0d
Time Spent: 1d 22m
Original Estimate: Not Specified

Attachments: HTML File error-stories     PNG File stories.png    
Issue Links:
Problem/Incident
causality
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:
Sprint: Maintenance 41
Story Points: 1

 Description   

When you create a story, while editing choose the BlockPickerDialog, save the story, and afterwards if you try to open it up again you get an error and are unable to open the story.

If you refresh the page, the error is gone.

Steps to reproduce

  • open stories app, create a new story
  • Fill title/ lead text
  • Add block, choose "others" to display BlockPickerDialog

  • Save
  • Close the story (not the stories app)
  • Try to open again
  • You get an error and it is not possible to open the story again unless you close the app or refresh the website. Find the full error attached error-stories
2020-11-13 15:35:20,131 ERROR fo.magnolia.ui.contentapp.browser.BrowserPresenter: An error occurred while executing action [editStory]

info.magnolia.ui.api.action.ActionExecutionException: Could not execute EditItemAction: 
 at info.magnolia.ui.contentapp.detail.action.EditItemAction.execute(EditItemAction.java:84) ~
...
Caused by: java.lang.ClassCastException: info.magnolia.ui.vaadin.integration.jcr.JcrNodeAdapter cannot be cast to com.vaadin.v7.data.util.BeanItem
 ... 130 more

Expected results

You should be able to re-open the story after it is saved 

Actual results

 You get an error when you try to re-open the story

Workaround

  • Refresh the page (through browser, by closing/opening app or log-out/in)

Generated at Mon Feb 12 00:19:10 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.