Commit Graph

5987 Commits

Author SHA1 Message Date
Nick Burch ce04adaf47 More from Daniel Bonniot from bug #56956 - Make the FileChannel default read-only too, more in keeping with 3.10 behaviour
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1624266 13f79535-47bb-0310-9956-ffa450edef68
2014-09-11 12:07:22 +00:00
Nick Burch 2bcffd283f Sync example with the website
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1624237 13f79535-47bb-0310-9956-ffa450edef68
2014-09-11 09:36:57 +00:00
Nick Burch e627fa54a2 Patch from Daniel Bonniot from bug #56956 - Add a NPOIFSFileSystem constructor with a FileChannel and the read-only option
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1624226 13f79535-47bb-0310-9956-ffa450edef68
2014-09-11 08:48:10 +00:00
Nick Burch 6ae6f2fcb3 Expose get/set reading order from the extended format record to the hssf cell style (XSSF does it differently, so not suitable for the interface)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1623853 13f79535-47bb-0310-9956-ffa450edef68
2014-09-09 15:59:06 +00:00
Andreas Beeker 68639e749a Bug 56914 - XSSFRowShifter.updateConditionalFormatting throws IOOBE when there are more than 1 CTConditionalFormatting
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1622759 13f79535-47bb-0310-9956-ffa450edef68
2014-09-05 19:07:32 +00:00
Andreas Beeker 314b9f60de Bug 56913 - Replace usages of o.a.p.util.ArrayUtil.copyOf* methods with replacements from j.u.Arrays
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1622589 13f79535-47bb-0310-9956-ffa450edef68
2014-09-05 00:31:47 +00:00
Andreas Beeker d71574d531 Bug 51483 - XSSF locking of specific features not working
Added some documentation to the crypto functions and adapted xor1verifier code to the OFFCrypto-Docs

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1622577 13f79535-47bb-0310-9956-ffa450edef68
2014-09-04 22:50:28 +00:00
Nick Burch f1a0b0d315 Add getters for the common xml extended properties
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1622257 13f79535-47bb-0310-9956-ffa450edef68
2014-09-03 13:47:50 +00:00
Nick Burch 662ab45570 Provide a getter for custom properties, to match the add and contains methods already there
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1622252 13f79535-47bb-0310-9956-ffa450edef68
2014-09-03 13:38:48 +00:00
Dominik Stadler 94edf46bbf Bug 48195: Formulas: Fix incorrect evaluation of IF() with ROW()/COLUMN() as else-result
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1621641 13f79535-47bb-0310-9956-ffa450edef68
2014-08-31 21:46:48 +00:00
Dominik Stadler 2b08cd8946 Bug 55280: Implement a method XSSFSheet.removeMergedRegions() to bulk remove merged regions and thus speed up shifting rows with many merged regions greatly.
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1621633 13f79535-47bb-0310-9956-ffa450edef68
2014-08-31 20:24:42 +00:00
Dominik Stadler 8499904537 Bug 55280: Don't repeatedely fetch the size of the CTMergeCells object as this is a costly operation with XMLBeans
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1621631 13f79535-47bb-0310-9956-ffa450edef68
2014-08-31 19:53:53 +00:00
Dominik Stadler 9a002910c5 Bug 45312: Add unit-test and javadoc, also convert file to proper line-ending and make poi.deserialize.escher=true behave for full reading of files outside of BiffViewer
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1621586 13f79535-47bb-0310-9956-ffa450edef68
2014-08-31 11:40:22 +00:00
Andreas Beeker 8ed6940008 Bug 51222 - XSSFColor.getARGBHex() returns wrong color for Excel 2007 xlsx file
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1621393 13f79535-47bb-0310-9956-ffa450edef68
2014-08-29 22:14:55 +00:00
Dominik Stadler de7cedad2b Bug 56730: Fix exporting XML if schema contains ref-elements
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1621209 13f79535-47bb-0310-9956-ffa450edef68
2014-08-28 21:41:30 +00:00
Andreas Beeker c20a2b97e8 Bug 56864 - XWPFLatentStyles.isLatentStyle always returns true if there is at least 1 lsdException
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1620999 13f79535-47bb-0310-9956-ffa450edef68
2014-08-28 00:20:22 +00:00
Andreas Beeker f39e6bea74 Bug 56854 - XMLBeans performance when using getXXXList() and other proxy methods
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1620997 13f79535-47bb-0310-9956-ffa450edef68
2014-08-28 00:08:41 +00:00
Andreas Beeker d1bc3ab1fd timestamping fixes
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/xml_signature@1620990 13f79535-47bb-0310-9956-ffa450edef68
2014-08-27 22:58:03 +00:00
Andreas Beeker db7b16a9b5 ignore props
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/xml_signature@1620232 13f79535-47bb-0310-9956-ffa450edef68
2014-08-24 23:09:18 +00:00
Andreas Beeker 6e18987e4d new directory for compile/test only libs
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/xml_signature@1620231 13f79535-47bb-0310-9956-ffa450edef68
2014-08-24 23:07:51 +00:00
Andreas Beeker 3d81d013a3 removed HorribleProxy
added current version of BouncyCastle and xmlsec (using xmlsec instead of jdk internal classes, because of interoperabiltiy with e.g. IBM JDK)
heaps of changes because of above

