[ https://issues.apache.org/jira/browse/FELIX-1007?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12693668#action_12693668 ]
Kristian Koehler commented on FELIX-1007: ----------------------------------------- Ok. Now we are both confused ;-) Sorry. I tried to find resources within the BundleRepository with a specific category value calling the RepositoryAdmin#discoverResources Method. This method takes a filter String. within this method all resources of the OBR are checked via the Filter#match Method of the Filter Implementation. This is done via a Dictionary Object which is passed to the method. This dictionary is filled with --- 8< --- Map properties = resources[resIdx].getProperties(); dict.setSourceMap(properties); --- 8< --- ... and these properties, if i'm right, don't include the category value. So my attempt to call RepositoryAdmin#discoverResources("(category:*>sampleCategory)") 'fails'. Are I'm doing something wrong here? Is there a better way to do this? Kristian > 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.