Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
ManifoldCF 2.7
-
None
Description
There are reports that quotes or spaces in a file name can blow up the Solr indexing of the document and cause it to throw a 500 error.
The code in question (from ModifiedHttpSolrClient) is the following:
String name = content.getName(); if (name == null) { name = ""; } parts.add(new FormBodyPart(name, new InputStreamBody( content.getStream(), contentType, content.getName())));
... where content.getName() would be returning a name with illegal characters. The question is, what does httpclient do with this name, and should it be escaping it in some way?