felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Parvulescu (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (FELIX-5369) Metatype Service Inventory Printer json export fails on duplicate keys
Date Thu, 06 Oct 2016 15:24:20 GMT

     [ 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)

Mime
View raw message