Simon Wimmesberger created FELIX-5437:

             Summary: Webconsole Ranking in the Http Jetty bundle is always zero
                 Key: FELIX-5437
             Project: Felix
          Issue Type: Bug
          Components: HTTP Service
    Affects Versions: http.jetty-3.4.0
            Reporter: Simon Wimmesberger

In the HttpServicePlugin class the method "getServiceReference(long)" returns 
always null because the filter supplied to the 
"context.getServiceReferences(String, String)" is invalid. The exception thrown 
is catched and ignored therefore null is returned. In the Webconsole every 
service gets the rank "0" as a consequence.

org.osgi.framework.InvalidSyntaxException: Filter ended abruptly: (

To fix the bug is probably only necessary to change the filter from:
"(" + Constants.SERVICE_ID + "=" + String.valueOf(serviceId)
"(" + Constants.SERVICE_ID + "=" + String.valueOf(serviceId) + ")"

I'm using the bundle in equinox.

This message was sent by Atlassian JIRA

Reply via email to