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

minimize tests.policy

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.1, 6.0
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      This is overly permissive:

        // Basic permissions needed for Lucene to work:
        permission java.util.PropertyPermission "*", "read,write";
        permission java.lang.reflect.ReflectPermission "*";
        permission java.lang.RuntimePermission "*";
      

      Because of various BS like unsafe-hacks (only mmap seems to do it properly), this means effectively you cannot use lucene with SM today, without allowing SM itself to just be disabled with reflection.

      This is easy to fix.

        Attachments

        1. LUCENE-6238.patch
          30 kB
          Dawid Weiss
        2. LUCENE-6238.patch
          18 kB
          Robert Muir
        3. LUCENE-6238.patch
          16 kB
          Dawid Weiss
        4. LUCENE-6238.patch
          19 kB
          Robert Muir
        5. LUCENE-6238.patch
          19 kB
          Robert Muir
        6. LUCENE-6238-mmap.patch
          4 kB
          Uwe Schindler

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              rcmuir Robert Muir
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: