[Dev] [IS6] [M2] Add CXF Dependencies

2017-07-13 Thread Isuranga Perera
Hi All,

I'm trying to add CXF support to IS6 m2. Even though the readme file
mentions that external libraries have to be added to lib folder there isn't
a folder named lib. So can you suggest a way to add cxf libraries to IS6 m2.

Best Regards
Isuranga Perera
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Config Provider Non-OSGI Mode] Make secure-vault related configuration files optional when using Config Provider

2017-07-13 Thread Danesh Kuruppu
Hi Mohan,

Thanks for reporting. We will consider this in the next release. We will
remove the secvault validation check when creating config provider.

Regards
Danesh

On Thu, Jul 6, 2017 at 10:51 AM, Mohanadarshan Vivekanandalingam <
mo...@wso2.com> wrote:

> Hi Team,
>
> At the moment, we have to add secure vault related configuration files
> (around 3-4 files) when using Config Provider in non-osgi mode even though
> I don't want secure vault (and only need config-provide features). Can we
> make these files mandatory only when secure vault is enabled. Can we
> consider fixing this for next release of Carbon-Config ?
>
> I have created an issue in [1].
>
> [1] https://github.com/wso2/carbon-config/issues/40
>
> Thanks,
> Mohan
>
> --
> *V. Mohanadarshan*
> *Associate Tech Lead,*
> *Data Technologies Team,*
> *WSO2, Inc. http://wso2.com  *
> *lean.enterprise.middleware.*
>
> email: mo...@wso2.com
> phone:(+94) 771117673 <+94%2077%20111%207673>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

*Danesh Kuruppu*
Senior Software Engineer | WSO2

Email: dan...@wso2.com
Mobile: +94 (77) 1690552
Web: WSO2 Inc 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Getting meta data of consumed file with the carbon message.

2017-07-13 Thread Pubudu Fernando
Hi,

Thanks for pointing it out Minudika. We will add the ability to retrieve
meta data of files.

Thanks
Pubudu

On Fri, Jul 14, 2017 at 1:01 AM, Minudika Malshan  wrote:

> I was referring to FileConsumer.java[1] in PR-314
> .
>
> [1] https://github.com/wso2/carbon-transports/pull/314/files#diff-
> 518cebee9a97a86819ac8daa5b646cdaR319
>
> BR
>
> On Thu, Jul 13, 2017 at 8:49 PM, Minudika Malshan 
> wrote:
>
>> Hi,
>>
>> In previous implementation of file transport, it is possible to get meta
>> data of consumed file from the carbon message which is received to message
>> processor. [1]
>>
>> Will it be possible in the new one also?
>>
>> Could you please check and confirm this because those data can be
>> necessary in siddhi level if they are required as transport properties
>> (trp).
>>
>> [1] https://github.com/wso2/carbon-transports/blob/master/file/
>> org.wso2.carbon.transport.file/src/main/java/org/wso2/
>> carbon/transport/file/connector/server/FileConsumer.java#L337
>>
>> Thanks and regards!
>>
>>
>> --
>> *Minudika Gammanpila*
>> Software Engineer - WSO2
>>
>> Email   :  minud...@wso2.com
>> Mobile :  +94715659887 <+94%2071%20565%209887>
>> Web :  http://wso2.com 
>>
>
>
>
> --
> *Minudika Gammanpila*
> Software Engineer - WSO2
>
> Email   :  minud...@wso2.com
> Mobile :  +94715659887 <+94%2071%20565%209887>
> Web :  http://wso2.com 
>



-- 
Best Regards,

*Pubudu Fernando*
Software Engineer
WSO2, Inc. (www.wso2.com)
m: +94 77 888 2543

  


___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Getting meta data of consumed file with the carbon message.

2017-07-13 Thread Minudika Malshan
I was referring to FileConsumer.java[1] in PR-314
.

[1]
https://github.com/wso2/carbon-transports/pull/314/files#diff-518cebee9a97a86819ac8daa5b646cdaR319

BR

On Thu, Jul 13, 2017 at 8:49 PM, Minudika Malshan  wrote:

> Hi,
>
> In previous implementation of file transport, it is possible to get meta
> data of consumed file from the carbon message which is received to message
> processor. [1]
>
> Will it be possible in the new one also?
>
> Could you please check and confirm this because those data can be
> necessary in siddhi level if they are required as transport properties
> (trp).
>
> [1] https://github.com/wso2/carbon-transports/blob/master/
> file/org.wso2.carbon.transport.file/src/main/java/
> org/wso2/carbon/transport/file/connector/server/FileConsumer.java#L337
>
> Thanks and regards!
>
>
> --
> *Minudika Gammanpila*
> Software Engineer - WSO2
>
> Email   :  minud...@wso2.com
> Mobile :  +94715659887 <+94%2071%20565%209887>
> Web :  http://wso2.com 
>



