Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Won't Fix
-
webconsole-4.3.4
-
None
-
None
Description
Currently the org.apache.felix.webconsole.internal.core.ServicesServlet exposes the types information as single value string, not as proper JSON array value (https://github.com/apache/felix/blob/trunk/webconsole/src/main/java/org/apache/felix/webconsole/internal/core/ServicesServlet.java#L297).
An example response for a request to /system/console/services.json currently looks like this
{ "status": "676 services in total", "serviceCount": 676, "data": [ { "id": "301", "types": "[org.apache.sling.models.spi.Injector, org.apache.sling.models.spi.injectorspecific.InjectAnnotationProcessorFactory, org.apache.sling.models.spi.ValuePreparer]", "pid": "org.apache.sling.models.impl.injectors.ValueMapInjector", "ranking": "2000", "bundleId": 129, "bundleName": "Apache Sling Models Implementation", "bundleVersion": "1.4.2", "bundleSymbolicName": "org.apache.sling.models.impl" }, .... ] }
The types value is
"[org.apache.sling.models.spi.Injector, org.apache.sling.models.spi.injectorspecific.InjectAnnotationProcessorFactory, org.apache.sling.models.spi.ValuePreparer]"
although it should rather be
["org.apache.sling.models.spi.Injector", "org.apache.sling.models.spi.injectorspecific.InjectAnnotationProcessorFactory", "org.apache.sling.models.spi.ValuePreparer"]