Return-Path: Delivered-To: apmail-poi-commits-archive@minotaur.apache.org Received: (qmail 50584 invoked from network); 26 May 2010 13:57:17 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 26 May 2010 13:57:17 -0000 Received: (qmail 57463 invoked by uid 500); 26 May 2010 13:57:17 -0000 Delivered-To: apmail-poi-commits-archive@poi.apache.org Received: (qmail 57422 invoked by uid 500); 26 May 2010 13:57:16 -0000 Mailing-List: contact commits-help@poi.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@poi.apache.org Delivered-To: mailing list commits@poi.apache.org Received: (qmail 57415 invoked by uid 99); 26 May 2010 13:57:16 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 May 2010 13:57:16 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 May 2010 13:57:14 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id F25BB23889DA; Wed, 26 May 2010 13:56:51 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r948426 - in /poi/trunk/src: documentation/content/xdocs/status.xml ooxml/testcases/org/apache/poi/xwpf/TestAllExtendedProperties.java Date: Wed, 26 May 2010 13:56:51 -0000 To: commits@poi.apache.org From: nick@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20100526135651.F25BB23889DA@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: nick Date: Wed May 26 13:56:51 2010 New Revision: 948426 URL: http://svn.apache.org/viewvc?rev=948426&view=rev Log: Fix bug #49160 - Ensure that CTDigSigBlob is included in poi-ooxml jar Modified: poi/trunk/src/documentation/content/xdocs/status.xml poi/trunk/src/ooxml/testcases/org/apache/poi/xwpf/TestAllExtendedProperties.java Modified: poi/trunk/src/documentation/content/xdocs/status.xml URL: http://svn.apache.org/viewvc/poi/trunk/src/documentation/content/xdocs/status.xml?rev=948426&r1=948425&r2=948426&view=diff ============================================================================== --- poi/trunk/src/documentation/content/xdocs/status.xml (original) +++ poi/trunk/src/documentation/content/xdocs/status.xml Wed May 26 13:56:51 2010 @@ -34,6 +34,7 @@ + 49160 - Ensure that CTDigSigBlob is included in poi-ooxml jar 49189 - Detect w:tab and w:cr entries in XWPF paragraphs, even when the XSD is silly and maps them to CTEmpty 49273 - Correct handling for Font Character Sets with indicies greater than 127 49334 - Track the ValueRangeRecords of charts in HSSFChart, to allow the basic axis operations Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xwpf/TestAllExtendedProperties.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xwpf/TestAllExtendedProperties.java?rev=948426&r1=948425&r2=948426&view=diff ============================================================================== --- poi/trunk/src/ooxml/testcases/org/apache/poi/xwpf/TestAllExtendedProperties.java (original) +++ poi/trunk/src/ooxml/testcases/org/apache/poi/xwpf/TestAllExtendedProperties.java Wed May 26 13:56:51 2010 @@ -17,26 +17,12 @@ package org.apache.poi.xwpf; -import java.io.File; -import java.io.IOException; -import java.text.ParsePosition; -import java.text.SimpleDateFormat; -import java.util.Date; -import java.util.TimeZone; - import junit.framework.TestCase; import org.apache.poi.POIXMLProperties.CoreProperties; -import org.apache.poi.openxml4j.OpenXML4JTestDataSamples; -import org.apache.poi.openxml4j.exceptions.InvalidFormatException; -import org.apache.poi.openxml4j.exceptions.OpenXML4JException; -import org.apache.poi.openxml4j.opc.OPCPackage; import org.apache.poi.openxml4j.opc.PackageProperties; -import org.apache.poi.openxml4j.util.Nullable; -import org.apache.poi.util.POILogger; -import org.apache.poi.util.POILogFactory; import org.apache.poi.xwpf.usermodel.XWPFDocument; -import org.openxmlformats.schemas.officeDocument.x2006.docPropsVTypes.CTVariant; +import org.openxmlformats.schemas.officeDocument.x2006.extendedProperties.CTDigSigBlob; import org.openxmlformats.schemas.officeDocument.x2006.extendedProperties.CTProperties; import org.openxmlformats.schemas.officeDocument.x2006.extendedProperties.CTVectorLpstr; import org.openxmlformats.schemas.officeDocument.x2006.extendedProperties.CTVectorVariant; @@ -105,5 +91,15 @@ public final class TestAllExtendedProper assertEquals(3,ctProps.getTotalTime()); assertEquals(10,ctProps.getWords()); + // Check the digital signature part + // Won't be there in this file, but we + // need to do this check so that the + // appropriate parts end up in the + // smaller ooxml schemas file + CTDigSigBlob blob = ctProps.getDigSig(); + assertNull(blob); + + blob = CTDigSigBlob.Factory.newInstance(); + blob.setBlob(new byte [] {2,6,7,2,3,4,5,1,2,3}); } } --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org For additional commands, e-mail: commits-help@poi.apache.org