chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From f...@apache.org
Subject svn commit: r1717615 - /chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/scripts/CMIS.groovy
Date Wed, 02 Dec 2015 11:43:35 GMT
Author: fmui
Date: Wed Dec  2 11:43:35 2015
New Revision: 1717615

URL: http://svn.apache.org/viewvc?rev=1717615&view=rev
Log:
Workbench: Groovy script: download documents without content

Modified:
    chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/scripts/CMIS.groovy

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/scripts/CMIS.groovy
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/scripts/CMIS.groovy?rev=1717615&r1=1717614&r2=1717615&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/scripts/CMIS.groovy
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/scripts/CMIS.groovy
Wed Dec  2 11:43:35 2015
@@ -204,7 +204,9 @@ class CMIS {
 
         def file = new FileOutputStream(destination)
         def out = new BufferedOutputStream(file)
-        out << doc.contentStream.stream
+        if(doc.contentStream != null && doc.contentStream.stream != null) {
+            out << doc.contentStream.stream
+        }
         out.close()
     }
 



Mime
View raw message