Skip to content
This repository has been archived by the owner on Dec 4, 2020. It is now read-only.

[jaxrs whiteboard] incorrect namespace for JSONRequired #2953

Open
bjhargrave opened this issue Aug 18, 2018 · 2 comments
Open

[jaxrs whiteboard] incorrect namespace for JSONRequired #2953

bjhargrave opened this issue Aug 18, 2018 · 2 comments

Comments

@bjhargrave
Copy link
Member

Original bug ID: BZ#3085
From: @rotty3000
Reported version: R7

@bjhargrave
Copy link
Member Author

Comment author: @rotty3000

Is this a correct definition of the @ Requirement annotation on @ JSONRequired with respect to the filter used?

@ Requirement(namespace = SERVICE_NAMESPACE, //
filter = JSONRequired.FILTER, //
resolution = OPTIONAL, //
effective = EFFECTIVE_ACTIVE)

Where JSONRequired.FILTER is:

public static final String FILTER = "(osgi.jaxrs.media.type="
+ APPLICATION_JSON + ")";

The result is the following:

osgi.service;filter:="(osgi.jaxrs.media.type=application/json)";resolution:=optional;effective:=active

which I'm not sure will ever get any results.

@bjhargrave
Copy link
Member Author

Comment author: @bjhargrave

CPEG call: Need to discuss with Tim Ward.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant