We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e9a2e6 commit 143fa6fCopy full SHA for 143fa6f
solr/core/src/java/org/apache/solr/util/FileTypeMagicUtil.java
@@ -142,6 +142,8 @@ public static boolean isFileForbiddenInConfigset(InputStream fileStream) {
142
* @return true if file is among the forbidden mime-types
143
*/
144
public static boolean isFileForbiddenInConfigset(byte[] bytes) {
145
+ if (bytes == null || bytes.length == 0)
146
+ return false; // A ZK znode may be a folder with no content
147
return isFileForbiddenInConfigset(new ByteArrayInputStream(bytes));
148
}
149
0 commit comments