[ https://issues.apache.org/jira/browse/SOLR-9411?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Steve Rowe updated SOLR-9411: ----------------------------- Attachment: SOLR-9411-part2.patch Slight modification to an existing test in TestBulkSchemaAPI, since the error message for invalid "add-field" changed with the switch to IndexSchema.newField(). Also modified CHANGES.txt entry. Tests and precommit pass with this patch. Committing shortly. > Better validation of fields and dynamic fields for Schema API > ------------------------------------------------------------- > > Key: SOLR-9411 > URL: https://issues.apache.org/jira/browse/SOLR-9411 > Project: Solr > Issue Type: Improvement > Security Level: Public(Default Security Level. Issues are Public) > Components: Schema and Analysis > Reporter: Jan Høydahl > Assignee: Steve Rowe > Fix For: 6.3, master (7.0) > > Attachments: SOLR-9411-part2.patch, SOLR-9411-part2.patch, > SOLR-9411.patch, SOLR-9411.patch > > > Schema REST API needs better validation before doing changes. > * It should not be allowed to delete uniqueKey (also handled in SOLR-9349) > * When adding a dynamic field the API should test that it begins or ends with > {{*}}. Today the change succeeds, but you get errors later > These are two known cases. We should harden validation across the board for > all known schema requirements. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org