MNT-16381 Transformers must validate the content stream mimetype

- Ensure error when indexer is the caller includes the file name rather than null.
     NodeContentGet now calls transform method with TransformationOptions parameter and the original
     transformer method was deprecated as it should be been when this extra parameter was added.
   - Set the strictMimeTypeCheck and retryTransformOnDifferentMimeType properties on dynamically created
     pipeline and fail over transformers from global properties as is don for static transformers.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@128569 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Alan Davis
2016-07-04 16:37:13 +00:00
parent e39e468fff
commit 54d70245c4

View File

@@ -211,7 +211,7 @@ public class NodeContentGet extends StreamContent
try
{
long start = System.currentTimeMillis();
transformer.transform(reader, writer);
transformer.transform(reader, writer, options);
long transformDuration = System.currentTimeMillis() - start;
res.setHeader(TRANSFORM_DURATION_HEADER, String.valueOf(transformDuration));
}