Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-5762

WebConsole Services Servlet: Expose service types as proper JSON array

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: webconsole-4.3.4
    • Fix Version/s: None
    • Component/s: Web Console
    • Labels:
      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"]
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              kwin Konrad Windszus
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: