[
https://issues.apache.org/jira/browse/GEODE-2975?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16025385#comment-16025385
]
ASF GitHub Bot commented on GEODE-2975:
---------------------------------------
Github user boglesby commented on the issue:
https://github.com/apache/geode/pull/538
This looks good for these xmls:
```
<lucene:fieldxx name="Agency"/>
```
```
<lucene:field namexx="Agency"/>
```
it still throws a ClassCastException for this, though:
```
<lucene:indexxx name="index">
```
I'm not sure if thats a problem or if its ok.
> Attributes are not validated in lucene xml configuration
> --------------------------------------------------------
>
> Key: GEODE-2975
> URL: https://issues.apache.org/jira/browse/GEODE-2975
> Project: Geode
> Issue Type: Bug
> Components: docs, lucene
> Reporter: Barry Oglesby
> Fix For: 1.2.0
>
>
> No exception is thrown for a lucene xml configuration missing a required
> attribute.
> No exception is thrown for a lucene xml configuration including an unknown
> attribute.
> If a {{lucene:field}} element is defined like below, no exception is thrown
> for the invalid attribute called {{namexx}} and no exceptio is thrown because
> the required attribute called {{name}} is not included.
> {noformat}
> <lucene:field namexx="Agency"/>
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)