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 (Issue Comment Edited) (JIRA)" <ji...@apache.org> on 2011/12/07 05:31:40 UTC

[jira] [Issue Comment Edited] (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 edited comment on FELIX-3260 at 12/7/11 4:30 AM:
-----------------------------------------------------------------

Perhaps it is an error in your issue description, but in your repo filter example:

(&amp;(package=com.obr.bundle112)(version&gt;=1.2.0.999)(version&lt;3.2.2.bz)(company=moon)(location=uk)

Isn't it missing a parentheses at the end?
                
      was (Author: rickhall):
    Perhaps it is an error in your issue description, but in your repo filter example:

(&amp;(package=com.obr.bundle112)(version&gt;=1.2.0.999)(version&lt;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,
> (&amp;(package=com.obr.bundle112)(version&gt;=1.2.0.999)(version&lt;3.2.2.bz)(company=moon)(location=uk), during the runtime, the filter was translated to:
> (&amp;(package=com.obr.bundle112)(version&gt;=1.2.0.999)(&amp;(version&lt;=3.2.2.bz)            (!(version&lt;=3.2.2.bz)         (company=moon)(location=uk)))
> instead of 
> (&amp;(package=com.obr.bundle112)(version&gt;=1.2.0.999)(&amp;(version&lt;=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