-- 
*Minudika Gammanpila*
Software Engineer - WSO2

Email   :  minud...@wso2.com
Mobile :  +94715659887
Web :  http://wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DSS -3.5.0] - Send JSON batch request

2017-07-13 Thread Rajith Roshan
Hi Amaya,

Thanks for the help.
It was resolved after adding the "_batch_req" at the end of resource as
suggested.

Thanks!
Rajith

On Thu, Jul 13, 2017 at 7:07 PM, Manuri Amaya Perera 
wrote:

> Hi Rajith,
>
> Please try the format [1] adding "_batch_req" at the end of the resource
> you are trying with.
>
> [1] {
>"_post_supercededorder_batch_req":{
>   "_post_supercededorder":[
>  {
> "parentOrder":"gla/2002/486",
> "childOrder":"GLA/2017/449"
>  },
>  {
> "parentOrder":"GLA/2017/449",
> "childOrder":""
>  }
>   ]
>}
> }
>
> Thanks,
> Manuri
>
> On Thu, Jul 13, 2017 at 10:07 PM, Rajith Roshan  wrote:
>
>> Hi Devs,
>>
>> I have a json payload [1], which is working fine when sent to a
>> particular resource in DSS.
>> But when I enable batch requests in the DSS service and sends the
>> request[2] it fails with the error [4]. I tried sending the data in
>> format[3] as well. But it also fails with the same error.
>> Any help would be highly appreciated?
>>
>> [1] - {
>>"_post_supercededorder":{
>>   "parentOrder":"gla/2002/486",
>>   "childOrder":"GLA/2017/449"
>>}
>> }
>>
>> [2] -{
>>"_post_supercededorder_batch_req":{
>>   "_post_supercededorder":[
>>  {
>> "parentOrder":"gla/2002/486",
>> "childOrder":"GLA/2017/449"
>>  },
>>  {
>> "parentOrder":"GLA/2017/449",
>> "childOrder":""
>>  }
>>   ]
>>}
>> }
>>
>> [3] - {
>>"_post_supercededorder_batch_req":[
>>   {
>>  "_post_supercededorder":{
>> "parentOrder":"gla/2002/479",
>> "childOrder":"GLA/2017/450"
>>  }
>>   },
>>   {
>>  "_post_supercededorder":{
>> "parentOrder":"gla/2002/509",
>> "childOrder":"GLA/2017/450"
>>  }
>>   },
>>   {
>>  "_post_supercededorder":{
>> "parentOrder":"GLA/2017/450",
>> "childOrder":""
>>  }
>>   }
>>]
>> }
>>
>> [4] - Servlet.service() for servlet [bridgeservlet] in context with path
>> [/] threw exception
>> java.lang.NullPointerException
>> at org.apache.axis2.json.gson.GsonXMLStreamReader.validateArgum
>> entTypes(GsonXMLStreamReader.java:783)
>> at org.apache.axis2.json.gson.GsonXMLStreamReader.nextValue(Gso
>> nXMLStreamReader.java:734)
>> at org.apache.axis2.json.gson.GsonXMLStreamReader.readValue(Gso
>> nXMLStreamReader.java:626)
>> at org.apache.axis2.json.gson.GsonXMLStreamReader.stateTransiti
>> on(GsonXMLStreamReader.java:532)
>> at org.apache.axis2.json.gson.GsonXMLStreamReader.next(GsonXMLS
>> treamReader.java:178)
>> at org.apache.axiom.om.impl.builder.StAXOMBuilder.parserNext(
>> StAXOMBuilder.java:681)
>> at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBu
>> ilder.java:214)
>> at org.apache.axiom.om.impl.llom.OMSerializableImpl.build(OMSer
>> ializableImpl.java:78)
>> at org.apache.axiom.om.impl.llom.OMElementImpl.build(OMElementI
>> mpl.java:722)
>> at org.apache.axiom.om.impl.llom.OMElementImpl.detach(OMElement
>> Impl.java:700)
>> at org.apache.axiom.om.impl.llom.OMNodeImpl.setParent(OMNodeImp
>> l.java:105)
>> at org.apache.axiom.om.impl.llom.OMElementImpl.addChild(OMEleme
>> ntImpl.java:296)
>> at org.apache.axiom.om.impl.llom.OMElementImpl.addChild(OMEleme
>> ntImpl.java:212)
>> at org.apache.axiom.soap.impl.llom.SOAPBodyImpl.addChild(SOAPBo
>> dyImpl.java:231)
>> at org.apache.axis2.json.gson.JSONMessageHandler.invoke(JSONMes
>> sageHandler.java:84)
>> at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
>> at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
>> at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
>> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167)
>> at org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngi
>> ne(RESTUtil.java:144)
>> at org.apache.axis2.transport.http.util.RESTUtil.processXMLRequ
>> est(RESTUtil.java:89)
>> at org.apache.axis2.transport.http.AxisServlet$RestRequestProce
>> ssor.processXMLRequest(AxisServlet.java:831)
>> at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServl
>> et.java:227)
>> at org.wso2.carbon.core.transports.CarbonServlet.doPost(
>> CarbonServlet.java:231)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
>> at org.eclipse.equinox.http.servlet.internal.ServletRegistratio
>> n.service(ServletRegistration.java:61)
>> at org.eclipse.equinox.http.servlet.internal.ProxyServlet.proce
>> ssAlias(ProxyServlet.java:128)
>> at org.eclipse.equinox.http.servlet.internal.ProxyServlet.servi
>> ce(ProxyServlet.java:68)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
>> at org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service
>> (DelegationServlet.java:68)
>> at 

Re: [Dev] [DSS -3.5.0] - Send JSON batch request

2017-07-13 Thread Manuri Amaya Perera
Hi Rajith,

Please try the format [1] adding "_batch_req" at the end of the resource
you are trying with.

[1] {
   "_post_supercededorder_batch_req":{
  "_post_supercededorder":[
 {
"parentOrder":"gla/2002/486",
"childOrder":"GLA/2017/449"
 },
 {
"parentOrder":"GLA/2017/449",
"childOrder":""
 }
  ]
   }
}

Thanks,
Manuri

On Thu, Jul 13, 2017 at 10:07 PM, Rajith Roshan  wrote:

> Hi Devs,
>
> I have a json payload [1], which is working fine when sent to a particular
> resource in DSS.
> But when I enable batch requests in the DSS service and sends the
> request[2] it fails with the error [4]. I tried sending the data in
> format[3] as well. But it also fails with the same error.
> Any help would be highly appreciated?
>
> [1] - {
>"_post_supercededorder":{
>   "parentOrder":"gla/2002/486",
>   "childOrder":"GLA/2017/449"
>}
> }
>
> [2] -{
>"_post_supercededorder_batch_req":{
>   "_post_supercededorder":[
>  {
> "parentOrder":"gla/2002/486",
> "childOrder":"GLA/2017/449"
>  },
>  {
> "parentOrder":"GLA/2017/449",
> "childOrder":""
>  }
>   ]
>}
> }
>
> [3] - {
>"_post_supercededorder_batch_req":[
>   {
>  "_post_supercededorder":{
> "parentOrder":"gla/2002/479",
> "childOrder":"GLA/2017/450"
>  }
>   },
>   {
>  "_post_supercededorder":{
> "parentOrder":"gla/2002/509",
> "childOrder":"GLA/2017/450"
>  }
>   },
>   {
>  "_post_supercededorder":{
> "parentOrder":"GLA/2017/450",
> "childOrder":""
>  }
>   }
>]
> }
>
> [4] - Servlet.service() for servlet [bridgeservlet] in context with path
> [/] threw exception
> java.lang.NullPointerException
> at org.apache.axis2.json.gson.GsonXMLStreamReader.validateArgumentTypes(
> GsonXMLStreamReader.java:783)
> at org.apache.axis2.json.gson.GsonXMLStreamReader.nextValue(
> GsonXMLStreamReader.java:734)
> at org.apache.axis2.json.gson.GsonXMLStreamReader.readValue(
> GsonXMLStreamReader.java:626)
> at org.apache.axis2.json.gson.GsonXMLStreamReader.stateTransition(
> GsonXMLStreamReader.java:532)
> at org.apache.axis2.json.gson.GsonXMLStreamReader.next(
> GsonXMLStreamReader.java:178)
> at org.apache.axiom.om.impl.builder.StAXOMBuilder.
> parserNext(StAXOMBuilder.java:681)
> at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(
> StAXOMBuilder.java:214)
> at org.apache.axiom.om.impl.llom.OMSerializableImpl.build(
> OMSerializableImpl.java:78)
> at org.apache.axiom.om.impl.llom.OMElementImpl.build(
> OMElementImpl.java:722)
> at org.apache.axiom.om.impl.llom.OMElementImpl.detach(
> OMElementImpl.java:700)
> at org.apache.axiom.om.impl.llom.OMNodeImpl.setParent(OMNodeImpl.java:105)
> at org.apache.axiom.om.impl.llom.OMElementImpl.addChild(
> OMElementImpl.java:296)
> at org.apache.axiom.om.impl.llom.OMElementImpl.addChild(
> OMElementImpl.java:212)
> at org.apache.axiom.soap.impl.llom.SOAPBodyImpl.addChild(
> SOAPBodyImpl.java:231)
> at org.apache.axis2.json.gson.JSONMessageHandler.invoke(
> JSONMessageHandler.java:84)
> at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
> at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
> at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167)
> at org.apache.axis2.transport.http.util.RESTUtil.
> invokeAxisEngine(RESTUtil.java:144)
> at org.apache.axis2.transport.http.util.RESTUtil.
> processXMLRequest(RESTUtil.java:89)
> at org.apache.axis2.transport.http.AxisServlet$RestRequestProcessor.
> processXMLRequest(AxisServlet.java:831)
> at org.apache.axis2.transport.http.AxisServlet.doPost(
> AxisServlet.java:227)
> at org.wso2.carbon.core.transports.CarbonServlet.
> doPost(CarbonServlet.java:231)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
> 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:727)
> 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 

