MNT-16381 Transformers must validate the content stream mimetype

- Tika has problems identifying eps - it guesses ps, so allow this through.
   - Fix lost line in DifferrentMimeTypeTest

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@128176 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Alan Davis
2016-06-16 15:23:07 +00:00
parent 60a8b718bc
commit bf346dba70
2 changed files with 10 additions and 4 deletions

View File

@@ -181,6 +181,7 @@ public class DifferrentMimeTypeTest extends TestCase
}
// Try to transform file with accurate MIME type
contentReader = contentReader.getReader();
contentReader.setMimetype(actualSourceMimetype);
actualTransformer.transform(contentReader, outputWriter, options);
}