Andrzej Bialecki created SOLR-15858:
---------------------------------------
Summary: ConfigSetsHandler requires DIR entries in the uploaded
ZIPs
Key: SOLR-15858
URL: https://issues.apache.org/jira/browse/SOLR-15858
Project: Solr
Issue Type: Bug
Security Level: Public (Default Security Level. Issues are Public)
Components: configset-api
Affects Versions: 8.11.1
Reporter: Andrzej Bialecki
If you try uploading a configset zip that contains resources in sub-folders -
but doesn't contain explicit DIR entries in the zip file - the upload will fail
with `NoNodeException`.
This is caused by `ConfigSetsHandler.createZkNodeIfNotExistsAndSetData` which
assumes the entry path doesn't contain sub-path elements. If the corresponding
DIR entries are present (and they occur earlier in the zip than their child
resource entries!) the handler will work properly because it recognizes DIR
entries and creates ZK paths as needed.
The fix would be to always check for the presence of `/` characters in the
entry name and make sure the ZK path already exists.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]