-
Bug
-
Resolution: Fixed
-
Neutral
-
None
-
None
-
None
-
-
Empty show more show less
-
DevX 51
-
3
-
Yes
Description
The AdditionNodeWrapper overrides the getProperties method, which allows the user to iterate over the additionalProperties of the node. But the getProperty method is not overwritten, so when for a property which is stored at additionalProperties (e.g, when we create a link from a page to another page, there is a @link property stored within the referenced page) it can only be accessed through the getProperties method because the getProperty (super class) doesn't look within the additionalProperties attribute.
Steps to reproduce
- Go to Pages-app
- Create a page (lets call it siteOne)
- Create another page (lets call it siteTwo)
- Now open the siteOne page and within the main area create a link component
- Link to the siteTwo page
- Register the endpoint definition (just copy the light module)
- Install the attached module which as a custom Reference Resolver
- Call the endpoint http://localhost:8080/magnoliaAuthor/.rest/delivery/my-endpoint
- Check the getProperty method for @link attribute returns false but the node.getProperties("@link") works
Expected results
The getProperty method should return true when the attribute @link is checked
Development notes
Override the getProperty method so it also checks within the additionalAttributes list
Acceptance criteria
1.
|
Implement | Completed | Canh Nguyen | |
2.
|
Review | Completed | Chuong Doan Huy | |
3.
|
piQA | Completed | Chuong Doan Huy | |
4.
|
QA | Closed | Anh Vu |