You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Simon Wimmesberger (JIRA)" <ji...@apache.org> on 2016/12/01 13:52:58 UTC

[jira] [Updated] (FELIX-5437) Webconsole Ranking in the Http Jetty bundle is always zero

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

Simon Wimmesberger updated FELIX-5437:
--------------------------------------
    Description: 
In the HttpServicePlugin class the method "getServiceReference(long)" returns always null because the filter supplied to the "context.getServiceReferences(String, String)" method 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.

{code}
org.osgi.framework.InvalidSyntaxException: Filter ended abruptly: (service.id=x
{code}

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

I'm using the bundle in equinox.

  was:
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.

{code}
org.osgi.framework.InvalidSyntaxException: Filter ended abruptly: (service.id=x
{code}

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

I'm using the bundle in equinox.


> Webconsole Ranking in the Http Jetty bundle is always zero
> ----------------------------------------------------------
>
>                 Key: FELIX-5437
>                 URL: https://issues.apache.org/jira/browse/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)" method 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.
> {code}
> org.osgi.framework.InvalidSyntaxException: Filter ended abruptly: (service.id=x
> {code}
> To fix the bug is probably only necessary to change the filter from:
> {code}
> "(" + Constants.SERVICE_ID + "=" + String.valueOf(serviceId)
> {code}
> to
> {code}
> "(" + Constants.SERVICE_ID + "=" + String.valueOf(serviceId) + ")"
> {code}
> I'm using the bundle in equinox.



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