You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Richard S. Hall (Commented) (JIRA)" <ji...@apache.org> on 2011/12/07 05:27:40 UTC
[jira] [Commented] (FELIX-3260) Felix bundle repository translates
filter incorrectly if the filter contains <
[ https://issues.apache.org/jira/browse/FELIX-3260?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13164126#comment-13164126 ]
Richard S. Hall commented on FELIX-3260:
----------------------------------------
Perhaps it is an error in your issue description, but in your repo filter example:
(&(package=com.obr.bundle112)(version>=1.2.0.999)(version<3.2.2.bz)(company=moon)(location=uk)
Isn't it missing an parentheses at the end?
> Felix bundle repository translates filter incorrectly if the filter contains <
> ------------------------------------------------------------------------------
>
> Key: FELIX-3260
> URL: https://issues.apache.org/jira/browse/FELIX-3260
> Project: Felix
> Issue Type: Bug
> Components: Bundle Repository (OBR)
> Affects Versions: bundlerepository-1.6.4
> Reporter: Emily Jiang
> Priority: Minor
>
> When I specify the follow filter in my repository.xml,
> (&(package=com.obr.bundle112)(version>=1.2.0.999)(version<3.2.2.bz)(company=moon)(location=uk), during the runtime, the filter was translated to:
> (&(package=com.obr.bundle112)(version>=1.2.0.999)(&(version<=3.2.2.bz) (!(version<=3.2.2.bz) (company=moon)(location=uk)))
> instead of
> (&(package=com.obr.bundle112)(version>=1.2.0.999)(&(version<=3.2.2.bz) (!(version=3.2.2.bz)) (company=moon)(location=uk))
> As you can see, the closing bracket for (!(version=3.2.2.bz) did not close in the right place. It closes at the end.
> This leads to LDAP exception.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira