[MGNLUI-6389] pageLinkField doesn't open website workspace Created: 05/Nov/20  Updated: 12/Sep/22  Resolved: 23/Aug/22

Status: Closed
Project: Magnolia UI
Component/s: None
Affects Version/s: 6.2.3
Fix Version/s: 6.3.0, 6.2.23

Type: Bug Priority: Neutral
Reporter: Viet Nguyen Assignee: Adam Siska
Resolution: Fixed Votes: 1
Labels: maintenance
Σ Remaining Estimate: Not Specified Remaining Estimate: Not Specified
Σ Time Spent: 3h Time Spent: 3h
Σ Original Estimate: Not Specified Original Estimate: Not Specified

Attachments: XML File config.modules.personalization-traits.traits.testLinkField.xml     PNG File image-2020-11-05-03-51-22-124.png    
Issue Links:
causality
duplicate
duplicates MGNLUI-6655 Error when opening nested chooser dialog Closed
Sub-Tasks:
Key
Summary
Type
Status
Assignee
MGNLUI-7429 Provide PR Sub-task Completed Adam Siska  
MGNLUI-7430 Code review Sub-task Completed Roman Kovařík  
MGNLUI-7431 Preint QA Sub-task Completed Quach Hao Thien  
MGNLUI-7432 Integrate Sub-task Completed Adam Siska  
MGNLUI-7433 QA Sub-task Completed Roman Kovařík  
MGNLUI-7434 Backport to 6.2 Sub-task Completed Adam Siska  
MGNLUI-7441 Check repro-steps from MGNLUI-6655 (a... Sub-task Completed Adam Siska  
MGNLUI-7450 Unit test Sub-task Completed Roman Kovařík  
Template:
Acceptance criteria:
Empty
Task DoD:
[X]* Doc/release notes changes? Comment present?
[X]* Downstream builds green?
[X]* Solution information and context easily available?
[X]* Tests
[X]* 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: Maintenance of vaadin8 framework
Sprint: Nucleus 17
Story Points: 3
Team: Nucleus

 Description   

Type pageLinkField does not work as expected.
To Reproduce:

  1. Go to https://demoauthor.magnolia-cms.com/
  2. Select Configuration -> personalization-traits -> traits
  3. Import the following file config.modules.personalization-traits.traits.testLinkField.xml
  4. This configuration will add a new trait with the ruleField=($type: pageLinkField)
  5. Open Segments app and add a new segment
  6. In Traits tab add the new "Page Link" trait
  7. Click "Select new..."
  8. Dialog mapped to Pages app should appear, but it is mapped to Segments app instead



 Comments   
Comment by Adam Siska [ 05/Nov/20 ]

DEV note:
Here: info.magnolia.ui.field.factory.LinkFieldFactory#LinkFieldFactory()
chooserController with own datasource definition is injected and used eventually instead of datasource from field

Comment by Viet Nguyen [ 05/Nov/20 ]

Work around: use linkField instead of pageLinkField and set its chooser > workbenchChooser > appName to "pages-app" for website workspace chooser.

Comment by Roman Kovařík [ 19/May/22 ]

Discovery:

LinkFieldFactory might inject ChooserController from a parent component (with a different datasource).

The solution is to create a new instance instead of injection.

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