From 37a3a769fe35e401346aa70be5c5177a4f34984c Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Sun, 19 Aug 2018 09:08:00 +0000 Subject: [PATCH] uptake xmlbeans 3.0.1 (staging version, pre-release) git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1838366 13f79535-47bb-0310-9956-ffa450edef68 --- .classpath | 2 +- build.gradle | 4 ++-- build.xml | 9 +++++---- maven/poi-ooxml-schemas.pom | 2 +- sonar/pom.xml | 2 +- .../java/org/apache/poi/ooxml/POIXMLTypeLoader.java | 1 + 6 files changed, 11 insertions(+), 9 deletions(-) diff --git a/.classpath b/.classpath index 367843e9c..e689084f2 100644 --- a/.classpath +++ b/.classpath @@ -18,7 +18,7 @@ - + diff --git a/build.gradle b/build.gradle index ed7097ab6..1fa69cca9 100644 --- a/build.gradle +++ b/build.gradle @@ -26,10 +26,10 @@ buildscript { } repositories { + maven { url "https://repository.apache.org/content/repositories/staging" } mavenCentral() } - // Only add the plugin for Sonar if enabled if (project.hasProperty('enableSonar')) { println 'Enabling Sonar support' @@ -216,7 +216,7 @@ project('ooxml') { compileJava.dependsOn 'ant-compile-ooxml-xsds' dependencies { - compile 'org.apache.xmlbeans:xmlbeans:3.0.0' + compile 'org.apache.xmlbeans:xmlbeans:3.0.1' compile 'org.apache.commons:commons-collections4:4.2' compile 'org.apache.commons:commons-math3:3.6.1' compile 'org.apache.commons:commons-compress:1.18' diff --git a/build.xml b/build.xml index 18233c894..3bd8a951d 100644 --- a/build.xml +++ b/build.xml @@ -200,9 +200,9 @@ under the License. - + + value="https://repository.apache.org/content/repositories/staging/org/apache/xmlbeans/xmlbeans/3.0.1/xmlbeans-3.0.1.jar"/> @@ -637,7 +637,8 @@ under the License. - + + @@ -2025,7 +2026,7 @@ under the License. - + diff --git a/maven/poi-ooxml-schemas.pom b/maven/poi-ooxml-schemas.pom index 295eeab9b..bff66dfb6 100644 --- a/maven/poi-ooxml-schemas.pom +++ b/maven/poi-ooxml-schemas.pom @@ -62,7 +62,7 @@ org.apache.xmlbeans xmlbeans - 3.0.0 + 3.0.1 diff --git a/sonar/pom.xml b/sonar/pom.xml index c76d33163..e6f381cd8 100644 --- a/sonar/pom.xml +++ b/sonar/pom.xml @@ -72,7 +72,7 @@ true - 3.0.0 + 3.0.1 4.12 2.5.1 2.13.0 diff --git a/src/ooxml/java/org/apache/poi/ooxml/POIXMLTypeLoader.java b/src/ooxml/java/org/apache/poi/ooxml/POIXMLTypeLoader.java index c795cd0d6..4a7a2b1b7 100644 --- a/src/ooxml/java/org/apache/poi/ooxml/POIXMLTypeLoader.java +++ b/src/ooxml/java/org/apache/poi/ooxml/POIXMLTypeLoader.java @@ -40,6 +40,7 @@ public class POIXMLTypeLoader { DEFAULT_XML_OPTIONS.setUseDefaultNamespace(); DEFAULT_XML_OPTIONS.setSaveAggressiveNamespaces(); DEFAULT_XML_OPTIONS.setCharacterEncoding("UTF-8"); + DEFAULT_XML_OPTIONS.setEntityExpansionLimit(1); // Piccolo is disabled for POI builts, i.e. JAXP is used for parsing // so only user code using XmlObject/XmlToken.Factory.parse // directly can bypass the entity check, which is probably unlikely (... and not within our responsibility :))