cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From owu...@apache.org
Subject svn commit: r1520129 - in /cxf/fediz/trunk/services/idp/src/main: java/org/apache/cxf/fediz/service/idp/util/MetadataWriter.java webapp/WEB-INF/idp-config-realmb.xml
Date Wed, 04 Sep 2013 20:09:04 GMT
Author: owulff
Date: Wed Sep  4 20:09:03 2013
New Revision: 1520129

URL: http://svn.apache.org/r1520129
Log:
Fixed encoding issue. Thanks Thierry

Modified:
    cxf/fediz/trunk/services/idp/src/main/java/org/apache/cxf/fediz/service/idp/util/MetadataWriter.java
    cxf/fediz/trunk/services/idp/src/main/webapp/WEB-INF/idp-config-realmb.xml

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=1520129&r1=1520128&r2=1520129&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
Wed Sep  4 20:09:03 2013
@@ -90,10 +90,10 @@ public class MetadataWriter {
             Crypto crypto = CertsUtils.createCrypto(config.getCertificate());
             
             ByteArrayOutputStream bout = new ByteArrayOutputStream(4096);
-            Writer streamWriter = new OutputStreamWriter(bout);
+            Writer streamWriter = new OutputStreamWriter(bout, "UTF-8");
             XMLStreamWriter writer = XML_OUTPUT_FACTORY.createXMLStreamWriter(streamWriter);
 
-                        writer.writeStartDocument();
+            writer.writeStartDocument("UTF-8", "1.0");
 
             String referenceID = "_" + UUIDGenerator.getUUID();
             writer.writeStartElement("", "EntityDescriptor", SAML2_METADATA_NS);

Modified: cxf/fediz/trunk/services/idp/src/main/webapp/WEB-INF/idp-config-realmb.xml
URL: http://svn.apache.org/viewvc/cxf/fediz/trunk/services/idp/src/main/webapp/WEB-INF/idp-config-realmb.xml?rev=1520129&r1=1520128&r2=1520129&view=diff
==============================================================================
--- cxf/fediz/trunk/services/idp/src/main/webapp/WEB-INF/idp-config-realmb.xml (original)
+++ cxf/fediz/trunk/services/idp/src/main/webapp/WEB-INF/idp-config-realmb.xml Wed Sep  4
20:09:03 2013
@@ -44,7 +44,7 @@
         <property name="useCurrentIDP" value="true" />
         <property name="certificate" value="stsKeystoreB.properties" />
         <property name="certificatePassword" value="realmb" />
-        <property name="stsUrl" value="https://localhost:0/fediz-idp-sts-remote/REALMB"
/>
+        <property name="stsUrl" value="https://localhost:0/fediz-idp-sts/REALMB" />
         <property name="idpUrl" value="https://localhost:${realmB.port}/fediz-idp-remote/federation"
/>
         <property name="supportedProtocols">
         	<util:list>



Mime
View raw message