[MGNLUI-5906] Actionbar actions disappear in certain conditions Created: 29/May/20  Updated: 30/Jun/20  Resolved: 26/Jun/20

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

Type: Bug Priority: Neutral
Reporter: Evzen Fochr Assignee: Adam Siska
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: 43m
Original Estimate: Not Specified

Attachments: File contacts-v8.yaml    
Issue Links:
Relates
dependency
is depended upon by ABTEST-212 Actions disappear from all tests tab ... Closed
duplicate
duplicates MGNLUI-5891 Root-available actions not recognised... 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: UI framework implementation
Sprint: UI FW 5
Story Points: 2

 Description   

Timebox of 2 SP

Steps to reproduce

  1. use contacts-v8.yaml as hotfix to allow actions on root
  2. open contacts-v8 app (need to be removed from hidden in admincentral)
  3. click on add contact action
  4. close new contact detail without saving (or switch to browser tab)

Expected results

action bar contains actions allowed for root

Actual results

actionbar is empty

Workaround

right click on browser refresh action bar

Development notes

  • nodetype check JcrNodeTypeRule is done even for root node but return false because rootnode JcrNodeWrapper nodetype is null
  • it happens only before selecting any item in app, if you select and unselect item before add and close new contact, it seems that actionbar is not refreshed


 Comments   
Comment by Simon Lutz [ 03/Jun/20 ]

Can be reproduced on travel demo, e.g. personas app that was ported to new framework:

  • Add a persona
  • Close the subapp using the cancel button
  • Notice that 'add persona' is missing in the action bar

Select/unselect an item in the browser will restore the action bar to what is expected.

After adding or editing an item and saving it, the action bar will always display the correct set of actions.

Comment by Adam Siska [ 05/Jun/20 ]

dev note: root node is pushed to valueContext here src/main/java/info/magnolia/ui/contentapp/browser/Browser.java:106

 

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