Re: [Dev] IAM: Error while uploading the metadata file in Sp creation.

2018-07-25 Thread Samuel Gnaniah
Updated the issue [1].

[1] - https://github.com/wso2/product-is/issues/3472

--

*Samuel Gnaniah*
Senior Lead Technical Writer

WSO2 (pvt.) Ltd.
Colombo, Sri Lanka
(+94) 773131798

On Wed, Jul 25, 2018 at 8:03 PM, Achini Jayasena  wrote:

> Hi Samuel,
>
> For tracking purpose I created a git issue [1]. Could you please update
> the issue since it's already fixed.
>
> [1] :SP creation metadata file format is incorrect in documentation #3472
>
>
> *Thanks & Best Regards!*
>
> *Achini Jayasena*
> *Software Engineer - QA | WSO2*
>
> Email: achi...@wso2.com
> Mobile: +943 882 897
>
> [image: http://wso2.com/signature] 
>
> On Tue, Jul 24, 2018 at 11:36 AM, Samuel Gnaniah  wrote:
>
>> Updated the new file in IS 5.5.0, 5.6.0, and 5.7.0.
>>
>> https://docs.wso2.com/display/IS560/Configuring+SAML2+Web+Single-Sign-On
>>
>> --
>>
>> *Samuel Gnaniah*
>> Senior Lead Technical Writer
>>
>> WSO2 (pvt.) Ltd.
>> Colombo, Sri Lanka
>> (+94) 773131798
>>
>> On Tue, Jul 24, 2018 at 11:14 AM, Samuel Gnaniah  wrote:
>>
>>> Ack. Will fix this.
>>>
>>> --
>>>
>>> *Samuel Gnaniah*
>>> Senior Lead Technical Writer
>>>
>>> WSO2 (pvt.) Ltd.
>>> Colombo, Sri Lanka
>>> (+94) 773131798
>>>
>>> On Tue, Jul 24, 2018 at 10:49 AM, Nirdesha Munasinghe >> > wrote:
>>>
 Copying the IAM writers...

 On Mon, Jul 23, 2018 at 1:02 PM, Ruwan Abeykoon 
 wrote:

> Hi Farasath,
> The failing XML file seems semantically identical to the one with
> namespace.
> What can be the reason for failure ?
>
> Cheers,
> Ruwan
>
> On Mon, Jul 23, 2018 at 12:33 PM Achini Jayasena 
> wrote:
>
>> Hi Farasath and Doc team,
>>
>> @ Farasath, I  got the matadata file sample given in the document.
>> [1]. It's working  after add XML name spaces.
>> And also is there a way to enable the response signing through the
>> metadata file upload? Is metadata file support for all manual saml
>> configurations in IS?
>>
>> @doc team, Please do the update for metadata configuration file in
>> document  [1] since the given sample not working without Xml name spaces.
>>
>> Please find the updated metadata file attached here with.
>>
>> [1] : https://docs.wso2.com/display/IS550/Adding+and+Configuring+a
>> +Service+Provider#AddingandConfiguringaServiceProvider-Metad
>> atafileconfiguration
>>
>>
>>
>> *Thanks & Best Regards!*
>>
>> *Achini Jayasena*
>> *Software Engineer - QA | WSO2*
>>
>> Email: achi...@wso2.com
>> Mobile: +943 882 897
>>
>> [image: http://wso2.com/signature] 
>>
>> On Fri, Jul 20, 2018 at 8:40 PM, Farasath Ahamed 
>> wrote:
>>
>>> Hi Achini,
>>>
>>> Seems like there is a possible issue with the metadata file you have
>>> created. (Initially, I thought it was due to a binary character in the
>>> file, but it doesn't seem to be the case). A similar error has been
>>> reported in [1]. And the resolution was to fix the 
>>> with a specific format (With XML namespaces etc.)
>>>
>>> I created a metadata file using https://www.samltool.com
>>> /sp_metadata.php with the same details(see the attachment) and
>>> uploaded it to IS 5.5.0 WUM pack and it worked without any issue. To 
>>> find
>>> the issue with your metadata file can you explain how you generated the
>>> metadata file?
>>>
>>>
>>> [1] http://codeverge.com/novell.support.access-manager/error
>>> -importing-saml2-metadata/1980697
>>>
>>> On Fri, Jul 20, 2018 at 4:10 PM, Achini Jayasena 
>>> wrote:
>>>
 Hi all,

 Seems this is a bug and I have created a git issue [1]. please find
 the error log from below.

 product version. 5.5 latest wum update.

 [1] - https://github.com/wso2/product-is/issues/3453

 [2018-07-20 15:18:57,194] ERROR 
 {org.wso2.carbon.identity.sp.metadata.saml2.util.Parser}
 -  Error While reading Service Provider metadata xml
 org.xml.sax.SAXParseException: Element type "EntityDescriptor" must
 be followed by either attribute specifications, ">" or "/>".
 at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
 at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown
 Source)
 at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
 at org.wso2.carbon.identity.sp.metadata.saml2.util.Parser.gener
 ateMetadataObjectFromString(Parser.java:252)
 at org.wso2.carbon.identity.sp.metadata.saml2.util.Parser.parse
 (Parser.java:199)
 at org.wso2.carbon.identity.sso.saml.admin.SAMLSSOConfigAdmin.u
 ploadRelyingPartyServiceProvider(SAMLSSOConfigAdmin.java:148)
 at org.wso2.carbon.identity.sso.saml.SAMLSSOConfigService.uploa

Re: [Dev] IAM: Error while uploading the metadata file in Sp creation.

2018-07-24 Thread Samuel Gnaniah
Updated the new file in IS 5.5.0, 5.6.0, and 5.7.0.

https://docs.wso2.com/display/IS560/Configuring+SAML2+Web+Single-Sign-On

--

*Samuel Gnaniah*
Senior Lead Technical Writer

WSO2 (pvt.) Ltd.
Colombo, Sri Lanka
(+94) 773131798

On Tue, Jul 24, 2018 at 11:14 AM, Samuel Gnaniah  wrote:

> Ack. Will fix this.
>
> --
>
> *Samuel Gnaniah*
> Senior Lead Technical Writer
>
> WSO2 (pvt.) Ltd.
> Colombo, Sri Lanka
> (+94) 773131798
>
> On Tue, Jul 24, 2018 at 10:49 AM, Nirdesha Munasinghe 
> wrote:
>
>> Copying the IAM writers...
>>
>> On Mon, Jul 23, 2018 at 1:02 PM, Ruwan Abeykoon  wrote:
>>
>>> Hi Farasath,
>>> The failing XML file seems semantically identical to the one with
>>> namespace.
>>> What can be the reason for failure ?
>>>
>>> Cheers,
>>> Ruwan
>>>
>>> On Mon, Jul 23, 2018 at 12:33 PM Achini Jayasena 
>>> wrote:
>>>
 Hi Farasath and Doc team,

 @ Farasath, I  got the matadata file sample given in the document. [1].
 It's working  after add XML name spaces.
 And also is there a way to enable the response signing through the
 metadata file upload? Is metadata file support for all manual saml
 configurations in IS?

 @doc team, Please do the update for metadata configuration file in
 document  [1] since the given sample not working without Xml name spaces.

 Please find the updated metadata file attached here with.

 [1] : https://docs.wso2.com/display/IS550/Adding+and+Configuring+a
 +Service+Provider#AddingandConfiguringaServiceProvider-Metad
 atafileconfiguration



 *Thanks & Best Regards!*

 *Achini Jayasena*
 *Software Engineer - QA | WSO2*

 Email: achi...@wso2.com
 Mobile: +943 882 897

 [image: http://wso2.com/signature] 

 On Fri, Jul 20, 2018 at 8:40 PM, Farasath Ahamed 
 wrote:

> Hi Achini,
>
> Seems like there is a possible issue with the metadata file you have
> created. (Initially, I thought it was due to a binary character in the
> file, but it doesn't seem to be the case). A similar error has been
> reported in [1]. And the resolution was to fix the 
> with a specific format (With XML namespaces etc.)
>
> I created a metadata file using https://www.samltool.com
> /sp_metadata.php with the same details(see the attachment) and
> uploaded it to IS 5.5.0 WUM pack and it worked without any issue. To find
> the issue with your metadata file can you explain how you generated the
> metadata file?
>
>
> [1] http://codeverge.com/novell.support.access-manager/error
> -importing-saml2-metadata/1980697
>
> On Fri, Jul 20, 2018 at 4:10 PM, Achini Jayasena 
> wrote:
>
>> Hi all,
>>
>> Seems this is a bug and I have created a git issue [1]. please find
>> the error log from below.
>>
>> product version. 5.5 latest wum update.
>>
>> [1] - https://github.com/wso2/product-is/issues/3453
>>
>> [2018-07-20 15:18:57,194] ERROR 
>> {org.wso2.carbon.identity.sp.metadata.saml2.util.Parser}
>> -  Error While reading Service Provider metadata xml
>> org.xml.sax.SAXParseException: Element type "EntityDescriptor" must
>> be followed by either attribute specifications, ">" or "/>".
>> at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
>> at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown
>> Source)
>> at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
>> at org.wso2.carbon.identity.sp.metadata.saml2.util.Parser.gener
>> ateMetadataObjectFromString(Parser.java:252)
>> at org.wso2.carbon.identity.sp.metadata.saml2.util.Parser.parse
>> (Parser.java:199)
>> at org.wso2.carbon.identity.sso.saml.admin.SAMLSSOConfigAdmin.u
>> ploadRelyingPartyServiceProvider(SAMLSSOConfigAdmin.java:148)
>> at org.wso2.carbon.identity.sso.saml.SAMLSSOConfigService.uploa
>> dRPServiceProvider(SAMLSSOConfigService.java:71)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
>> ssorImpl.java:62)
>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
>> thodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:498)
>> at org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RP
>> CUtil.java:212)
>> at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusi
>> nessLogic(RPCMessageReceiver.java:117)
>> at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invo
>> keBusinessLogic(AbstractInOutMessageReceiver.java:40)
>> at org.apache.axis2.receivers.AbstractMessageReceiver.receive(A
>> bstractMessageReceiver.java:110)
>> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:1
>> 80)
>> at 

