You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "David Bosschaert (JIRA)" <ji...@apache.org> on 2019/01/23 15:08:00 UTC
[jira] [Updated] (SLING-8233) Add unit test for reading feature
with "complete": true
[ https://issues.apache.org/jira/browse/SLING-8233?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
David Bosschaert updated SLING-8233:
------------------------------------
Summary: Add unit test for reading feature with "complete": true (was: Reading feature with "complete": true causes an exception)
> Add unit test for reading feature with "complete": true
> -------------------------------------------------------
>
> Key: SLING-8233
> URL: https://issues.apache.org/jira/browse/SLING-8233
> Project: Sling
> Issue Type: Bug
> Components: Feature Model
> Affects Versions: Feature Model IO 0.8.0
> Reporter: David Bosschaert
> Assignee: David Bosschaert
> Priority: Major
> Fix For: Feature Model 0.8.2
>
>
> It causes the following exception
> {code}
> Caused by: java.io.IOException: Key Extension complete is not one of the allowed types [interface java.util.List] : class java.lang.Boolean
> at org.apache.sling.feature.io.json.JSONReaderBase.checkType (JSONReaderBase.java:495)
> at org.apache.sling.feature.io.json.JSONReaderBase.readArtifacts (JSONReaderBase.java:221)
> at org.apache.sling.feature.io.json.JSONReaderBase.readExtensions (JSONReaderBase.java:388)
> at org.apache.sling.feature.io.json.FeatureJSONReader.readFeature (FeatureJSONReader.java:105)
> at org.apache.sling.feature.io.json.FeatureJSONReader.read (FeatureJSONReader.java:49)
> {code}
> The final flag is likely affected too.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)