git-svn-id: https://svn.apache.org/repos/asf/poi/branches/xml_signature@1620230 13f79535-47bb-0310-9956-ffa450edef68
2014-08-24 23:06:05 +00:00
Andreas Beeker 9724ed0d76 removed HorribleProxy
added current version of BouncyCastle and xmlsec (using xmlsec instead of jdk internal classes, because of interoperabiltiy with e.g. IBM JDK)
heaps of changes because of above

git-svn-id: https://svn.apache.org/repos/asf/poi/branches/xml_signature@1620229 13f79535-47bb-0310-9956-ffa450edef68
2014-08-24 23:05:26 +00:00
Nick Burch 5a6da94159 Fix indents / whitespace
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1619712 13f79535-47bb-0310-9956-ffa450edef68
2014-08-22 09:01:36 +00:00
Nick Burch 228abc5322 Include the maximum number of Cell Styles in the spreadsheet versions class
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1619710 13f79535-47bb-0310-9956-ffa450edef68
2014-08-22 08:59:25 +00:00
Uwe Schindler b89e0499d3 Add Dominik's suggestion to DocumentBuilderFactories. I also removed the setXIncludeAware(false) in XMLHelper, because it causes the same problem and is disabled by default.
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1618644 13f79535-47bb-0310-9956-ffa450edef68
2014-08-18 16:01:35 +00:00
Dominik Stadler 70f4e1d885 * Allow to start tests with old Xerces jar-file to trigger issues we saw with missing methods in this XML parser. This is only active if the location of the jar-file is provided via ant property "-Dadditionaljar=lib/xercesImpl-2.6.1.jar"
* Also remove dom4j from downloaded libs to fully get rid of it in build-environments

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1618610 13f79535-47bb-0310-9956-ffa450edef68
2014-08-18 13:59:01 +00:00
Andreas Beeker 6a20e827d2 added public key for kiwiwings (Andreas Beeker)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1618525 13f79535-47bb-0310-9956-ffa450edef68
2014-08-17 22:22:16 +00:00
Andreas Beeker 062f913146 ignore .xsd - should be downloaded by build.xml or provided in the source tree
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1618519 13f79535-47bb-0310-9956-ffa450edef68
2014-08-17 20:11:26 +00:00
Andreas Beeker 750ff718f0 starting tsp tests / removed mockito stuff again
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/xml_signature@1618515 13f79535-47bb-0310-9956-ffa450edef68
2014-08-17 19:53:34 +00:00
Andreas Beeker 93e4a2ac10 merge to trunk
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/xml_signature@1618405 13f79535-47bb-0310-9956-ffa450edef68
2014-08-16 19:36:35 +00:00
Andreas Beeker 03378c2d69 merge to trunk
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/xml_signature@1618404 13f79535-47bb-0310-9956-ffa450edef68
2014-08-16 19:31:17 +00:00
Andreas Beeker 3bf0b0bd10 - Updated to BC 1.51
- Download BC/test-libs in build.xml

