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

FieldType attribute map should not be modifiable after freeze

    XMLWordPrintableJSON

    Details

    • Lucene Fields:
      New

      Description

      Today FieldType attribute map can be modifiable even after freeze. For all other properties of FieldType, we do "checkIfFrozen()" before making the update to the property but for attribute map, we does not seem to make such check. 

       

      https://github.com/apache/lucene-solr/blob/releases/lucene-solr/8.0.0/lucene/core/src/java/org/apache/lucene/document/FieldType.java#L363

      we may need to add check at the beginning of the function similar to other properties setters.

       

        Attachments

        1. LUCENE-8804.01.patch
          3 kB
          Vamshi Vijay Nakkirtha
        2. LUCENE-8804.patch
          3 kB
          Vamshi Vijay Nakkirtha

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              vamshi Vamshi Vijay Nakkirtha
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: