- Addition of a while list of Tika derived mimetypes and declared mimetypes that are deemed to be safe (e.g. for .ai and .pdf).
- Based on Andrei's patch (see CR-546), but with the strictMimetypeCheck configuration and logic moved to TransformerConfig
- Rework of DifferrentMimeTypeTest (was not in the patch) as it had become hard to understand.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@130139 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
- adding retrying transactions for the propertyValueDAO.cleanupUnusedValues() method calls as MS SQL is slow and has problems coping with other threads updating the alf_prop_ tables
- changed the order of the tests to help reduce other tests failing because of these clean up tests
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129495 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
129163 mmuller: Merged RETURN-OF-THE-API (5.2.0) to 5.2.N (5.2.1)
128482 jvonka: REPO-839: Follow-on to fix test fallout
- subtle fix to mimeType guess (ie. application/octet-stream should be last resort, if magic bytes indicate txt/xml and there is no file ext)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@129337 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
129119 adavis: Merged 5.1.N (5.1.2) to 5.2.N (5.2.1)
129115 adavis: Merged 5.0.N (5.0.4) to 5.1.N (5.1.2)
129111 adavis: Merged 5.0.2 (5.0.2.23) to 5.0.N (5.0.4)
120632 amorarasu: MNT-15367: Unable to bulk import filenames with portuguese characters in a linux environment.
- Fixed empty catch blocks and added some comments as per review.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@129317 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
128826 jvonka: MNT-16448 / REPO-928: Fix "Alfresco OOTB install doesn't show preview for .EML files"
- add back Rfc822ToPdf to replace removal of Rfc822ToSwf (removed for BDE-443)
- follow-on attempt to workaround build machine #fail (is this a wider issue for transform testing ... ?)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@129304 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
128822 jvonka: MNT-16448 / REPO-928: Fix "Alfresco OOTB install doesn't show preview for .EML files"
- add back Rfc822ToPdf to replace removal of Rfc822ToSwf (removed for BDE-443)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@129303 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
128569 adavis: 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/HEAD/root@129293 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
128217 adavis: Merged 5.1.N (5.1.2) to 5.2.N (5.2.1)
128209 ahind: Fix for MNT-16387 No results are returned for a CMIS query which contains IS NULL for documents with a NULL property
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@129280 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
128216 adavis: Merged 5.1.N (5.1.2) to 5.2.N (5.2.1)
128192 amorarasu: Merged 5.0.N (5.0.4) to 5.1.N (5.1.2)
128165 amorarasu: Merged V4.2-BUG-FIX (4.2.7) to 5.0.N (5.0.4)
128151 rneamtu: MNT-15855 : Restoring a site or a folder with a locked for offline edit file does not work
- restored associations between working copy and original node after a parent node is deleted
- added unit test for case
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@129279 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
128737 ahind: Merged 5.1.N (5.1.2) to 5.2.N (5.2.1)
128736 ahind: Merged 5.1.0 (5.1.0.9) to 5.1.N (5.1.2)
128469 ahind: MNT-16445: Inconsistent behavior of Site File Type Breakdown dashlet in a sharded environment
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@129277 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
128176 adavis: 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/HEAD/root@129273 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
128168 adavis: MNT-16381 Transformers must validate the content stream mimetype
- Addition of AbstractContentTransformer2.strictMimeTypeCheck(...) to check that the
declared mimetype is the same as the Tika derived mimetype. Controlled by a new alfresco
global property content.transformer.strict.mimetype.check (set to true by default).
- Added the UnsupportedTransformationException to a number of transformation callers as
they should have been handling it already.
- Modified DifferrentMimeTypeTest to test the new strictMimeTypeCheck.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@129272 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
128144 rneamtu: Merged 5.1.N (5.1.2) to 5.2.N (5.2.1)
128140 cpopa: MNT-14026: LDAP sync fails to update attribute's value deletion
- Update to null, the node properties for which the corresponding LDAP attribute is missing.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@129271 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
129115 adavis: Merged 5.0.N (5.0.4) to 5.1.N (5.1.2)
129111 adavis: Merged 5.0.2 (5.0.2.23) to 5.0.N (5.0.4)
120632 amorarasu: MNT-15367: Unable to bulk import filenames with portuguese characters in a linux environment.
- Fixed empty catch blocks and added some comments as per review.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129119 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
129114 adavis: Merged 5.0.N (5.0.4) to 5.1.N (5.1.2)
129110 adavis: Merged 5.0.2 (5.0.2.23) to 5.0.N (5.0.4)
120495 amorarasu: MNT-15367: Unable to bulk import filenames with portuguese characters in a linux environment.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129118 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
129111 adavis: Merged 5.0.2 (5.0.2.23) to 5.0.N (5.0.4)
120632 amorarasu: MNT-15367: Unable to bulk import filenames with portuguese characters in a linux environment.
- Fixed empty catch blocks and added some comments as per review.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.1.N/root@129115 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
128826 jvonka: MNT-16448 / REPO-928: Fix "Alfresco OOTB install doesn't show preview for .EML files"
- add back Rfc822ToPdf to replace removal of Rfc822ToSwf (removed for BDE-443)
- follow-on attempt to workaround build machine #fail (is this a wider issue for transform testing ... ?)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.1.N/root@128831 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261