[ 
https://issues.apache.org/jira/browse/LUCENE-8804?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16844185#comment-16844185
 ] 

ASF subversion and git services commented on LUCENE-8804:
---------------------------------------------------------

Commit 01d70ea4ca142f9302d7934cef52f7498b0dc007 in lucene-solr's branch 
refs/heads/branch_8x from Adrien Grand
[ https://gitbox.apache.org/repos/asf?p=lucene-solr.git;h=01d70ea ]

LUCENE-8804: Forbid calls to putAttribute on frozen FieldType instances.


> FieldType attribute map should not be modifiable after freeze
> -------------------------------------------------------------
>
>                 Key: LUCENE-8804
>                 URL: https://issues.apache.org/jira/browse/LUCENE-8804
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: core/index
>    Affects Versions: 8.0
>            Reporter: Vamshi Vijay Nakkirtha
>            Priority: Minor
>              Labels: features, patch
>         Attachments: LUCENE-8804.01.patch, LUCENE-8804.patch
>
>
> 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.
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to