[Dev] [DSS -3.5.0] - Send JSON batch request

2017-07-13 Thread Rajith Roshan
Hi Devs,

I have a json payload [1], which is working fine when sent to a particular
resource in DSS.
But when I enable batch requests in the DSS service and sends the
request[2] it fails with the error [4]. I tried sending the data in
format[3] as well. But it also fails with the same error.
Any help would be highly appreciated?

[1] - {
   "_post_supercededorder":{
  "parentOrder":"gla/2002/486",
  "childOrder":"GLA/2017/449"
   }
}

[2] -{
   "_post_supercededorder_batch_req":{
  "_post_supercededorder":[
 {
"parentOrder":"gla/2002/486",
"childOrder":"GLA/2017/449"
 },
 {
"parentOrder":"GLA/2017/449",
"childOrder":""
 }
  ]
   }
}

[3] - {
   "_post_supercededorder_batch_req":[
  {
 "_post_supercededorder":{
"parentOrder":"gla/2002/479",
"childOrder":"GLA/2017/450"
 }
  },
  {
 "_post_supercededorder":{
"parentOrder":"gla/2002/509",
"childOrder":"GLA/2017/450"
 }
  },
  {
 "_post_supercededorder":{
"parentOrder":"GLA/2017/450",
"childOrder":""
 }
  }
   ]
}

[4] - Servlet.service() for servlet [bridgeservlet] in context with path
[/] threw exception
java.lang.NullPointerException
at
org.apache.axis2.json.gson.GsonXMLStreamReader.validateArgumentTypes(GsonXMLStreamReader.java:783)
at
org.apache.axis2.json.gson.GsonXMLStreamReader.nextValue(GsonXMLStreamReader.java:734)
at
org.apache.axis2.json.gson.GsonXMLStreamReader.readValue(GsonXMLStreamReader.java:626)
at
org.apache.axis2.json.gson.GsonXMLStreamReader.stateTransition(GsonXMLStreamReader.java:532)
at
org.apache.axis2.json.gson.GsonXMLStreamReader.next(GsonXMLStreamReader.java:178)
at
org.apache.axiom.om.impl.builder.StAXOMBuilder.parserNext(StAXOMBuilder.java:681)
at
org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:214)
at
org.apache.axiom.om.impl.llom.OMSerializableImpl.build(OMSerializableImpl.java:78)
at org.apache.axiom.om.impl.llom.OMElementImpl.build(OMElementImpl.java:722)
at
org.apache.axiom.om.impl.llom.OMElementImpl.detach(OMElementImpl.java:700)
at org.apache.axiom.om.impl.llom.OMNodeImpl.setParent(OMNodeImpl.java:105)
at
org.apache.axiom.om.impl.llom.OMElementImpl.addChild(OMElementImpl.java:296)
at
org.apache.axiom.om.impl.llom.OMElementImpl.addChild(OMElementImpl.java:212)
at
org.apache.axiom.soap.impl.llom.SOAPBodyImpl.addChild(SOAPBodyImpl.java:231)
at
org.apache.axis2.json.gson.JSONMessageHandler.invoke(JSONMessageHandler.java:84)
at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167)
at
org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine(RESTUtil.java:144)
at
org.apache.axis2.transport.http.util.RESTUtil.processXMLRequest(RESTUtil.java:89)
at
org.apache.axis2.transport.http.AxisServlet$RestRequestProcessor.processXMLRequest(AxisServlet.java:831)
at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:227)
at
org.wso2.carbon.core.transports.CarbonServlet.doPost(CarbonServlet.java:231)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
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:727)
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
org.wso2.carbon.ui.filters.CSRFPreventionFilter.doFilter(CSRFPreventionFilter.java:88)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at
org.wso2.carbon.ui.filters.CRLFPreventionFilter.doFilter(CRLFPreventionFilter.java:59)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at
org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61)
at

