You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@olingo.apache.org by ch...@apache.org on 2016/07/27 12:56:34 UTC

[3/4] olingo-odata4 git commit: [OLINGO-989] XMLFactory enhancements

[OLINGO-989] XMLFactory enhancements

Signed-off-by: Christian Amend <ch...@sap.com>


Project: http://git-wip-us.apache.org/repos/asf/olingo-odata4/repo
Commit: http://git-wip-us.apache.org/repos/asf/olingo-odata4/commit/c8d69b33
Tree: http://git-wip-us.apache.org/repos/asf/olingo-odata4/tree/c8d69b33
Diff: http://git-wip-us.apache.org/repos/asf/olingo-odata4/diff/c8d69b33

Branch: refs/heads/master
Commit: c8d69b33e673036d38ac31f2997a6b0a0d0794a1
Parents: 9a30d75
Author: Kanika Jashrapuria <ka...@sap.com>
Authored: Wed Apr 27 15:35:20 2016 +0530
Committer: Christian Amend <ch...@sap.com>
Committed: Wed Jul 27 14:42:46 2016 +0200

----------------------------------------------------------------------
 .../apache/olingo/client/core/serialization/AtomDeserializer.java  | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/c8d69b33/lib/client-core/src/main/java/org/apache/olingo/client/core/serialization/AtomDeserializer.java
----------------------------------------------------------------------
diff --git a/lib/client-core/src/main/java/org/apache/olingo/client/core/serialization/AtomDeserializer.java b/lib/client-core/src/main/java/org/apache/olingo/client/core/serialization/AtomDeserializer.java
index e84fea1..83a93d1 100644
--- a/lib/client-core/src/main/java/org/apache/olingo/client/core/serialization/AtomDeserializer.java
+++ b/lib/client-core/src/main/java/org/apache/olingo/client/core/serialization/AtomDeserializer.java
@@ -94,6 +94,8 @@ public class AtomDeserializer implements ODataDeserializer {
   private final AtomGeoValueDeserializer geoDeserializer;
 
   protected XMLEventReader getReader(final InputStream input) throws XMLStreamException {
+    FACTORY.setProperty("javax.xml.stream.isSupportingExternalEntities", false);
+    FACTORY.setProperty("javax.xml.stream.isReplacingEntityReferences", false);
     return FACTORY.createXMLEventReader(input);
   }