cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From owu...@apache.org
Subject svn commit: r1520420 - in /cxf/fediz/trunk: plugins/core/src/main/java/org/apache/cxf/fediz/core/metadata/MetadataWriter.java services/idp/src/main/java/org/apache/cxf/fediz/service/idp/util/MetadataWriter.java
Date Thu, 05 Sep 2013 20:55:10 GMT
Author: owulff
Date: Thu Sep  5 20:55:09 2013
New Revision: 1520420

URL: http://svn.apache.org/r1520420
Log:
Minor cleanup for encoding issue in Metadata writer

Modified:
    cxf/fediz/trunk/plugins/core/src/main/java/org/apache/cxf/fediz/core/metadata/MetadataWriter.java
    cxf/fediz/trunk/services/idp/src/main/java/org/apache/cxf/fediz/service/idp/util/MetadataWriter.java

Modified: cxf/fediz/trunk/plugins/core/src/main/java/org/apache/cxf/fediz/core/metadata/MetadataWriter.java
URL: http://svn.apache.org/viewvc/cxf/fediz/trunk/plugins/core/src/main/java/org/apache/cxf/fediz/core/metadata/MetadataWriter.java?rev=1520420&r1=1520419&r2=1520420&view=diff
==============================================================================
--- cxf/fediz/trunk/plugins/core/src/main/java/org/apache/cxf/fediz/core/metadata/MetadataWriter.java
(original)
+++ cxf/fediz/trunk/plugins/core/src/main/java/org/apache/cxf/fediz/core/metadata/MetadataWriter.java
Thu Sep  5 20:55:09 2013
@@ -99,7 +99,7 @@ public class MetadataWriter {
 
             Protocol protocol = config.getProtocol();
 
-            writer.writeStartDocument("UTF-8", "1.0");
+            writer.writeStartDocument();
 
             String referenceID = "_" + UUIDGenerator.getUUID();
             writer.writeStartElement("", "EntityDescriptor", SAML2_METADATA_NS);

Modified: cxf/fediz/trunk/services/idp/src/main/java/org/apache/cxf/fediz/service/idp/util/MetadataWriter.java
URL: http://svn.apache.org/viewvc/cxf/fediz/trunk/services/idp/src/main/java/org/apache/cxf/fediz/service/idp/util/MetadataWriter.java?rev=1520420&r1=1520419&r2=1520420&view=diff
==============================================================================
--- cxf/fediz/trunk/services/idp/src/main/java/org/apache/cxf/fediz/service/idp/util/MetadataWriter.java
(original)
+++ cxf/fediz/trunk/services/idp/src/main/java/org/apache/cxf/fediz/service/idp/util/MetadataWriter.java
Thu Sep  5 20:55:09 2013
@@ -93,7 +93,7 @@ public class MetadataWriter {
             Writer streamWriter = new OutputStreamWriter(bout, "UTF-8");
             XMLStreamWriter writer = XML_OUTPUT_FACTORY.createXMLStreamWriter(streamWriter);
 
-            writer.writeStartDocument("UTF-8", "1.0");
+            writer.writeStartDocument();
 
             String referenceID = "_" + UUIDGenerator.getUUID();
             writer.writeStartElement("", "EntityDescriptor", SAML2_METADATA_NS);



Mime
View raw message