git-svn-id: https://svn.apache.org/repos/asf/poi/branches/xml_signature@1618403 13f79535-47bb-0310-9956-ffa450edef68
2014-08-16 19:21:31 +00:00
Andreas Beeker bf87859a20 replace xmlbeans.factory.parse with selectPath calls
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/xml_signature@1618292 13f79535-47bb-0310-9956-ffa450edef68
2014-08-15 23:10:07 +00:00
Andreas Beeker ed2a75890f migrated enveloped document test (1 of 2)
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/xml_signature@1618288 13f79535-47bb-0310-9956-ffa450edef68
2014-08-15 22:20:30 +00:00
Andreas Beeker ea5645e80f some changes because of test errors
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/xml_signature@1618254 13f79535-47bb-0310-9956-ffa450edef68
2014-08-15 18:19:28 +00:00
Uwe Schindler 4c9a4c3616 More cleanups for bug #56814 and some more external entity leaks of #56164
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1617849 13f79535-47bb-0310-9956-ffa450edef68
2014-08-13 22:34:53 +00:00
Andreas Beeker 085f1f25ec sync test
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/xml_signature@1617627 13f79535-47bb-0310-9956-ffa450edef68
2014-08-12 23:39:18 +00:00
Andreas Beeker 4f4b1bedd7 sync merge to trunk
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/xml_signature@1617624 13f79535-47bb-0310-9956-ffa450edef68
2014-08-12 23:33:07 +00:00
Uwe Schindler effe9463ee Add some extra safety test to check that external entities are not loaded by xmlbeans
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1617453 13f79535-47bb-0310-9956-ffa450edef68
2014-08-12 11:33:02 +00:00
Uwe Schindler fed01cb1ad Fix bug #56814 - Switch from dom4j to JAXP
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1617428 13f79535-47bb-0310-9956-ffa450edef68
2014-08-12 07:19:51 +00:00
Andreas Beeker 9bf5167344 Tests/fixes for hash > sha1
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/xml_signature@1617180 13f79535-47bb-0310-9956-ffa450edef68
2014-08-10 23:34:13 +00:00
Andreas Beeker d85ee68b7f download xades files and remove from them resources
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/xml_signature@1617153 13f79535-47bb-0310-9956-ffa450edef68
2014-08-10 20:37:44 +00:00
Andreas Beeker 9660a04c19 Xml signature support - version 1
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/xml_signature@1617141 13f79535-47bb-0310-9956-ffa450edef68
2014-08-10 18:25:10 +00:00
Andreas Beeker b74e89ad01 XML signature support
(https://issues.apache.org/bugzilla/show_bug.cgi?id=56836)

git-svn-id: https://svn.apache.org/repos/asf/poi/branches/xml_signature@1617139 13f79535-47bb-0310-9956-ffa450edef68
2014-08-10 18:04:47 +00:00
Uwe Schindler 549f7bc0e6 Add myself to keys file
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1617116 13f79535-47bb-0310-9956-ffa450edef68
2014-08-10 15:05:30 +00:00
Nick Burch 7f6131aba5 Correct xmlbeans 2.6 url
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1615893 13f79535-47bb-0310-9956-ffa450edef68
2014-08-05 08:53:15 +00:00
Nick Burch d6b8ff12e5 Fix bug #56812 - In XSLF provide a way to get the URI of externally linked pictures
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1615812 13f79535-47bb-0310-9956-ffa450edef68
2014-08-04 22:00:47 +00:00
Nick Burch 5a28c2bbb7 Add a disabled unit test for bug #56812, based on code and file from Geoff Wright
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1615803 13f79535-47bb-0310-9956-ffa450edef68
2014-08-04 21:34:51 +00:00
Nick Burch 22aec7b4e3 Before parsing an OOXML document, reset the xmlbeans sax parser to avoid the risk of getting one in an error state (due to XMLBEANS-512). Should be a minimal extra overhead pending a proper fix. Allows us to finish enabling the unit tests for #54764
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1615781 13f79535-47bb-0310-9956-ffa450edef68
2014-08-04 20:42:41 +00:00
Nick Burch fc60883a7d Change the default XMLBeans version used for running to be 2.6, leave 2.3 for compiling the schemas (for maximum compatibility)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1615780 13f79535-47bb-0310-9956-ffa450edef68
2014-08-04 20:40:45 +00:00