Re: [Dev] IAM: Error while uploading the metadata file in Sp creation.

2018-07-23 Thread Samuel Gnaniah
Ack. Will fix this.

--

*Samuel Gnaniah*
Senior Lead Technical Writer

WSO2 (pvt.) Ltd.
Colombo, Sri Lanka
(+94) 773131798

On Tue, Jul 24, 2018 at 10:49 AM, Nirdesha Munasinghe 
wrote:

> Copying the IAM writers...
>
> On Mon, Jul 23, 2018 at 1:02 PM, Ruwan Abeykoon  wrote:
>
>> Hi Farasath,
>> The failing XML file seems semantically identical to the one with
>> namespace.
>> What can be the reason for failure ?
>>
>> Cheers,
>> Ruwan
>>
>> On Mon, Jul 23, 2018 at 12:33 PM Achini Jayasena 
>> wrote:
>>
>>> Hi Farasath and Doc team,
>>>
>>> @ Farasath, I  got the matadata file sample given in the document. [1].
>>> It's working  after add XML name spaces.
>>> And also is there a way to enable the response signing through the
>>> metadata file upload? Is metadata file support for all manual saml
>>> configurations in IS?
>>>
>>> @doc team, Please do the update for metadata configuration file in
>>> document  [1] since the given sample not working without Xml name spaces.
>>>
>>> Please find the updated metadata file attached here with.
>>>
>>> [1] : https://docs.wso2.com/display/IS550/Adding+and+Configuring+a
>>> +Service+Provider#AddingandConfiguringaServiceProvider-Metad
>>> atafileconfiguration
>>>
>>>
>>>
>>> *Thanks & Best Regards!*
>>>
>>> *Achini Jayasena*
>>> *Software Engineer - QA | WSO2*
>>>
>>> Email: achi...@wso2.com
>>> Mobile: +943 882 897
>>>
>>> [image: http://wso2.com/signature] 
>>>
>>> On Fri, Jul 20, 2018 at 8:40 PM, Farasath Ahamed 
>>> wrote:
>>>
 Hi Achini,

 Seems like there is a possible issue with the metadata file you have
 created. (Initially, I thought it was due to a binary character in the
 file, but it doesn't seem to be the case). A similar error has been
 reported in [1]. And the resolution was to fix the 
 with a specific format (With XML namespaces etc.)

 I created a metadata file using https://www.samltool.com
 /sp_metadata.php with the same details(see the attachment) and
 uploaded it to IS 5.5.0 WUM pack and it worked without any issue. To find
 the issue with your metadata file can you explain how you generated the
 metadata file?


 [1] http://codeverge.com/novell.support.access-manager/error
 -importing-saml2-metadata/1980697

 On Fri, Jul 20, 2018 at 4:10 PM, Achini Jayasena 
 wrote:

> Hi all,
>
> Seems this is a bug and I have created a git issue [1]. please find
> the error log from below.
>
> product version. 5.5 latest wum update.
>
> [1] - https://github.com/wso2/product-is/issues/3453
>
> [2018-07-20 15:18:57,194] ERROR 
> {org.wso2.carbon.identity.sp.metadata.saml2.util.Parser}
> -  Error While reading Service Provider metadata xml
> org.xml.sax.SAXParseException: Element type "EntityDescriptor" must be
> followed by either attribute specifications, ">" or "/>".
> at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
> at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown
> Source)
> at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
> at org.wso2.carbon.identity.sp.metadata.saml2.util.Parser.gener
> ateMetadataObjectFromString(Parser.java:252)
> at org.wso2.carbon.identity.sp.metadata.saml2.util.Parser.parse
> (Parser.java:199)
> at org.wso2.carbon.identity.sso.saml.admin.SAMLSSOConfigAdmin.u
> ploadRelyingPartyServiceProvider(SAMLSSOConfigAdmin.java:148)
> at org.wso2.carbon.identity.sso.saml.SAMLSSOConfigService.uploa
> dRPServiceProvider(SAMLSSOConfigService.java:71)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
> ssorImpl.java:62)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
> thodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(
> RPCUtil.java:212)
> at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusi
> nessLogic(RPCMessageReceiver.java:117)
> at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invo
> keBusinessLogic(AbstractInOutMessageReceiver.java:40)
> at org.apache.axis2.receivers.AbstractMessageReceiver.receive(A
> bstractMessageReceiver.java:110)
> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
> at org.apache.axis2.transport.local.LocalTransportReceiver.proc
> essMessage(LocalTransportReceiver.java:170)
> at org.apache.axis2.transport.local.LocalTransportReceiver.proc
> essMessage(LocalTransportReceiver.java:82)
> at org.wso2.carbon.core.transports.local.CarbonLocalTransportSe
> nder.finalizeSendWithToAddress(CarbonLocalTransportSender.java:45)
> at org.apache.axis2.transport.local.LocalTransportSender.invoke