Re: [Dev] Are we planning to ship Rest API authentication for IS 5.4.0?

2017-07-13 Thread Isura Karunaratne
Hi Johann,

On Thu, Jul 13, 2017 at 6:45 PM Johann Nallathamby  wrote:

> Hi IAM Team,
>
> As I understand many WSO2 Identity Server users are writing their own Rest
> APIs to authenticate users against Identity Server user stores. Are we
> having any plans of shipping one of this Rest APIs out of the box with IS
> 5.4.0 or 5.5.0?
>

Not with IS 5.4.0, We will prioritize this for IS 5.5.0

Thanks
Isura

>
>
> Thanks & Regards,
> Johann.
>
> --
>
> *Johann Dilantha Nallathamby*
> Senior Lead Solutions Engineer
> WSO2, Inc.
> lean.enterprise.middleware
>
> Mobile - *+9476950*
> Blog - *http://nallaa.wordpress.com *
>
-- 

*Isura Dilhara Karunaratne*
Senior Software Engineer | WSO2
Email: is...@wso2.com
Mob : +94 772 254 810
Blog : http://isurad.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Getting meta data of consumed file with the carbon message.

2017-07-13 Thread Minudika Malshan
Hi,

In previous implementation of file transport, it is possible to get meta
data of consumed file from the carbon message which is received to message
processor. [1]

Will it be possible in the new one also?

Could you please check and confirm this because those data can be necessary
in siddhi level if they are required as transport properties (trp).

[1]
https://github.com/wso2/carbon-transports/blob/master/file/org.wso2.carbon.transport.file/src/main/java/org/wso2/carbon/transport/file/connector/server/FileConsumer.java#L337

Thanks and regards!


-- 
*Minudika Gammanpila*
Software Engineer - WSO2

Email   :  minud...@wso2.com
Mobile :  +94715659887
Web :  http://wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS] xml based IdP configuration within a tenant

2017-07-13 Thread Hasanthi Purnima Dissanayake
Hi Henan,

If you create an IDP with out 'SHARED' prefix this will only allow the file
based identity provider to be visible in file based service providers and
it will only be visible to the super tenant. When you use the 'SHARED'
prefix as Indunil suggested above this will be visible across tenants and
in the SP registration UI. One of the main advantages of using file based
IDPs is providing the accessibility for the same identity provider from
multiple tenants. So please make note that we can't restrict this IDP to a
specific tenant.

Thanks,


Hasanthi Dissanayake

Software Engineer | WSO2

E: hasan...@wso2.com
M :0718407133| http://wso2.com 

On Thu, Jul 13, 2017 at 6:34 PM, Indunil Upeksha Rathnayake <
indu...@wso2.com> wrote:

> Hi,
>
> To make a file based IDP visible across tenants and in the SP registration
> UI as federated IDP, you can add the prefix "SHARED_" before the IDP name
> to the element.
> SHARED_identityProvider1
>
> But then that IDP will be shared for all the SPs in all the tenants.
> AFAIK, we can't configure a file based IDP to make it visible in only one
> tenant.
>
> Thanks and Regards
>
>
>
> On Thu, Jul 13, 2017 at 6:15 PM, Hanen Ben Rhouma 
> wrote:
>
>> Yes this is not an issue, all we're trying to achieve is a specific IdP
>> config residing within a tenant attached to a SaaS based SP config residing
>> within the super tenant. Is such scenario possible for a federation case?
>>
>>
>>
>>
>> Regards,
>> Hanen
>>
>> On Thu, Jul 13, 2017 at 12:56 PM, Indunil Upeksha Rathnayake <
>> indu...@wso2.com> wrote:
>>
>>> Hi Hanen,
>>>
>>> In the current IS release version, file based SP and IDPs will not be
>>> visible in the management console.
>>>
>>> Thanks and Regards
>>>
>>> On Thu, Jul 13, 2017 at 3:53 PM, Hanen Ben Rhouma 
>>> wrote:
>>>
 Hello Guys,

 Is it possible to create an IdP via xml file and make it visible only
 to a specific tenant?


 Regards,
 Hanen

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev


>>>
>>>
>>> --
>>> Indunil Upeksha Rathnayake
>>> Software Engineer | WSO2 Inc
>>> Emailindu...@wso2.com
>>> Mobile   0772182255 <07%2072%2018%2022%2055>
>>>
>>
>>
>
>
> --
> Indunil Upeksha Rathnayake
> Software Engineer | WSO2 Inc
> Emailindu...@wso2.com
> Mobile   0772182255
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Are we planning to ship Rest API authentication for IS 5.4.0?

2017-07-13 Thread Johann Nallathamby
Hi IAM Team,

As I understand many WSO2 Identity Server users are writing their own Rest
APIs to authenticate users against Identity Server user stores. Are we
having any plans of shipping one of this Rest APIs out of the box with IS
5.4.0 or 5.5.0?

Thanks & Regards,
Johann.

-- 

*Johann Dilantha Nallathamby*
Senior Lead Solutions Engineer
WSO2, Inc.
lean.enterprise.middleware

Mobile - *+9476950*
Blog - *http://nallaa.wordpress.com *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS] xml based IdP configuration within a tenant

2017-07-13 Thread Indunil Upeksha Rathnayake
Hi,

To make a file based IDP visible across tenants and in the SP registration
UI as federated IDP, you can add the prefix "SHARED_" before the IDP name
to the element.
SHARED_identityProvider1

But then that IDP will be shared for all the SPs in all the tenants. AFAIK,
we can't configure a file based IDP to make it visible in only one tenant.

Thanks and Regards



On Thu, Jul 13, 2017 at 6:15 PM, Hanen Ben Rhouma 
wrote:

> Yes this is not an issue, all we're trying to achieve is a specific IdP
> config residing within a tenant attached to a SaaS based SP config residing
> within the super tenant. Is such scenario possible for a federation case?
>
>
>
>
> Regards,
> Hanen
>
> On Thu, Jul 13, 2017 at 12:56 PM, Indunil Upeksha Rathnayake <
> indu...@wso2.com> wrote:
>
>> Hi Hanen,
>>
>> In the current IS release version, file based SP and IDPs will not be
>> visible in the management console.
>>
>> Thanks and Regards
>>
>> On Thu, Jul 13, 2017 at 3:53 PM, Hanen Ben Rhouma 
>> wrote:
>>
>>> Hello Guys,
>>>
>>> Is it possible to create an IdP via xml file and make it visible only to
>>> a specific tenant?
>>>
>>>
>>> Regards,
>>> Hanen
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Indunil Upeksha Rathnayake
>> Software Engineer | WSO2 Inc
>> Emailindu...@wso2.com
>> Mobile   0772182255 <07%2072%2018%2022%2055>
>>
>
>


-- 
Indunil Upeksha Rathnayake
Software Engineer | WSO2 Inc
Emailindu...@wso2.com
Mobile   0772182255
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS] xml based IdP configuration within a tenant

2017-07-13 Thread Hanen Ben Rhouma
Yes this is not an issue, all we're trying to achieve is a specific IdP
config residing within a tenant attached to a SaaS based SP config residing
within the super tenant. Is such scenario possible for a federation case?




Regards,
Hanen

On Thu, Jul 13, 2017 at 12:56 PM, Indunil Upeksha Rathnayake <
indu...@wso2.com> wrote:

> Hi Hanen,
>
> In the current IS release version, file based SP and IDPs will not be
> visible in the management console.
>
> Thanks and Regards
>
> On Thu, Jul 13, 2017 at 3:53 PM, Hanen Ben Rhouma 
> wrote:
>
>> Hello Guys,
>>
>> Is it possible to create an IdP via xml file and make it visible only to
>> a specific tenant?
>>
>>
>> Regards,
>> Hanen
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Indunil Upeksha Rathnayake
> Software Engineer | WSO2 Inc
> Emailindu...@wso2.com
> Mobile   0772182255 <07%2072%2018%2022%2055>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Foreach is not working properly under AggregateMediator's scope in response flow

