Details
-
Improvement
-
Resolution: Fixed
-
Neutral
-
6.2.29
-
None
-
None
-
-
Empty show more show less
-
Yes
-
Nucleus 38
-
2
-
Yes
Description
When the ContentMap class is used for retrieve a REFERENCE property as jcr:predecessor it will fail because the get method won't consider it as multivalue.
It would be better to include at the else if (type == PropertyType.REFERENCE) statement another check like  "if (prop.isMultiple())" so for those cases like jcr:predecessors, it won't thrown error as:
jcr:predecessors is a multi-valued property, so it's values can only be retrieved as an array
The groovy script to simulate the bug: scripts.getMultiReferencesProperty.xml
Steps:
- Open Groovy app and import the script
- Open and run the script
Actual result:
logs:
WARN  info.magnolia.jcr.util.ContentMap         : Failed to retrieve jcr:predecessors on node /test with property /test/jcr:predecessors is a multi-valued property, so it's values can only be retrieved as an array
Expected result:
support multivalue for jcr:predecessor propertives on ContentMap
Checklists
Attachments
Issue Links
- is duplicated by
-
MGNLEE-761 ContentMap#get method doesn't consider the PropertyType.REFERENCE type as array
-
- Closed
-
-
MGNLEE-766 ContentMap#get method doesn't consider the PropertyType.REFERENCE type as array
-
- Closed
-
-
MGNLEE-767 ContentMap#get method doesn't consider the PropertyType.REFERENCE type as array
-
- Closed
-
-
MGNLEE-775 ContentMap#get method doesn't consider the PropertyType.REFERENCE type as array
-
- Closed
-
1.
|
Implementation |
|
Completed | Quach Hao Thien |
2.
|
Review |
|
Completed | Adam Siska |
3.
|
Pre-Integration QA |
|
Closed | AntonĂn Juran |
4.
|
QA |
|
Completed | Adam Siska |