Re: [Dev] IAM: Error while uploading the metadata file in Sp creation.

2018-07-23 Thread Nirdesha Munasinghe
Copying the IAM writers...

On Mon, Jul 23, 2018 at 1:02 PM, Ruwan Abeykoon  wrote:

> Hi Farasath,
> The failing XML file seems semantically identical to the one with
> namespace.
> What can be the reason for failure ?
>
> Cheers,
> Ruwan
>
> On Mon, Jul 23, 2018 at 12:33 PM Achini Jayasena  wrote:
>
>> Hi Farasath and Doc team,
>>
>> @ Farasath, I  got the matadata file sample given in the document. [1].
>> It's working  after add XML name spaces.
>> And also is there a way to enable the response signing through the
>> metadata file upload? Is metadata file support for all manual saml
>> configurations in IS?
>>
>> @doc team, Please do the update for metadata configuration file in
>> document  [1] since the given sample not working without Xml name spaces.
>>
>> Please find the updated metadata file attached here with.
>>
>> [1] : https://docs.wso2.com/display/IS550/Adding+and+Configuring+
>> a+Service+Provider#AddingandConfiguringaServiceProvider-
>> Metadatafileconfiguration
>>
>>
>>
>> *Thanks & Best Regards!*
>>
>> *Achini Jayasena*
>> *Software Engineer - QA | WSO2*
>>
>> Email: achi...@wso2.com
>> Mobile: +943 882 897
>>
>> [image: http://wso2.com/signature] 
>>
>> On Fri, Jul 20, 2018 at 8:40 PM, Farasath Ahamed 
>> wrote:
>>
>>> Hi Achini,
>>>
>>> Seems like there is a possible issue with the metadata file you have
>>> created. (Initially, I thought it was due to a binary character in the
>>> file, but it doesn't seem to be the case). A similar error has been
>>> reported in [1]. And the resolution was to fix the 
>>> with a specific format (With XML namespaces etc.)
>>>
>>> I created a metadata file using https://www.samltool.com/sp_metadata.php
>>> with the same details(see the attachment) and uploaded it to IS 5.5.0 WUM
>>> pack and it worked without any issue. To find the issue with your metadata
>>> file can you explain how you generated the metadata file?
>>>
>>>
>>> [1] http://codeverge.com/novell.support.access-manager/
>>> error-importing-saml2-metadata/1980697
>>>
>>> On Fri, Jul 20, 2018 at 4:10 PM, Achini Jayasena 
>>> wrote:
>>>
 Hi all,

 Seems this is a bug and I have created a git issue [1]. please find the
 error log from below.

 product version. 5.5 latest wum update.

 [1] - https://github.com/wso2/product-is/issues/3453

 [2018-07-20 15:18:57,194] ERROR 
 {org.wso2.carbon.identity.sp.metadata.saml2.util.Parser}
 -  Error While reading Service Provider metadata xml
 org.xml.sax.SAXParseException: Element type "EntityDescriptor" must be
 followed by either attribute specifications, ">" or "/>".
 at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
 at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
 at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
 at org.wso2.carbon.identity.sp.metadata.saml2.util.Parser.
 generateMetadataObjectFromString(Parser.java:252)
 at org.wso2.carbon.identity.sp.metadata.saml2.util.Parser.
 parse(Parser.java:199)
 at org.wso2.carbon.identity.sso.saml.admin.SAMLSSOConfigAdmin.
 uploadRelyingPartyServiceProvider(SAMLSSOConfigAdmin.java:148)
 at org.wso2.carbon.identity.sso.saml.SAMLSSOConfigService.
 uploadRPServiceProvider(SAMLSSOConfigService.java:71)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(
 NativeMethodAccessorImpl.java:62)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(
 DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:498)
 at org.apache.axis2.rpc.receivers.RPCUtil.
 invokeServiceClass(RPCUtil.java:212)
 at org.apache.axis2.rpc.receivers.RPCMessageReceiver.
 invokeBusinessLogic(RPCMessageReceiver.java:117)
 at org.apache.axis2.receivers.AbstractInOutMessageReceiver.
 invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
 at org.apache.axis2.receivers.AbstractMessageReceiver.receive(
 AbstractMessageReceiver.java:110)
 at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
 at org.apache.axis2.transport.local.LocalTransportReceiver.
 processMessage(LocalTransportReceiver.java:170)
 at org.apache.axis2.transport.local.LocalTransportReceiver.
 processMessage(LocalTransportReceiver.java:82)
 at org.wso2.carbon.core.transports.local.
 CarbonLocalTransportSender.finalizeSendWithToAddress(
 CarbonLocalTransportSender.java:45)
 at org.apache.axis2.transport.local.LocalTransportSender.
 invoke(LocalTransportSender.java:77)
 at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
 at org.apache.axis2.description.OutInAxisOperationClient.send(
 OutInAxisOperation.java:441)
 at org.apache.axis2.description.OutInAxisOperationClient.
 

Re: [Dev] IAM: Error while uploading the metadata file in Sp creation.

2018-07-23 Thread Ruwan Abeykoon
Hi Farasath,
The failing XML file seems semantically identical to the one with namespace.
What can be the reason for failure ?

Cheers,
Ruwan

On Mon, Jul 23, 2018 at 12:33 PM Achini Jayasena  wrote:

> Hi Farasath and Doc team,
>
> @ Farasath, I  got the matadata file sample given in the document. [1].
> It's working  after add XML name spaces.
> And also is there a way to enable the response signing through the
> metadata file upload? Is metadata file support for all manual saml
> configurations in IS?
>
> @doc team, Please do the update for metadata configuration file in
> document  [1] since the given sample not working without Xml name spaces.
>
> Please find the updated metadata file attached here with.
>
> [1] :
> https://docs.wso2.com/display/IS550/Adding+and+Configuring+a+Service+Provider#AddingandConfiguringaServiceProvider-Metadatafileconfiguration
>
>
>
> *Thanks & Best Regards!*
>
> *Achini Jayasena*
> *Software Engineer - QA | WSO2*
>
> Email: achi...@wso2.com
> Mobile: +943 882 897
>
> [image: http://wso2.com/signature] 
>
> On Fri, Jul 20, 2018 at 8:40 PM, Farasath Ahamed 
> wrote:
>
>> Hi Achini,
>>
>> Seems like there is a possible issue with the metadata file you have
>> created. (Initially, I thought it was due to a binary character in the
>> file, but it doesn't seem to be the case). A similar error has been
>> reported in [1]. And the resolution was to fix the 
>> with a specific format (With XML namespaces etc.)
>>
>> I created a metadata file using https://www.samltool.com/sp_metadata.php
>> with the same details(see the attachment) and uploaded it to IS 5.5.0 WUM
>> pack and it worked without any issue. To find the issue with your metadata
>> file can you explain how you generated the metadata file?
>>
>>
>> [1]
>> http://codeverge.com/novell.support.access-manager/error-importing-saml2-metadata/1980697
>>
>> On Fri, Jul 20, 2018 at 4:10 PM, Achini Jayasena 
>> wrote:
>>
>>> Hi all,
>>>
>>> Seems this is a bug and I have created a git issue [1]. please find the
>>> error log from below.
>>>
>>> product version. 5.5 latest wum update.
>>>
>>> [1] - https://github.com/wso2/product-is/issues/3453
>>>
>>> [2018-07-20 15:18:57,194] ERROR
>>> {org.wso2.carbon.identity.sp.metadata.saml2.util.Parser} -  Error While
>>> reading Service Provider metadata xml
>>> org.xml.sax.SAXParseException: Element type "EntityDescriptor" must be
>>> followed by either attribute specifications, ">" or "/>".
>>> at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
>>> at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
>>> at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
>>> at org.wso2.carbon.identity.sp.me
>>> tadata.saml2.util.Parser.generateMetadataObjectFromString(Parser.java:252)
>>> at org.wso2.carbon.identity.sp.me
>>> tadata.saml2.util.Parser.parse(Parser.java:199)
>>> at
>>> org.wso2.carbon.identity.sso.saml.admin.SAMLSSOConfigAdmin.uploadRelyingPartyServiceProvider(SAMLSSOConfigAdmin.java:148)
>>> at
>>> org.wso2.carbon.identity.sso.saml.SAMLSSOConfigService.uploadRPServiceProvider(SAMLSSOConfigService.java:71)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>> at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>> at java.lang.reflect.Method.invoke(Method.java:498)
>>> at
>>> org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212)
>>> at
>>> org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:117)
>>> at
>>> org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
>>> at
>>> org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110)
>>> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
>>> at
>>> org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:170)
>>> at
>>> org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:82)
>>> at
>>> org.wso2.carbon.core.transports.local.CarbonLocalTransportSender.finalizeSendWithToAddress(CarbonLocalTransportSender.java:45)
>>> at
>>> org.apache.axis2.transport.local.LocalTransportSender.invoke(LocalTransportSender.java:77)
>>> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
>>> at
>>> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:441)
>>> at
>>> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:227)
>>> at
>>> org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
>>> at
>>> 

