[MAGNOLIA-8413] Definition app problems ignore inaccesible setters Created: 13/May/22  Updated: 20/Jul/22  Resolved: 30/May/22

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

Type: Bug Priority: Neutral
Reporter: Roman Kovařík Assignee: Quach Hao Thien
Resolution: Fixed Votes: 0
Labels: VN-Maintenance
Σ Remaining Estimate: Not Specified Remaining Estimate: Not Specified
Σ Time Spent: 1d 3h Time Spent: 1d 3h
Σ Original Estimate: Not Specified Original Estimate: Not Specified

Issue Links:
Cloners
clones MAGNOLIA-8393 Definition app problems are based on ... Closed
Sub-Tasks:
Key
Summary
Type
Status
Assignee
MAGNOLIA-8428 Provide PR (integrated to Master) Sub-task Completed Quach Hao Thien  
MAGNOLIA-8429 Review and preintqa Sub-task Completed Roman Kovařík  
MAGNOLIA-8430 QA on cloud instance Sub-task Closed Antonín Juran  
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
Epic Link: Nucleus Quality Maintenance
Sprint: Nucleus 11
Story Points: 2
Team: Nucleus

 Description   

Steps to reproduce

  1. Reduce visibility of ConfiguredFieldDefinition#setFactoryClass from public to protected
  2. Use this field config in a dialog or an app:
    aField:
      $type: comboBoxField
      factoryClass: info.magnolia.ui.field.factory.LinkFieldFactory
      

Expected results:

factoryClass ** reported as missing property

Actual results:

The problem does not reach the definition app unless the getter is protected as well, see Map2BeanTransformer.java.



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

Discovery:

the list of property we get from PropertyUtil should be filtered by existence/accessibility of the write method.

Generated at Mon Feb 12 04:32:32 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.