You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Konrad Windszus (Jira)" <ji...@apache.org> on 2021/07/28 20:55:00 UTC
[jira] [Resolved] (SLING-10679) ObjectModel.toCollection() should
fall back to single item list for every object type
[ https://issues.apache.org/jira/browse/SLING-10679?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Konrad Windszus resolved SLING-10679.
-------------------------------------
Resolution: Fixed
Fixed in https://github.com/apache/sling-org-apache-sling-scripting-sightly-runtime/commit/6bcc04f159290aac39f0f6fa725da0a87f59076b.
> ObjectModel.toCollection() should fall back to single item list for every object type
> -------------------------------------------------------------------------------------
>
> Key: SLING-10679
> URL: https://issues.apache.org/jira/browse/SLING-10679
> Project: Sling
> Issue Type: Improvement
> Components: Scripting
> Affects Versions: Scripting HTL Runtime 1.2.4-1.4.0
> Reporter: Konrad Windszus
> Assignee: Konrad Windszus
> Priority: Major
> Fix For: Scripting HTL Runtime 1.2.6-1.4.0
>
>
> Currently in https://github.com/apache/sling-org-apache-sling-scripting-sightly-runtime/blob/org.apache.sling.scripting.sightly.runtime-1.2.4-1.4.0/src/main/java/org/apache/sling/scripting/sightly/render/ObjectModel.java#L277 only String and Number is converted to a single item list. This fallback should be extended to support every type.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)