Re: [Dev] IAM: Error while uploading the metadata file in Sp creation.

2018-07-23 Thread Achini Jayasena
Hi Farasath and Doc team,

@ Farasath, I  got the matadata file sample given in the document. [1].
It's working  after add XML name spaces.
And also is there a way to enable the response signing through the metadata
file upload? Is metadata file support for all manual saml configurations in
IS?

@doc team, Please do the update for metadata configuration file in
document  [1] since the given sample not working without Xml name spaces.

Please find the updated metadata file attached here with.

[1] : https://docs.wso2.com/display/IS550/Adding+and+Configuring+a
+Service+Provider#AddingandConfiguringaServiceProvider-Metad
atafileconfiguration



*Thanks & Best Regards!*

*Achini Jayasena*
*Software Engineer - QA | WSO2*

Email: achi...@wso2.com
Mobile: +943 882 897

[image: http://wso2.com/signature] 

On Fri, Jul 20, 2018 at 8:40 PM, Farasath Ahamed  wrote:

> Hi Achini,
>
> Seems like there is a possible issue with the metadata file you have
> created. (Initially, I thought it was due to a binary character in the
> file, but it doesn't seem to be the case). A similar error has been
> reported in [1]. And the resolution was to fix the 
> with a specific format (With XML namespaces etc.)
>
> I created a metadata file using https://www.samltool.com/sp_metadata.php
> with the same details(see the attachment) and uploaded it to IS 5.5.0 WUM
> pack and it worked without any issue. To find the issue with your metadata
> file can you explain how you generated the metadata file?
>
>
> [1] http://codeverge.com/novell.support.access-manager/
> error-importing-saml2-metadata/1980697
>
> On Fri, Jul 20, 2018 at 4:10 PM, Achini Jayasena  wrote:
>
>> Hi all,
>>
>> Seems this is a bug and I have created a git issue [1]. please find the
>> error log from below.
>>
>> product version. 5.5 latest wum update.
>>
>> [1] - https://github.com/wso2/product-is/issues/3453
>>
>> [2018-07-20 15:18:57,194] ERROR 
>> {org.wso2.carbon.identity.sp.metadata.saml2.util.Parser}
>> -  Error While reading Service Provider metadata xml
>> org.xml.sax.SAXParseException: Element type "EntityDescriptor" must be
>> followed by either attribute specifications, ">" or "/>".
>> at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
>> at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
>> at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
>> at org.wso2.carbon.identity.sp.metadata.saml2.util.Parser.gener
>> ateMetadataObjectFromString(Parser.java:252)
>> at org.wso2.carbon.identity.sp.metadata.saml2.util.Parser.parse
>> (Parser.java:199)
>> at org.wso2.carbon.identity.sso.saml.admin.SAMLSSOConfigAdmin.u
>> ploadRelyingPartyServiceProvider(SAMLSSOConfigAdmin.java:148)
>> at org.wso2.carbon.identity.sso.saml.SAMLSSOConfigService.uploa
>> dRPServiceProvider(SAMLSSOConfigService.java:71)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
>> ssorImpl.java:62)
>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
>> thodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:498)
>> at org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RP
>> CUtil.java:212)
>> at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusi
>> nessLogic(RPCMessageReceiver.java:117)
>> at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invo
>> keBusinessLogic(AbstractInOutMessageReceiver.java:40)
>> at org.apache.axis2.receivers.AbstractMessageReceiver.receive(A
>> bstractMessageReceiver.java:110)
>> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
>> at org.apache.axis2.transport.local.LocalTransportReceiver.proc
>> essMessage(LocalTransportReceiver.java:170)
>> at org.apache.axis2.transport.local.LocalTransportReceiver.proc
>> essMessage(LocalTransportReceiver.java:82)
>> at org.wso2.carbon.core.transports.local.CarbonLocalTransportSe
>> nder.finalizeSendWithToAddress(CarbonLocalTransportSender.java:45)
>> at org.apache.axis2.transport.local.LocalTransportSender.invoke
>> (LocalTransportSender.java:77)
>> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
>> at org.apache.axis2.description.OutInAxisOperationClient.send(O
>> utInAxisOperation.java:441)
>> at org.apache.axis2.description.OutInAxisOperationClient.execut
>> eImpl(OutInAxisOperation.java:227)
>> at org.apache.axis2.client.OperationClient.execute(OperationCli
>> ent.java:149)
>> at org.wso2.carbon.identity.sso.saml.stub.IdentitySAMLSSOConfig
>> ServiceStub.uploadRPServiceProvider(IdentitySAMLSSOConfigSer
>> viceStub.java:3033)
>> at org.wso2.carbon.identity.sso.saml.ui.client.SAMLSSOConfigSer
>> viceClient.uploadServiceProvider(SAMLSSOConfigServiceClient.java:95)
>> at org.wso2.carbon.identity.sso.saml.ui.client.SamlSPMetadataUp
>> loadExecutor.execute(SamlSPMetadataUploadExecutor.java:88)
>> 

