cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Beucher Thierry <>
Subject FEDIZ-15 patch (Support the publish of the WS-Federation Metadata document)
Date Wed, 04 Sep 2013 15:36:09 GMT
HI Oli,

I am currently testing your FEDIZ-15 patch and it fails in unit tests of fediz-idp : an issue
related to file encoding IBM1252 not supported is raised during writing of metadatas (at document
signature phase) ...

Running org.apache.cxf.fediz.service.idp.util.MetadataWriterTest
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 42.943 sec <<< FAILURE!
testWriteIDPMetadata(org.apache.cxf.fediz.service.idp.util.MetadataWriterTest)  Time elapsed:
39.16 sec  <<< ERROR!
java.lang.RuntimeException: Error creating service metadata information: IBM1252
       at org.apache.cxf.fediz.service.idp.util.MetadataWriter.getMetaData(
       at org.apache.cxf.fediz.service.idp.util.MetadataWriterTest.testWriteIDPMetadata(

below the metadatas file to be signed :

<?xml version='1.0' encoding='IBM1252'?>
<EntityDescriptor ID="_96E3E566F42872B96B13783064585181" entityID="https://localhost:8443/fediz-idp/federation"
xmlns:fed="" xmlns:wsa=""
xmlns:auth="" xmlns:xsi="">
  <fed:RoleDescriptor xsi:type="fed:SecurityTokenServiceType" protocolSupportEnumeration=""
ServiceDescription="IDP of Realm A" ServiceDisplayName="REALM A">
    <KeyDescriptor use="signing">

A fix in MetadataWriter at line #96 solves it :


Does it make sense to take care of various encodings ?
Strangely I didn't encountered the same issue for MetadataWriter on project 'core' side ....



Ce message et les pi?ces jointes sont confidentiels et r?serv?s ? l'usage exclusif de ses
destinataires. Il peut ?galement ?tre prot?g? par le secret professionnel. Si vous recevez
ce message par erreur, merci d'en avertir imm?diatement l'exp?diteur et de le d?truire. L'int?grit?
du message ne pouvant ?tre assur?e sur Internet, la responsabilit? de Worldline ne pourra
?tre recherch?e quant au contenu de ce message. Bien que les meilleurs efforts soient faits
pour maintenir cette transmission exempte de tout virus, l'exp?diteur ne donne aucune garantie
? cet ?gard et sa responsabilit? ne saurait ?tre recherch?e pour tout dommage r?sultant d'un
virus transmis.

This e-mail and the documents attached are confidential and intended solely for the addressee;
it may also be privileged. If you receive this e-mail in error, please notify the sender immediately
and destroy it. As its integrity cannot be secured on the Internet, the Worldline liability
cannot be triggered for the message content. Although the sender endeavours to maintain a
computer virus-free network, the sender does not warrant that this transmission is virus-free
and will not be liable for any damages resulting from any virus transmitted.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message