Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-7232

InetAddressPoint.newPrefixQuery is not correct when prefixLength is not a multiple of 8

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 6.0
    • Fix Version/s: 6.1, 6.0.1, master (7.0)
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      The reason is that it applies masks on individual bytes in the wrong order: it goes from the lower bits to the upper bits instead of the opposite.

        Activity

        Hide
        jpountz Adrien Grand added a comment -

        Here is a patch.

        Show
        jpountz Adrien Grand added a comment - Here is a patch.
        Hide
        rcmuir Robert Muir added a comment -

        very sandy bug in the code, thank you!

        Show
        rcmuir Robert Muir added a comment - very sandy bug in the code, thank you!
        Hide
        thetaphi Uwe Schindler added a comment -

        Oh oh Thanks for fix...

        Show
        thetaphi Uwe Schindler added a comment - Oh oh Thanks for fix...
        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit 2243e5087b57a4ab812590f56d1daecb38a51578 in lucene-solr's branch refs/heads/branch_6_0 from Adrien Grand
        [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=2243e50 ]

        LUCENE-7232: Fixed InetAddressPoint.newPrefixQuery.

        Show
        jira-bot ASF subversion and git services added a comment - Commit 2243e5087b57a4ab812590f56d1daecb38a51578 in lucene-solr's branch refs/heads/branch_6_0 from Adrien Grand [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=2243e50 ] LUCENE-7232 : Fixed InetAddressPoint.newPrefixQuery.
        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit 22d633509a1aea05b2c3a76aaa5c1de030bb75b7 in lucene-solr's branch refs/heads/branch_6x from Adrien Grand
        [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=22d6335 ]

        LUCENE-7232: Fixed InetAddressPoint.newPrefixQuery.

        Show
        jira-bot ASF subversion and git services added a comment - Commit 22d633509a1aea05b2c3a76aaa5c1de030bb75b7 in lucene-solr's branch refs/heads/branch_6x from Adrien Grand [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=22d6335 ] LUCENE-7232 : Fixed InetAddressPoint.newPrefixQuery.
        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit 2724b99b5c40ebe0bac1ebfe76bc96383fe769fd in lucene-solr's branch refs/heads/master from Adrien Grand
        [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=2724b99 ]

        LUCENE-7232: Fixed InetAddressPoint.newPrefixQuery.

        Show
        jira-bot ASF subversion and git services added a comment - Commit 2724b99b5c40ebe0bac1ebfe76bc96383fe769fd in lucene-solr's branch refs/heads/master from Adrien Grand [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=2724b99 ] LUCENE-7232 : Fixed InetAddressPoint.newPrefixQuery.
        Hide
        hossman Hoss Man added a comment -

        Manually correcting fixVersion per Step #S5 of LUCENE-7271

        Show
        hossman Hoss Man added a comment - Manually correcting fixVersion per Step #S5 of LUCENE-7271
        Hide
        steve_rowe Steve Rowe added a comment -

        Bulk close issues included in the 6.0.1 release.

        Show
        steve_rowe Steve Rowe added a comment - Bulk close issues included in the 6.0.1 release.

          People

          • Assignee:
            jpountz Adrien Grand
            Reporter:
            jpountz Adrien Grand
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development