You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Alex Parvulescu (JIRA)" <ji...@apache.org> on 2016/10/06 15:24:20 UTC

[jira] [Updated] (FELIX-5369) Metatype Service Inventory Printer json export fails on duplicate keys

     [ https://issues.apache.org/jira/browse/FELIX-5369?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alex Parvulescu updated FELIX-5369:
-----------------------------------
    Attachment: FELIX-5369.patch

with [~cziegeler]'s kind help, patch for the above.

> Metatype Service Inventory Printer json export fails on duplicate keys
> ----------------------------------------------------------------------
>
>                 Key: FELIX-5369
>                 URL: https://issues.apache.org/jira/browse/FELIX-5369
>             Project: Felix
>          Issue Type: Bug
>          Components: Web Console
>            Reporter: Alex Parvulescu
>            Priority: Minor
>         Attachments: FELIX-5369.patch
>
>
> The JSON export can fail if there are 2 factories available for a specific bundle.
> {noformat}
> Caused by: org.json.JSONException: Duplicate key "org.apache.sling.featureflags.impl.ConfiguredFeature$Config"
> 	at org.json.JSONObject.putOnce(JSONObject.java:1121)
> 	at org.json.JSONWriter.key(JSONWriter.java:207)
> 	at org.apache.felix.webconsole.plugins.metatype.internal.MetatypeInventoryPrinter$JsonPrinter.group(MetatypeInventoryPrinter.java:377)
> 	... 52 common frames omitted
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)