Re: [Dev] IAM: Error while uploading the metadata file in Sp creation.

2018-07-20 Thread Farasath Ahamed
Hi Achini,

Seems like there is a possible issue with the metadata file you have
created. (Initially, I thought it was due to a binary character in the
file, but it doesn't seem to be the case). A similar error has been
reported in [1]. And the resolution was to fix the  with
a specific format (With XML namespaces etc.)

I created a metadata file using https://www.samltool.com/sp_metadata.php
with the same details(see the attachment) and uploaded it to IS 5.5.0 WUM
pack and it worked without any issue. To find the issue with your metadata
file can you explain how you generated the metadata file?


[1]
http://codeverge.com/novell.support.access-manager/error-importing-saml2-metadata/1980697

On Fri, Jul 20, 2018 at 4:10 PM, Achini Jayasena  wrote:

> Hi all,
>
> Seems this is a bug and I have created a git issue [1]. please find the
> error log from below.
>
> product version. 5.5 latest wum update.
>
> [1] - https://github.com/wso2/product-is/issues/3453
>
> [2018-07-20 15:18:57,194] ERROR 
> {org.wso2.carbon.identity.sp.metadata.saml2.util.Parser}
> -  Error While reading Service Provider metadata xml
> org.xml.sax.SAXParseException: Element type "EntityDescriptor" must be
> followed by either attribute specifications, ">" or "/>".
> at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
> at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
> at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
> at org.wso2.carbon.identity.sp.metadata.saml2.util.Parser.gener
> ateMetadataObjectFromString(Parser.java:252)
> at org.wso2.carbon.identity.sp.metadata.saml2.util.Parser.parse
> (Parser.java:199)
> at org.wso2.carbon.identity.sso.saml.admin.SAMLSSOConfigAdmin.u
> ploadRelyingPartyServiceProvider(SAMLSSOConfigAdmin.java:148)
> at org.wso2.carbon.identity.sso.saml.SAMLSSOConfigService.uploa
> dRPServiceProvider(SAMLSSOConfigService.java:71)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
> ssorImpl.java:62)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
> thodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(
> RPCUtil.java:212)
> at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusi
> nessLogic(RPCMessageReceiver.java:117)
> at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invo
> keBusinessLogic(AbstractInOutMessageReceiver.java:40)
> at org.apache.axis2.receivers.AbstractMessageReceiver.receive(A
> bstractMessageReceiver.java:110)
> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
> at org.apache.axis2.transport.local.LocalTransportReceiver.proc
> essMessage(LocalTransportReceiver.java:170)
> at org.apache.axis2.transport.local.LocalTransportReceiver.proc
> essMessage(LocalTransportReceiver.java:82)
> at org.wso2.carbon.core.transports.local.CarbonLocalTransportSe
> nder.finalizeSendWithToAddress(CarbonLocalTransportSender.java:45)
> at org.apache.axis2.transport.local.LocalTransportSender.invoke
> (LocalTransportSender.java:77)
> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
> at org.apache.axis2.description.OutInAxisOperationClient.send(O
> utInAxisOperation.java:441)
> at org.apache.axis2.description.OutInAxisOperationClient.execut
> eImpl(OutInAxisOperation.java:227)
> at org.apache.axis2.client.OperationClient.execute(OperationCli
> ent.java:149)
> at org.wso2.carbon.identity.sso.saml.stub.IdentitySAMLSSOConfig
> ServiceStub.uploadRPServiceProvider(IdentitySAMLSSOConfigServiceStub.
> java:3033)
> at org.wso2.carbon.identity.sso.saml.ui.client.SAMLSSOConfigSer
> viceClient.uploadServiceProvider(SAMLSSOConfigServiceClient.java:95)
> at org.wso2.carbon.identity.sso.saml.ui.client.SamlSPMetadataUp
> loadExecutor.execute(SamlSPMetadataUploadExecutor.java:88)
> at org.wso2.carbon.ui.transports.fileupload.AbstractFileUploadE
> xecutor.executeGeneric(AbstractFileUploadExecutor.java:104)
> at org.wso2.carbon.ui.transports.fileupload.FileUploadExecutorM
> anager$CarbonXmlFileUploadExecHandler.execute(FileUploadExec
> utorManager.java:436)
> at org.wso2.carbon.ui.transports.fileupload.FileUploadExecutorM
> anager$FileUploadExecutionHandlerManager.startExec(FileUploa
> dExecutorManager.java:320)
> at org.wso2.carbon.ui.transports.fileupload.FileUploadExecutorM
> anager.execute(FileUploadExecutorManager.java:127)
> at org.wso2.carbon.ui.transports.FileUploadServlet.doPost(FileU
> ploadServlet.java:57)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:650)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
> at org.eclipse.equinox.http.helper.ContextPathServletAdaptor.se
> rvice(ContextPathServletAdaptor.java:37)
> at org.eclipse.equinox.http.servlet.internal.ServletRegistratio
> 