2017-07-13 Thread Sudharma Subasinghe
Hi Aditya,

I have tested your configs and could observe the same behavior. Foreach
mediator is working properly.
This behavior is happening due to the Log mediator and it is fixed in [1].

[1] https://wso2.org/jira/browse/ESBJAVA-5202

Thanks
Sudharma

On Wed, Jul 12, 2017 at 2:04 PM, Vinod Kavinda  wrote:

> Hi Aditya,
> Please use Iterate mediator with the Aggregate mediator. Please refer [1],
> it explains the difference between the forEach and Iterate mediators.
>
> [1] - https://docs.wso2.com/display/ESB490/ForEach+Mediator
>
> Thanks,
> Vinod
>
> On Wed, Jul 12, 2017 at 1:34 PM, Sudharma Subasinghe 
> wrote:
>
>> Hi,
>>
>> Foreach mediator is working properly, above issue can be occurred when
>> log mediator is invoking.
>>
>> On Tue, Jul 11, 2017 at 2:48 PM, aditya shivankar <
>> shivankar.adit...@gmail.com> wrote:
>>
>>> Foreach is not working properly under AggregateMediator's scope in
>>> response flow
>>>
>>> Input request :
>>>
>>> [
>>> {
>>> "name" : "Home"
>>> },
>>> {
>>> "name" : "Car"
>>> },
>>> {
>>> "name" : "Mobile"
>>> }
>>> ]
>>>
>>>
>>> I am using iterate, to send each element of above array as request to a
>>> passthrough service( In myactual project this is not pass through. for
>>> better understanding of issue I kept it like this ).
>>>
>>> The responses of the pass through service are aggregated in one soap xml
>>> by AggregateMediator.
>>>
>>>
>>> Below is response from AggregateMediator
>>>
>>> 
>>> http://schemas.
>>> xmlsoap.org/soap/envelope/">
>>> 
>>> 
>>> 
>>> Mobile
>>> 
>>> 
>>> Car
>>> 
>>> 
>>> Home
>>> 
>>> 
>>> 
>>> 
>>>
>>>
>>> Using foreach to modify each response depending on some parameters
>>> coming in response.
>>> But Foreach is not working properly under Aggregator scope in response
>>> flow . Its response is weird.
>>> 
>>> -
>>> For-each response :
>>>
>>> [2017-07-11 14:07:44,696]  INFO - LogMediator msg4 = "Inside Foreach"
>>> [2017-07-11 14:07:44,697]  INFO - LogMediator To:
>>> http://www.w3.org/2005/08/addressing/anonymous, WSAction: , SOAPAction:
>>> , MessageID: urn:uuid:3e1fd827-12ab-413c-824d-c9daf7b6df7c, Direction:
>>> response, Envelope: 
>>> http://schemas.
>>> xmlsoap.org/soap/envelope/">
>>> 
>>> 
>>> Home
>>> 
>>> 
>>> 
>>>
>>> [2017-07-11 14:07:44,697]  INFO - LogMediator msg4 = "Inside Foreach"
>>> [2017-07-11 14:07:44,697]  INFO - LogMediator To:
>>> http://www.w3.org/2005/08/addressing/anonymous, WSAction: , SOAPAction:
>>> , MessageID: urn:uuid:3e1fd827-12ab-413c-824d-c9daf7b6df7c, Direction:
>>> response, Payload: {"name":"Home"}
>>>
>>> [2017-07-11 14:07:44,697]  INFO - LogMediator msg4 = "Inside Foreach"
>>> [2017-07-11 14:07:44,698]  INFO - LogMediator To:
>>> http://www.w3.org/2005/08/addressing/anonymous, WSAction: , SOAPAction:
>>> , MessageID: urn:uuid:3e1fd827-12ab-413c-824d-c9daf7b6df7c, Direction:
>>> response, Payload: {"name":"Home"}
>>>
>>> 
>>> 
>>> The second and third iterate of foreach should have been like below :
>>>
>>> http://schemas.
>>> xmlsoap.org/soap/envelope/">
>>> 
>>> 
>>> Mobile
>>> 
>>> 
>>> 
>>>
>>> http://schemas.
>>> xmlsoap.org/soap/envelope/">
>>> 
>>> 
>>> Car
>>> 
>>> 
>>> 
>>>
>>> Instead of :
>>>
>>>  Payload: {"name":"Home"}
>>>  Payload: {"name":"Home"}
>>>
>>>  Please find attached flow xml's.
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Sudharma Subasinghe,
>> Software Engineer,
>> WSO2 Inc.
>> Email: sudhar...@wso2.com 
>> Mobile : +94 710 565 157 <%2B94%20718%20210%20200>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Vinod Kavinda
> Senior Software Engineer
> *WSO2 Inc. - lean . enterprise . middleware .*
> Mobile : +94 (0) 712 415544
> Blog : http://soatechflicks.blogspot.com/
> [image: http://wso2.com/signature]
> 
>
>


-- 
Sudharma Subasinghe,
Software Engineer,
WSO2 Inc.
Email: sudhar...@wso2.com 
Mobile : +94 710 565 157 <%2B94%20718%20210%20200>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Issues found in ReaadOnlyUserStoreManager

2017-07-13 Thread Johann Nallathamby
Hi IAM Team,

Following issues were uncovered in ReadOnlyUserStoreManager which are
critical to be fixed.

[1] https://wso2.org/jira/browse/IDENTITY-6145
[2] https://wso2.org/jira/browse/IDENTITY-6146

Thanks & Regards,,
Johann.

-- 

*Johann Dilantha Nallathamby*
Senior Lead Solutions Engineer
WSO2, Inc.
lean.enterprise.middleware

Mobile - *+9476950*
Blog - *http://nallaa.wordpress.com *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS] xml based IdP configuration within a tenant

2017-07-13 Thread Indunil Upeksha Rathnayake
Hi Hanen,

In the current IS release version, file based SP and IDPs will not be
visible in the management console.

Thanks and Regards

On Thu, Jul 13, 2017 at 3:53 PM, Hanen Ben Rhouma 
wrote:

> Hello Guys,
>
> Is it possible to create an IdP via xml file and make it visible only to a
> specific tenant?
>
>
> Regards,
> Hanen
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Indunil Upeksha Rathnayake
Software Engineer | WSO2 Inc
Emailindu...@wso2.com
Mobile   0772182255
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [IS] xml based IdP configuration within a tenant

2017-07-13 Thread Hanen Ben Rhouma
Hello Guys,

Is it possible to create an IdP via xml file and make it visible only to a
specific tenant?


Regards,
Hanen
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to correlate message?

2017-07-13 Thread Sudharma Subasinghe
Hi,

Yes, messageID for in and out messages are different and It is not
recommended to make alterations to it. Your approach is correct when
correlating in and out messages.

If you set a property as


inside inSquence, you can get it in outSequence as


I've obtained it even with soapFault occured, due to the backend error.

Thanks
Sudharma




On Mon, Jul 10, 2017 at 2:37 PM, Melodias  wrote:

> Hi,
>
> I was try it and that doesn't work. InSequence and outSequence has
> different
> ID:
> IN = urn:uuid:9472d761-0148-4b4d-9fd1-80d426ed9f15
> OUT = urn:uuid:d7fc77ec-2bb8-4508-9dfc-358f2de625cc
>
>
>
> --
> View this message in context: http://wso2-oxygen-tank.10903.
> n7.nabble.com/How-to-correlate-message-in-ESB-tp150139p150143.html
> Sent from the WSO2 Development mailing list archive at Nabble.com.
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>



-- 
Sudharma Subasinghe,
Software Engineer,
WSO2 Inc.
Email: sudhar...@wso2.com 
Mobile : +94 710 565 157 <%2B94%20718%20210%20200>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [IoTS] Warning message on Windows 10

2017-07-13 Thread Pubudu D.P
Guys,

While testing the IOTS 3.1.0 on Windows 10 with Oracle JDK 1.8.131 I have
observed the following warning message [1] on IoT core start up. Any idea
why we display this?

In document [2] it says IoT 3.0.0 supports Windows 10 with Oracle JDK 8.
Can you please verify if this line should be removed or if there's a reason
that we display this on start up?


[1] [IoT-Core]  WARN -
{org.wso2.carbon.core.bootup.validator.util.ValidationResultPrinter} The
running OS : Windows 10 is not a tested Operating System for running WSO2
Carbon

[2]
https://docs.wso2.com/display/compatibility/Tested+Operating+Systems+and+JDKs

Cheers,
Pubudu D.P
Senior Software Engineer - QA Team | WSO2 inc.
Mobile : +94775464547

Linkedin: https://uk.linkedin.com/in/pubududp
Medium: https://medium.com/@pubududp
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev