felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard S. Hall (JIRA)" <j...@apache.org>
Subject [jira] Issue Comment Edited: (FELIX-1007) OBR search doesn't take 'categories' into account
Date Fri, 27 Mar 2009 19:12:50 GMT

    [ https://issues.apache.org/jira/browse/FELIX-1007?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12690011#action_12690011
] 

Richard S. Hall edited comment on FELIX-1007 at 3/27/09 12:12 PM:
------------------------------------------------------------------

I am not sure what you mean that filtering resources with a given category doesn't work.

OBR expects the category to be multi-valued. So, the property is an array of Strings. You
should be able to do filter with an array value, just specify the value you want and if it
is in the array, then it will match.

I don't think we want to take the multi-valued category property and turn it into a single
comma-delimited string value. Especially if we end up including set values in the OBR filter
impl.

      was (Author: rickhall):
    I am not sure what you mean that filtering resources with a given category doesn't work.

OBR expects the category to be multi-valued. So, the property is an array of Strings. You
should be able to do filter with an array value, just specify the value you want and if it
is in the array, then it will match.

I don't think we want to take the multi-valued category property and turn it into a single
comma-delimited string value. Especially if we end up include set values in the OBR filter
impl.
  
> OBR search doesn't take 'categories' into account
> -------------------------------------------------
>
>                 Key: FELIX-1007
>                 URL: https://issues.apache.org/jira/browse/FELIX-1007
>             Project: Felix
>          Issue Type: Bug
>          Components: Bundle Repository (OBR)
>            Reporter: Kristian Koehler
>         Attachments: categoriesQueryPatch_2009_03_27.txt
>
>
> Hi
> the RFC-0112 Bundle Repository document says: "The <category> element defines a
category. The purpose is to easy the discovery." and the description of the method org.osgi.servicex.obr.
RepositoryAdmin#discoverResources says "The attributes that can be checked are: [...] category"
but filtering resources with a given category doesn't work. The following filter is "meaningless":
"(category:*>sampleCategory)"
> Kristian

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message