Re: [Dev] IAM: Error while uploading the metadata file in Sp creation.

2018-07-20 Thread Achini Jayasena
Hi all,

Seems this is a bug and I have created a git issue [1]. please find the
error log from below.

product version. 5.5 latest wum update.

[1] - https://github.com/wso2/product-is/issues/3453

[2018-07-20 15:18:57,194] ERROR
{org.wso2.carbon.identity.sp.metadata.saml2.util.Parser}
-  Error While reading Service Provider metadata xml
org.xml.sax.SAXParseException: Element type "EntityDescriptor" must be
followed by either attribute specifications, ">" or "/>".
at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
at org.wso2.carbon.identity.sp.metadata.saml2.util.Parser.
generateMetadataObjectFromString(Parser.java:252)
at org.wso2.carbon.identity.sp.metadata.saml2.util.Parser.
parse(Parser.java:199)
at org.wso2.carbon.identity.sso.saml.admin.SAMLSSOConfigAdmin.
uploadRelyingPartyServiceProvider(SAMLSSOConfigAdmin.java:148)
at org.wso2.carbon.identity.sso.saml.SAMLSSOConfigService.
uploadRPServiceProvider(SAMLSSOConfigService.java:71)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.
java:212)
at org.apache.axis2.rpc.receivers.RPCMessageReceiver.
invokeBusinessLogic(RPCMessageReceiver.java:117)
at org.apache.axis2.receivers.AbstractInOutMessageReceiver.
invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
at org.apache.axis2.receivers.AbstractMessageReceiver.receive(
AbstractMessageReceiver.java:110)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
at org.apache.axis2.transport.local.LocalTransportReceiver.
processMessage(LocalTransportReceiver.java:170)
at org.apache.axis2.transport.local.LocalTransportReceiver.
processMessage(LocalTransportReceiver.java:82)
at org.wso2.carbon.core.transports.local.CarbonLocalTransportSender.
finalizeSendWithToAddress(CarbonLocalTransportSender.java:45)
at org.apache.axis2.transport.local.LocalTransportSender.
invoke(LocalTransportSender.java:77)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
at org.apache.axis2.description.OutInAxisOperationClient.send(
OutInAxisOperation.java:441)
at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(
OutInAxisOperation.java:227)
at org.apache.axis2.client.OperationClient.execute(
OperationClient.java:149)
at org.wso2.carbon.identity.sso.saml.stub.IdentitySAMLSSOConfigServiceSt
ub.uploadRPServiceProvider(IdentitySAMLSSOConfigServiceStub.java:3033)
at org.wso2.carbon.identity.sso.saml.ui.client.
SAMLSSOConfigServiceClient.uploadServiceProvider(SAMLSSOConfigServiceClient.
java:95)
at org.wso2.carbon.identity.sso.saml.ui.client.
SamlSPMetadataUploadExecutor.execute(SamlSPMetadataUploadExecutor.java:88)
at org.wso2.carbon.ui.transports.fileupload.AbstractFileUploadExecutor.
executeGeneric(AbstractFileUploadExecutor.java:104)
at org.wso2.carbon.ui.transports.fileupload.FileUploadExecutorManager$
CarbonXmlFileUploadExecHandler.execute(FileUploadExecutorManager.java:436)
at org.wso2.carbon.ui.transports.fileupload.FileUploadExecutorManager$
FileUploadExecutionHandlerManager.startExec(FileUploadExecutorManager.
java:320)
at org.wso2.carbon.ui.transports.fileupload.FileUploadExecutorManager.
execute(FileUploadExecutorManager.java:127)
at org.wso2.carbon.ui.transports.FileUploadServlet.doPost(
FileUploadServlet.java:57)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:650)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
at org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(
ContextPathServletAdaptor.java:37)
at org.eclipse.equinox.http.servlet.internal.
ServletRegistration.service(ServletRegistration.java:61)
at org.eclipse.equinox.http.servlet.internal.ProxyServlet.
processAlias(ProxyServlet.java:128)
at org.eclipse.equinox.http.servlet.internal.ProxyServlet.
service(ProxyServlet.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
at org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.
service(DelegationServlet.java:68)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:208)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(
WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:208)
at