Merged HEAD-BUG-FIX (4.3/Cloud) to HEAD (4.3/Cloud)

64097: Merged V4.2-BUG-FIX (4.2.2) to HEAD-BUG-FIX (4.3.0.BF)
      63991: Merged DEV to V4.2-BUG-FIX (4.2.2)
         63740: ALF-20389: CMIS webservice gives cast problem
           - Now, only ContentStreamImpl extensions will be checked for mimetype. Also, unit test was added.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@64354 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Alan Davis
2014-03-14 17:42:24 +00:00
parent 891a3ef8e4
commit 3214f17fe2
2 changed files with 34 additions and 1 deletions

View File

@@ -54,7 +54,7 @@ public class AlfrescoCmisStreamInterceptor implements MethodInterceptor
Object[] arguments = mi.getArguments();
for (int i = 0; i < parameterTypes.length; i++)
{
if (parameterTypes[i].isAssignableFrom(ContentStreamImpl.class))
if (arguments[i] instanceof ContentStreamImpl)
{
ContentStreamImpl contentStream = (ContentStreamImpl) arguments[i];
if (contentStream != null)