[Dev] [DEV][Urgent] Getting error while generating access tokens with openid scope

2015-12-20 Thread Sanjeewa Malalgoda
Hi Team,
While requesting access tokens with openid scope(see curl request[1]) i'm
getting following error[2].
I tested this with carbon-identity 5.0.5 based AM build and i don't think
5.0.6 do not have changes related to this use case.
I tested this with another white listed scopes to confirm this happen due
to white listed scopes or specific to openId.
We were able to get access tokens for normal white listed scopes but not
for openid scope.
Generate access tokens with openid scope is very common use case for all
API manager clients.
Did i missed anything here or we need to fix it (since this is NPE i think
we should fix this)?

[1]curl -k -d
"grant_type=password=admin=admin=openid" -H
"Authorization: Basic
VUFmMWFmZ3VCTzFaVE5QY0k2d2ZYbXNIQ1hVYTpUWURlT01nQjc3ME5DQ3RraTBZR3BNUVdQT2Nh"
https://10.100.1.65:8243/token

[2][2015-12-21 09:46:53,812] ERROR - OAuth2Service Error occurred while
issuing the access token for Client ID : UAf1afguBO1ZTNPcI6wfXmsHCXUa, User
ID admin, Scope : [openid] and Grant Type : password
org.wso2.carbon.identity.oauth2.IdentityOAuth2Exception: Error while
obtaining private key for super tenant
at
org.wso2.carbon.identity.openidconnect.DefaultIDTokenBuilder.signJWTWithRSA(DefaultIDTokenBuilder.java:351)
at
org.wso2.carbon.identity.openidconnect.DefaultIDTokenBuilder.signJWT(DefaultIDTokenBuilder.java:514)
at
org.wso2.carbon.identity.openidconnect.DefaultIDTokenBuilder.buildIDToken(DefaultIDTokenBuilder.java:237)
at
org.wso2.carbon.identity.oauth2.token.AccessTokenIssuer.issue(AccessTokenIssuer.java:224)
at
org.wso2.carbon.identity.oauth2.OAuth2Service.issueAccessToken(OAuth2Service.java:196)
at
org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint.getAccessToken(OAuth2TokenEndpoint.java:245)
at
org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint.issueAccessToken(OAuth2TokenEndpoint.java:111)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at
org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:188)
at
org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:104)
at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:204)
at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:101)
at
org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58)
at
org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:94)
at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:272)
at
org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
at
org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:249)
at
org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:248)
at
org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:222)
at
org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:153)
at
org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:171)
at
org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:289)
at
org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:209)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)
at
org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:265)
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.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504)
at

Re: [Dev] [VOTE] Release WSO2 Carbon Kernel 5.0.0 RC2

2015-12-20 Thread Samiyuru Senarathne
Tested with MSS. No issues were found.

[x] Stable - go ahead and release.

Best Regards,
Samiyuru

On Mon, Dec 21, 2015 at 1:08 AM, Kalpa Welivitigoda  wrote:

> Hi all,
>
> I tested the logging framework and jar-to bundle tool. No issues found.
>
> [x] Stable - go ahead and release
>
> On Sun, Dec 20, 2015 at 11:30 PM, Kishanthan Thangarajah <
> kishant...@wso2.com> wrote:
>
>> Tested both startup order resolver functionality and artifact deployment
>> engine functionality. No issues encountered.
>>
>> [x] Stable - go ahead and release.
>>
>> Thanks,
>>
>> On Sun, Dec 20, 2015 at 1:22 PM, Nipuni Perera  wrote:
>>
>>> Hi all,
>>>
>>> I have tested the launcher framework (loading launcher configurations
>>> from launcher.properties) with logging. No issues found except[1] which is
>>> already reported and will be fixed in 5.1.0.
>>>
>>> [1] https://wso2.org/jira/browse/CARBON-15745
>>>
>>> [x] Stable - go ahead and release
>>>
>>> Thanks,
>>> Nipuni
>>>
>>> On Sun, Dec 20, 2015 at 12:34 PM, Chiranga Alwis 
>>> wrote:
>>>
 Hi,

 I tested the following aspects:
 - jar-to-OSGi-bundle converter
 - converted OSGi bundles in dropins folder being  successfully deployed

 No issues discovered.

 [x] Stable - go ahead and release.

 On Sun, Dec 20, 2015 at 11:27 AM, Senduran Balasubramaniyam <
 sendu...@wso2.com> wrote:

> Hi all,
>
> I have tested product-gw's basic functionality with this release
> candidate.
> No issues found.
>
> [x] Stable - go ahead and release
>
> Regards
> Senduran
>
> On Sun, Dec 20, 2015 at 10:01 AM, Aruna Karunarathna 
> wrote:
>
>> I've tested, the following features
>>
>> 1. Logging framework
>> 2. Transport Management
>> 3. Jar to bundle conversion
>> 4. Dropins bundle deployment
>>
>> [x] Stable - go ahead and release
>>
>> Regards,
>> Aruna
>>
>> On Sat, Dec 19, 2015 at 11:50 PM, Manuri Amaya Perera <
>> manu...@wso2.com> wrote:
>>
>>> Hi,
>>>
>>> I created projects using the available archetypes in staging
>>> repository and built and installed via dropins and osgi console and 
>>> tested
>>> the expected functionality with the kernel 5.0.0 RC2 pack.
>>>
>>> [x] Stable - go ahead and release.
>>>
>>> Thank you.
>>>
>>> On Fri, Dec 18, 2015 at 5:15 PM, Kishanthan Thangarajah <
>>> kishant...@wso2.com> wrote:
>>>
 Hi Devs,

 This is the 2nd Release Candidate of WSO2 Carbon Kernel 5.0.0.

 This release fixes the following issues:
 https://wso2.org/jira/issues/?filter=12581

 Please download and test your products with kernel 5.0.0 RC2
 and vote.

 *​Source and binary distribution files:*

 https://github.com/wso2/carbon-kernel/releases/download/v5.0.0-RC2/wso2carbon-kernel-5.0.0-rc2.zip

 *Maven staging repository:*
 http://maven.wso2.org/nexus/content/repositories/orgwso2carbon-210/

 *The tag to be voted upon:*
 https://github.com/wso2/carbon-kernel/releases/tag/v5.0.0-RC2


 [ ] Broken - do not release (explain why)
 [ ] Stable - go ahead and release

 Thank you,
 Carbon Team

 --
 *Kishanthan Thangarajah*
 Associate Technical Lead,
 Platform Technologies Team,
 WSO2, Inc.
 lean.enterprise.middleware

 Mobile - +94773426635
 Blog - *http://kishanthan.wordpress.com
 *
 Twitter - *http://twitter.com/kishanthan
 *

>>>
>>>
>>>
>>> --
>>>
>>> *Manuri Amaya Perera*
>>>
>>> *Software Engineer*
>>>
>>> *WSO2 Inc.*
>>>
>>> *Blog: http://manuriamayaperera.blogspot.com
>>> *
>>>
>>
>>
>>
>> --
>>
>> *Aruna Sujith Karunarathna *| Software Engineer
>> WSO2, Inc | lean. enterprise. middleware.
>> #20, Palm Grove, Colombo 03, Sri Lanka
>> Mobile: +94 71 9040362 | Work: +94 112145345
>> Email: ar...@wso2.com | Web: www.wso2.com
>>
>>
>
>
>
> --
> *Senduran *
> Software Engineer,
> WSO2, Inc.;  http://wso2.com/ 
> Mobile: +94 77 952 6548
>



 --
 Chiranga Alwis,
 Software Engineering Intern,
 +94 77 5930497
 +94 77 6368208

>>>
>>>
>>>
>>> --
>>> Nipuni Perera
>>> Software Engineer; WSO2 Inc.; http://wso2.com
>>> Email: nip...@wso2.com
>>> Git hub profile: https://github.com/nipuni
>>> Blog : http://nipunipererablog.blogspot.com/
>>> Mobile: +94 (71) 5626680
>>> 
>>>
>>>
>>
>>
>> --
>> 

Re: [Dev] [DEV][Urgent] Getting error while generating access tokens with openid scope

2015-12-20 Thread Sanjeewa Malalgoda
On Mon, Dec 21, 2015 at 11:48 AM, Maduranga Siriwardena 
wrote:

> Hi Sanjeewa,
>
> We tried to reproduce the issue with IS 5.1.0 RC1 and we couldn't
> reproduce.
>
> Further we investigated and observed that the problem seems to be in
> KeyStoreManager in kernel [1]. In KeyStoreManager, primaryKeyStore is
> initialized from getPrimaryKeyStore() [2]. For IS getPrimaryKeyStore() is
> called from one of our components [3] and so primaryKeyStore is getting
> initialized. But for APIM this is not happening. As a workaround you can do
> the same from one of your components.
>
> [1]
> https://github.com/wso2/carbon-kernel/blob/v4.4.3/core/org.wso2.carbon.core/src/main/java/org/wso2/carbon/core/util/KeyStoreManager.java
> [2]
> https://github.com/wso2/carbon-kernel/blob/v4.4.3/core/org.wso2.carbon.core/src/main/java/org/wso2/carbon/core/util/KeyStoreManager.java#L328
> [3]
> https://github.com/wso2/carbon-identity/blob/v5.0.5/components/sts/org.wso2.carbon.sts/src/main/java/org/wso2/carbon/sts/STSDeploymentInterceptor.java#L157
>

If this key store initializing is required for OAuth endpoint and OAuth
service why don't we initialize from oauth components?
As i understood this issue is not happening in IS because some other
component initialize this instead of OAuth endpoint or service.
Let say we fixed it in our components(APIM), but still if someone installed
OAuth features into kernal or any other server they still see same issue.
So i think its better to add this to OAuth component itself.

>
> Thanks,
> Maduranga.
>
> On Mon, Dec 21, 2015 at 10:03 AM, Sanjeewa Malalgoda 
> wrote:
>
>> Hi Team,
>> While requesting access tokens with openid scope(see curl request[1]) i'm
>> getting following error[2].
>> I tested this with carbon-identity 5.0.5 based AM build and i don't think
>> 5.0.6 do not have changes related to this use case.
>> I tested this with another white listed scopes to confirm this happen due
>> to white listed scopes or specific to openId.
>> We were able to get access tokens for normal white listed scopes but not
>> for openid scope.
>> Generate access tokens with openid scope is very common use case for all
>> API manager clients.
>> Did i missed anything here or we need to fix it (since this is NPE i
>> think we should fix this)?
>>
>> [1]curl -k -d
>> "grant_type=password=admin=admin=openid" -H
>> "Authorization: Basic
>> VUFmMWFmZ3VCTzFaVE5QY0k2d2ZYbXNIQ1hVYTpUWURlT01nQjc3ME5DQ3RraTBZR3BNUVdQT2Nh"
>> https://10.100.1.65:8243/token
>>
>> [2][2015-12-21 09:46:53,812] ERROR - OAuth2Service Error occurred while
>> issuing the access token for Client ID : UAf1afguBO1ZTNPcI6wfXmsHCXUa, User
>> ID admin, Scope : [openid] and Grant Type : password
>> org.wso2.carbon.identity.oauth2.IdentityOAuth2Exception: Error while
>> obtaining private key for super tenant
>> at
>> org.wso2.carbon.identity.openidconnect.DefaultIDTokenBuilder.signJWTWithRSA(DefaultIDTokenBuilder.java:351)
>> at
>> org.wso2.carbon.identity.openidconnect.DefaultIDTokenBuilder.signJWT(DefaultIDTokenBuilder.java:514)
>> at
>> org.wso2.carbon.identity.openidconnect.DefaultIDTokenBuilder.buildIDToken(DefaultIDTokenBuilder.java:237)
>> at
>> org.wso2.carbon.identity.oauth2.token.AccessTokenIssuer.issue(AccessTokenIssuer.java:224)
>> at
>> org.wso2.carbon.identity.oauth2.OAuth2Service.issueAccessToken(OAuth2Service.java:196)
>> at
>> org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint.getAccessToken(OAuth2TokenEndpoint.java:245)
>> at
>> org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint.issueAccessToken(OAuth2TokenEndpoint.java:111)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:606)
>> at
>> org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:188)
>> at
>> org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:104)
>> at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:204)
>> at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:101)
>> at
>> org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58)
>> at
>> org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:94)
>> at
>> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:272)
>> at
>> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
>> at
>> org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:249)
>> at
>> org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:248)
>> at
>> org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:222)
>> at
>> 

[Dev] App Manager 1.1.0 latest build pack - 21-12-2015

2015-12-20 Thread Dinusha Senanayaka
Hi,

Please find $subject in [1].

[1]
http://builder1.us1.wso2.org/~appm/release-1.1.0/21-12-2015/wso2appm-1.1.0-SNAPSHOT-21-12-2015.zip

Regards,
Dinusha.

-- 
Dinusha Dilrukshi
Associate Technical Lead
WSO2 Inc.: http://wso2.com/
Mobile: +94725255071
Blog: http://dinushasblog.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Identity Server 5.1.0 RC1

2015-12-20 Thread Hasintha Indrajee
Hi all,

We are cancelling the vote due to the issue raised in [1] and will start a
new vote for Identity Server 5.1.0- RC2 shortly.

[1] https://wso2.org/jira/browse/IDENTITY-4241

On Mon, Dec 21, 2015 at 3:13 AM, Malithi Edirisinghe 
wrote:

> Hi Devs,
>
> I tested basic SP initiated and IdP initiated SAML SSO flows with signing
> and encryption enabled in a clustered setup. Didn't encounter with any
> issues.
>
> [x] Stable - go ahead and release.
>
> Thanks,
> Malithi.
>
> On Sun, Dec 20, 2015 at 12:47 PM, Godwin Shrimal  wrote:
>
>> Hi Devs,
>>
>> I tested major functionalities in XACML and PassiveSTS. No issues
>> encountered.
>>
>> [x] Stable - go ahead and release.
>>
>>
>> Thanks
>> Godwin
>>
>>
>>
>>
>> On Sun, Dec 20, 2015 at 8:27 PM, Damith Senanayake 
>> wrote:
>>
>>> Hi Devs,
>>>
>>> I tested the major functionalities of user management and user core.
>>>
>>> 1. creating/deleting/updating profiles of users
>>> 2. secondary user stores, addition and user operations of them
>>> 3. Tenant creation and basic user and user store operations of them.
>>>
>>> my vote is as follows :
>>>
>>> [x] - Stable, Go ahead and release.
>>>
>>> On Sun, Dec 20, 2015 at 7:06 AM, Harsha Thirimanna 
>>> wrote:
>>>
 Hi All,

 I tested following functionalities

 * Workflow
 Basic operations with embeded BPS
 Same operations with external BPS
 * XACML
 Policy creation
 Policy Publish
 Try out request
 Policy deployment in file
 Policy Cache
 Decision Cache


 So here is my vote.
 [x] -Stable - go ahead and release

 thanks,



 *Harsha Thirimanna*
 Senior Software Engineer; WSO2, Inc.; http://wso2.com
 * *
 *email: **hars...@wso2.com* * cell: +94 71 5186770 *
 *twitter: **http://twitter.com/ *
 *harshathirimannlinked-in: **http:
 **//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
 *

 *Lean . Enterprise . Middleware*


 On Fri, Dec 18, 2015 at 12:44 PM, Hasintha Indrajee 
 wrote:

> Hi Devs,
>
> This is the first release candidate of WSO2 Identity Server 5.1.0.
>
> This release fixes the following issues:
> https://wso2.org/jira/issues/?filter=12586
>
> Please download, test and vote.
>
> Source & binary distribution files:
> https://github.com/wso2/product-is/releases/tag/v5.1.0-rc1
>
> Maven staging repo:
> http://maven.wso2.org/nexus/content/repositories/orgwso2is-203/
>
> The tag to be voted upon:
> https://github.com/wso2/product-is/tree/v5.1.0-rc1
>
>
> [ ]  Stable - go ahead and release
> [ ]  Broken - do not release (explain why)
>
> Thanks and Regards,
> WSO2 Identity Server Team.
>
> --
> Hasintha Indrajee
> Software Engineer
> WSO2, Inc.
> Mobile:+94 771892453
>
>
> ___
> 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


>>>
>>>
>>> --
>>>
>>>
>>> *-Damith Senanayake-*+94712205272
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Godwin Amila Shrimal*
>> Senior Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: *+94772264165*
>> linkedin: *http://lnkd.in/KUum6D *
>> twitter: https://twitter.com/godwinamila
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> *Malithi Edirisinghe*
> Senior Software Engineer
> WSO2 Inc.
>
> Mobile : +94 (0) 718176807
> malit...@wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Hasintha Indrajee
Software Engineer
WSO2, Inc.
Mobile:+94 771892453
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Clarification on OUT_ONLY ESB proxy service scenario

2015-12-20 Thread Ayoma Wijethunga
Hi All,

In email with subject "ESB proxy service for mix of TwoChannel and InOnly
operations" [1
],
I raised a similar concern and asked about the recommended best practice.

Thanks Vijitha for your sample configuration. Is filtering based on
"action" the best practice in such situation (or is there anyway that we
could identify InOnly operations in configuration itself, without depending
on a static data such as "action name"). Quoting from email [1] :

When creating proxy service for a web service, what is the best practice to
> follow in order to avoid this type of problems?
> Do we create,
>
>- separate proxy services for each set of operations
>- use "switch" or "filter" mediator in the "in sequence" and "send" to
>OUT_ONLY endpoint depending on operation
>
> or what is the best path to follow?
>

[1]
http://wso2.markmail.org/message/5z4qmenkofqzmpox?q=6+of+16+++ESB+proxy+service+for+mix+of+TwoChannel+and+InOnly+operations

Thanks and best regards,
Ayoma

On Mon, Dec 21, 2015 at 10:54 AM, Anupama Pathirage 
wrote:

> Hi Vijitha,
>
> Thanks a lot for the clear explanation.
>
> On Fri, Dec 18, 2015 at 11:43 PM, Vijitha Ekanayake 
> wrote:
>
>> Hi Anupama,
>>
>> We set *OUT_ONLY *property to "true" on a message to indicate that no
>> response message is expected for it once it is forwarded from the ESB. This
>> prevents  the ESB from registering unnecessary callbacks for response
>> handling.
>>
>> One possible option to get sample working for client modes, We can check
>> the header value and change synapse configuration accordingly. We can
>> support for both types of operations by using config[1].
>>
>>
>> [1].
>>
>> > xmlns="http://ws.apache.org/ns/synapse; name="StockQuoteProxy" 
>> transports="https,http" statistics="disable" trace="disable" 
>> startOnLoad="true">
>>
>>   
>>  http://www.w3.org/2005/08/addressing; 
>> source="$header/wsa:Action" regex="urn:placeOrder">
>> 
>>> type="STRING" />
>> 
>>  
>>   
>>   
>>  
>>   
>>   
>>  > uri="http://localhost:9000/services/SimpleStockQuoteService; />
>>   
>>
>>> uri="file:repository/samples/resources/proxy/sample_proxy_1.wsdl" />
>>
>>
>>
>> Thanks,
>>
>> Vijitha.
>>
>>
>> On Fri, Dec 18, 2015 at 6:00 PM, Anupama Pathirage 
>> wrote:
>>
>>>
>>> Hi team,
>>>
>>> I get the following exception when I run the Sample 150 (Introduction to
>>> Proxy Services) in the WSO2 ESB 4.9.0 as mentioned in the [1
>>> ]
>>> with the client mode "placeorder" even though the order is placed correctly
>>> in the back end service.
>>>
>>> *Client Command used:*
>>> ant stockquote -Daddurl=http://localhost:8280/services/StockQuoteProxy
>>> -Dmode=placeorder -Dsymbol=MSFT
>>>
>>> *ESB Exception:*
>>> [2015-12-18 17:00:04,072] ERROR - NativeWorkerPool Uncaught exception
>>> java.lang.UnsupportedOperationException: An access occurred that is not
>>> valid.
>>> at
>>> org.apache.axis2.description.InOnlyAxisOperation.getMessage(InOnlyAxisOperation.java:117)
>>> at
>>> org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:299)
>>> at
>>> org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:172)
>>> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
>>> at
>>> org.apache.synapse.transport.passthru.ClientWorker.run(ClientWorker.java:247)
>>> at
>>> org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
>>> at
>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>>> at
>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>>> at java.lang.Thread.run(Thread.java:745)
>>>
>>> Since “PlaceOrder” is a method which does not return anything as a
>>> response for a request, it was possible to avoid this exception by setting
>>> the property OUT_ONLY for the in sequence as follows [2
>>> ].
>>>
>>> 
>>> >> type="STRING"/>
>>> 
>>>
>>> But this make the other client modes such as "quote" not working because
>>> it is trying to send a request which expects a response through an OUT_ONLY
>>> proxy which must be wrong in theoretically. So can you please let me know
>>> the proper way of handling above ESB exception while providing the support
>>> for both types of operations.
>>>
>>>
>>> [1]
>>> https://docs.wso2.com/display/ESB490/Sample+150%3A+Introduction+to+Proxy+Services
>>> [2] https://docs.wso2.com/display/ESB403/Generic+Properties
>>>
>>> Thanks and Regards,
>>> --
>>> Anupama Pathirage
>>> Associate Technical Lead

Re: [Dev] [DEV][Urgent] Getting error while generating access tokens with openid scope

2015-12-20 Thread Darshana Gunawardana
Hi Sanjeewa,

We tried directly invoking IS 5.1.0 RC1 oauth endpoint [1] and it gives the
access token [2] as expected.

Then tried with the same with APIM Dec 18th pack [3] and getting the error
you mentioned. So this should be some config mismatch. We are checking on
this further. Will let you know if we found the cause.

[1] https://localhost:9443/oauth2/token

[2]

{
"scope": "openid"
"token_type": "Bearer"
"expires_in": 3600
"refresh_token": "63bf2fecace4ea845d2163eca69c419c"
"id_token": "
eyJhbGciOiJSUzI1NiJ9.eyJhdXRoX3RpbWUiOjE0NTA2NzY3MDksImV4cCI6MTQ1MDY4MDMwOSwiYXpwIjoicnlmN1M0RFhLTlNwaWRyNlpsajkzQ2pGZnFjYSIsImF0X2hhc2giOiJDQ3MtcmZkQnR1RDA2WUpRb3lEcF9BIiwiYXVkIjpbInJ5ZjdTNERYS05TcGlkcjZabGo5M0NqRmZxY2EiXSwiaXNzIjoiaHR0cHM6XC9cL2xvY2FsaG9zdDo5NDQzXC9vYXV0aDJcL3Rva2VuIiwiaWF0IjoxNDUwNjc2NzA5fQ.J2NUAlNm-2-5EIIWpcdPVHyrvOYhUsOfBkpzhyqwa0OuzFv9nrkYYBtoM0qgzLk3jf9eCCtcsrOVpRgrd9OMaCPogz9bRe9OuANPS0_mf3jWKvFSdksQGE8eGSOWyBg4sAxfTCA-un39qTQBF6j3oSpHlXCr7dbWhaWy54vMu4c
"
"access_token": "8284fe02be7da25bd6349d3cb2241088"
}


[3] https://svn.wso2.org/repos/wso2/scratch/apim/builds/18-12-2015/

Thanks,

On Mon, Dec 21, 2015 at 10:03 AM, Sanjeewa Malalgoda 
wrote:

> Hi Team,
> While requesting access tokens with openid scope(see curl request[1]) i'm
> getting following error[2].
> I tested this with carbon-identity 5.0.5 based AM build and i don't think
> 5.0.6 do not have changes related to this use case.
> I tested this with another white listed scopes to confirm this happen due
> to white listed scopes or specific to openId.
> We were able to get access tokens for normal white listed scopes but not
> for openid scope.
> Generate access tokens with openid scope is very common use case for all
> API manager clients.
> Did i missed anything here or we need to fix it (since this is NPE i think
> we should fix this)?
>
> [1]curl -k -d
> "grant_type=password=admin=admin=openid" -H
> "Authorization: Basic
> VUFmMWFmZ3VCTzFaVE5QY0k2d2ZYbXNIQ1hVYTpUWURlT01nQjc3ME5DQ3RraTBZR3BNUVdQT2Nh"
> https://10.100.1.65:8243/token
>
> [2][2015-12-21 09:46:53,812] ERROR - OAuth2Service Error occurred while
> issuing the access token for Client ID : UAf1afguBO1ZTNPcI6wfXmsHCXUa, User
> ID admin, Scope : [openid] and Grant Type : password
> org.wso2.carbon.identity.oauth2.IdentityOAuth2Exception: Error while
> obtaining private key for super tenant
> at
> org.wso2.carbon.identity.openidconnect.DefaultIDTokenBuilder.signJWTWithRSA(DefaultIDTokenBuilder.java:351)
> at
> org.wso2.carbon.identity.openidconnect.DefaultIDTokenBuilder.signJWT(DefaultIDTokenBuilder.java:514)
> at
> org.wso2.carbon.identity.openidconnect.DefaultIDTokenBuilder.buildIDToken(DefaultIDTokenBuilder.java:237)
> at
> org.wso2.carbon.identity.oauth2.token.AccessTokenIssuer.issue(AccessTokenIssuer.java:224)
> at
> org.wso2.carbon.identity.oauth2.OAuth2Service.issueAccessToken(OAuth2Service.java:196)
> at
> org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint.getAccessToken(OAuth2TokenEndpoint.java:245)
> at
> org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint.issueAccessToken(OAuth2TokenEndpoint.java:111)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at
> org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:188)
> at
> org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:104)
> at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:204)
> at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:101)
> at
> org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58)
> at
> org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:94)
> at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:272)
> at
> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
> at
> org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:249)
> at
> org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:248)
> at
> org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:222)
> at
> org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:153)
> at
> org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:171)
> at
> org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:289)
> at
> org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:209)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)
> at
> 

Re: [Dev] [ML] Getting Error on executing sample of Java Client

2015-12-20 Thread Maheshakya Wijewardena
Hi,

In order to run the model usage sample, first you have to create a model
using the Machine Learner using the dataset (pima-indians-diabetes dataset)
and the algorithm (Logistic-Regression) with response variable (Class)
indicated in the sample. Then replace the downloaded-ml-model in
src/main/resources/ folder with the model you have generated. That way you
can use the model built with the ML version you have currently.
We have also updated the model in the resources folder[1].

Best regards.
[1]
https://github.com/wso2/carbon-ml/tree/master/samples/model-usage/src/main/resources

On Sun, Dec 20, 2015 at 11:09 AM, NIFRAS ISMAIL 
wrote:

> Hi,
>
> I have use wso2 ML 1.0.1 to create the model. Now i need to build a java
> client to read the model in my project.
>
> I have try to execute java client sample which is provided by carbon-ml
> git repo of wso2.
> https://github.com/wso2/carbon-ml/tree/master/samples/model-usage
>
> The project is build successfully using mvn clean install
>
> while on exection it gives this error . I am using ideaJ to execute the 
> MLModelUsageSample
> class.
>
> Exception in thread "main" java.io.InvalidClassException:
> org.wso2.carbon.ml.core.spark.models.MLClassificationModel; local class
> incompatible: stream classdesc serialVersionUID = -5405685346474685046,
> local class serialVersionUID = -4575625595152525041
> at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:621)
> at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1623)
> at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1518)
> at
> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1774)
> at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1351)
> at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1993)
> at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1918)
> at
> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1801)
> at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1351)
> at java.io.ObjectInputStream.readObject(ObjectInputStream.java:371)
> at MLModelUsageSample.deserializeMLModel(MLModelUsageSample.java:70)
> at MLModelUsageSample.main(MLModelUsageSample.java:48)
>
>
> Regards.
> *M. Nifras Ismail*
> [image: LinkedIn] 
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Pruthuvi Maheshakya Wijewardena

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


Re: [Dev] [DEV][Urgent] Getting error while generating access tokens with openid scope

2015-12-20 Thread Maduranga Siriwardena
Hi Sanjeewa,

We tried to reproduce the issue with IS 5.1.0 RC1 and we couldn't reproduce.

Further we investigated and observed that the problem seems to be in
KeyStoreManager in kernel [1]. In KeyStoreManager, primaryKeyStore is
initialized from getPrimaryKeyStore() [2]. For IS getPrimaryKeyStore() is
called from one of our components [3] and so primaryKeyStore is getting
initialized. But for APIM this is not happening. As a workaround you can do
the same from one of your components.

[1]
https://github.com/wso2/carbon-kernel/blob/v4.4.3/core/org.wso2.carbon.core/src/main/java/org/wso2/carbon/core/util/KeyStoreManager.java
[2]
https://github.com/wso2/carbon-kernel/blob/v4.4.3/core/org.wso2.carbon.core/src/main/java/org/wso2/carbon/core/util/KeyStoreManager.java#L328
[3]
https://github.com/wso2/carbon-identity/blob/v5.0.5/components/sts/org.wso2.carbon.sts/src/main/java/org/wso2/carbon/sts/STSDeploymentInterceptor.java#L157

Thanks,
Maduranga.

On Mon, Dec 21, 2015 at 10:03 AM, Sanjeewa Malalgoda 
wrote:

> Hi Team,
> While requesting access tokens with openid scope(see curl request[1]) i'm
> getting following error[2].
> I tested this with carbon-identity 5.0.5 based AM build and i don't think
> 5.0.6 do not have changes related to this use case.
> I tested this with another white listed scopes to confirm this happen due
> to white listed scopes or specific to openId.
> We were able to get access tokens for normal white listed scopes but not
> for openid scope.
> Generate access tokens with openid scope is very common use case for all
> API manager clients.
> Did i missed anything here or we need to fix it (since this is NPE i think
> we should fix this)?
>
> [1]curl -k -d
> "grant_type=password=admin=admin=openid" -H
> "Authorization: Basic
> VUFmMWFmZ3VCTzFaVE5QY0k2d2ZYbXNIQ1hVYTpUWURlT01nQjc3ME5DQ3RraTBZR3BNUVdQT2Nh"
> https://10.100.1.65:8243/token
>
> [2][2015-12-21 09:46:53,812] ERROR - OAuth2Service Error occurred while
> issuing the access token for Client ID : UAf1afguBO1ZTNPcI6wfXmsHCXUa, User
> ID admin, Scope : [openid] and Grant Type : password
> org.wso2.carbon.identity.oauth2.IdentityOAuth2Exception: Error while
> obtaining private key for super tenant
> at
> org.wso2.carbon.identity.openidconnect.DefaultIDTokenBuilder.signJWTWithRSA(DefaultIDTokenBuilder.java:351)
> at
> org.wso2.carbon.identity.openidconnect.DefaultIDTokenBuilder.signJWT(DefaultIDTokenBuilder.java:514)
> at
> org.wso2.carbon.identity.openidconnect.DefaultIDTokenBuilder.buildIDToken(DefaultIDTokenBuilder.java:237)
> at
> org.wso2.carbon.identity.oauth2.token.AccessTokenIssuer.issue(AccessTokenIssuer.java:224)
> at
> org.wso2.carbon.identity.oauth2.OAuth2Service.issueAccessToken(OAuth2Service.java:196)
> at
> org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint.getAccessToken(OAuth2TokenEndpoint.java:245)
> at
> org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint.issueAccessToken(OAuth2TokenEndpoint.java:111)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at
> org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:188)
> at
> org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:104)
> at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:204)
> at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:101)
> at
> org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58)
> at
> org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:94)
> at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:272)
> at
> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
> at
> org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:249)
> at
> org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:248)
> at
> org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:222)
> at
> org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:153)
> at
> org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:171)
> at
> org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:289)
> at
> org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:209)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)
> at
> org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:265)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
> at
> 

Re: [Dev] Clarification on OUT_ONLY ESB proxy service scenario

2015-12-20 Thread Anupama Pathirage
Hi Vijitha,

Thanks a lot for the clear explanation.

On Fri, Dec 18, 2015 at 11:43 PM, Vijitha Ekanayake 
wrote:

> Hi Anupama,
>
> We set *OUT_ONLY *property to "true" on a message to indicate that no
> response message is expected for it once it is forwarded from the ESB. This
> prevents  the ESB from registering unnecessary callbacks for response
> handling.
>
> One possible option to get sample working for client modes, We can check
> the header value and change synapse configuration accordingly. We can
> support for both types of operations by using config[1].
>
>
> [1].
>
>  xmlns="http://ws.apache.org/ns/synapse; name="StockQuoteProxy" 
> transports="https,http" statistics="disable" trace="disable" 
> startOnLoad="true">
>
>   
>  http://www.w3.org/2005/08/addressing; 
> source="$header/wsa:Action" regex="urn:placeOrder">
> 
> type="STRING" />
> 
>  
>   
>   
>  
>   
>   
>   uri="http://localhost:9000/services/SimpleStockQuoteService; />
>   
>
> uri="file:repository/samples/resources/proxy/sample_proxy_1.wsdl" />
>
>
>
> Thanks,
>
> Vijitha.
>
>
> On Fri, Dec 18, 2015 at 6:00 PM, Anupama Pathirage 
> wrote:
>
>>
>> Hi team,
>>
>> I get the following exception when I run the Sample 150 (Introduction to
>> Proxy Services) in the WSO2 ESB 4.9.0 as mentioned in the [1
>> ]
>> with the client mode "placeorder" even though the order is placed correctly
>> in the back end service.
>>
>> *Client Command used:*
>> ant stockquote -Daddurl=http://localhost:8280/services/StockQuoteProxy
>> -Dmode=placeorder -Dsymbol=MSFT
>>
>> *ESB Exception:*
>> [2015-12-18 17:00:04,072] ERROR - NativeWorkerPool Uncaught exception
>> java.lang.UnsupportedOperationException: An access occurred that is not
>> valid.
>> at
>> org.apache.axis2.description.InOnlyAxisOperation.getMessage(InOnlyAxisOperation.java:117)
>> at
>> org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:299)
>> at
>> org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:172)
>> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
>> at
>> org.apache.synapse.transport.passthru.ClientWorker.run(ClientWorker.java:247)
>> at
>> org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
>> at
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>> at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>> at java.lang.Thread.run(Thread.java:745)
>>
>> Since “PlaceOrder” is a method which does not return anything as a
>> response for a request, it was possible to avoid this exception by setting
>> the property OUT_ONLY for the in sequence as follows [2
>> ].
>>
>> 
>> 
>> 
>>
>> But this make the other client modes such as "quote" not working because
>> it is trying to send a request which expects a response through an OUT_ONLY
>> proxy which must be wrong in theoretically. So can you please let me know
>> the proper way of handling above ESB exception while providing the support
>> for both types of operations.
>>
>>
>> [1]
>> https://docs.wso2.com/display/ESB490/Sample+150%3A+Introduction+to+Proxy+Services
>> [2] https://docs.wso2.com/display/ESB403/Generic+Properties
>>
>> Thanks and Regards,
>> --
>> Anupama Pathirage
>> Associate Technical Lead
>> WSO2, Inc.  http://wso2.com/
>> Email: anup...@wso2.com
>> Mobile:+94 71 8273 979
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Vijitha Ekanayake
> Software Engineer*, *WSO2, Inc.; http://wso2.com/
> Mobile : +94 777 24 73 39 | +94 718 74 44 08
> lean.enterprise.middleware
>



-- 
Anupama Pathirage
Associate Technical Lead
WSO2, Inc.  http://wso2.com/
Email: anup...@wso2.com
Mobile:+94 71 8273 979
Blog:http://mycodeideas.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Carbon Kernel 5.0.0 RC2

2015-12-20 Thread Dinusha Boteju
Hi all,

Started the kernel using openjdk 8.
Started the server in windows 7.

Tested the Logging framework in both scenarios. No issues found.

[x] Stable - go ahead and release.

Best regards,
Dinusha


On Mon, Dec 21, 2015 at 10:07 AM, Samiyuru Senarathne 
wrote:

> Tested with MSS. No issues were found.
>
> [x] Stable - go ahead and release.
>
> Best Regards,
> Samiyuru
>
> On Mon, Dec 21, 2015 at 1:08 AM, Kalpa Welivitigoda 
> wrote:
>
>> Hi all,
>>
>> I tested the logging framework and jar-to bundle tool. No issues found.
>>
>> [x] Stable - go ahead and release
>>
>> On Sun, Dec 20, 2015 at 11:30 PM, Kishanthan Thangarajah <
>> kishant...@wso2.com> wrote:
>>
>>> Tested both startup order resolver functionality and artifact deployment
>>> engine functionality. No issues encountered.
>>>
>>> [x] Stable - go ahead and release.
>>>
>>> Thanks,
>>>
>>> On Sun, Dec 20, 2015 at 1:22 PM, Nipuni Perera  wrote:
>>>
 Hi all,

 I have tested the launcher framework (loading launcher configurations
 from launcher.properties) with logging. No issues found except[1] which is
 already reported and will be fixed in 5.1.0.

 [1] https://wso2.org/jira/browse/CARBON-15745

 [x] Stable - go ahead and release

 Thanks,
 Nipuni

 On Sun, Dec 20, 2015 at 12:34 PM, Chiranga Alwis 
 wrote:

> Hi,
>
> I tested the following aspects:
> - jar-to-OSGi-bundle converter
> - converted OSGi bundles in dropins folder being  successfully deployed
>
> No issues discovered.
>
> [x] Stable - go ahead and release.
>
> On Sun, Dec 20, 2015 at 11:27 AM, Senduran Balasubramaniyam <
> sendu...@wso2.com> wrote:
>
>> Hi all,
>>
>> I have tested product-gw's basic functionality with this release
>> candidate.
>> No issues found.
>>
>> [x] Stable - go ahead and release
>>
>> Regards
>> Senduran
>>
>> On Sun, Dec 20, 2015 at 10:01 AM, Aruna Karunarathna 
>> wrote:
>>
>>> I've tested, the following features
>>>
>>> 1. Logging framework
>>> 2. Transport Management
>>> 3. Jar to bundle conversion
>>> 4. Dropins bundle deployment
>>>
>>> [x] Stable - go ahead and release
>>>
>>> Regards,
>>> Aruna
>>>
>>> On Sat, Dec 19, 2015 at 11:50 PM, Manuri Amaya Perera <
>>> manu...@wso2.com> wrote:
>>>
 Hi,

 I created projects using the available archetypes in staging
 repository and built and installed via dropins and osgi console and 
 tested
 the expected functionality with the kernel 5.0.0 RC2 pack.

 [x] Stable - go ahead and release.

 Thank you.

 On Fri, Dec 18, 2015 at 5:15 PM, Kishanthan Thangarajah <
 kishant...@wso2.com> wrote:

> Hi Devs,
>
> This is the 2nd Release Candidate of WSO2 Carbon Kernel 5.0.0.
>
> This release fixes the following issues:
> https://wso2.org/jira/issues/?filter=12581
>
> Please download and test your products with kernel 5.0.0 RC2
> and vote.
>
> *​Source and binary distribution files:*
>
> https://github.com/wso2/carbon-kernel/releases/download/v5.0.0-RC2/wso2carbon-kernel-5.0.0-rc2.zip
>
> *Maven staging repository:*
> http://maven.wso2.org/nexus/content/repositories/orgwso2carbon-210/
>
> *The tag to be voted upon:*
> https://github.com/wso2/carbon-kernel/releases/tag/v5.0.0-RC2
>
>
> [ ] Broken - do not release (explain why)
> [ ] Stable - go ahead and release
>
> Thank you,
> Carbon Team
>
> --
> *Kishanthan Thangarajah*
> Associate Technical Lead,
> Platform Technologies Team,
> WSO2, Inc.
> lean.enterprise.middleware
>
> Mobile - +94773426635
> Blog - *http://kishanthan.wordpress.com
> *
> Twitter - *http://twitter.com/kishanthan
> *
>



 --

 *Manuri Amaya Perera*

 *Software Engineer*

 *WSO2 Inc.*

 *Blog: http://manuriamayaperera.blogspot.com
 *

>>>
>>>
>>>
>>> --
>>>
>>> *Aruna Sujith Karunarathna *| Software Engineer
>>> WSO2, Inc | lean. enterprise. middleware.
>>> #20, Palm Grove, Colombo 03, Sri Lanka
>>> Mobile: +94 71 9040362 | Work: +94 112145345
>>> Email: ar...@wso2.com | Web: www.wso2.com
>>>
>>>
>>
>>
>>
>> --
>> *Senduran *
>> Software Engineer,
>> WSO2, Inc.;  

[Dev] Fwd: Error occurred when enrolling a device to tenant user

2015-12-20 Thread Tharinda Ehelepola
Adding dev group
Hi all,

Please note the $subject.

[2015-12-21 12:32:10,843] u...@abc.com [2] [EMM]ERROR
{org.wso2.carbon.identity.sso.saml.admin.SAMLSSOConfigAdmin} -  A Service
Provider with the name mdm is already loaded from the file system.
[2015-12-21 12:32:11,426] ERROR
{org.apache.catalina.core.StandardWrapperValve} -  Servlet.service() for
servlet [CXFServlet] in context with path [/mdm-android-agent] threw
exception
java.lang.RuntimeException: org.apache.cxf.interceptor.Fault: Illegal
access attempt to cache ] owned by tenant {[abc.com],[2]} by tenant {[
abc.com],[-1234]}
at
org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMessage(AbstractFaultChainInitiatorObserver.java:116)
at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:336)
at
org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
at
org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:249)
at
org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:248)
at
org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:222)
at
org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:153)
at
org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:171)
at
org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:289)
at
org.apache.cxf.transport.servlet.AbstractHTTPServlet.doGet(AbstractHTTPServlet.java:214)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
at
org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:265)
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.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at
org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:99)
at
org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
at
org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:57)
at
org.wso2.carbon.webapp.authenticator.framework.WebappAuthenticationValve.processRequest(WebappAuthenticationValve.java:134)
at
org.wso2.carbon.webapp.authenticator.framework.WebappAuthenticationValve.invoke(WebappAuthenticationValve.java:61)
at
org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
at
org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:62)
at
org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:159)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
at
org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:57)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421)
at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1074)
at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1739)
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1698)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.cxf.interceptor.Fault: Illegal access attempt to
cache ] owned by tenant {[abc.com],[2]} by tenant {[abc.com],[-1234]}
at
org.apache.cxf.service.invoker.AbstractInvoker.createFault(AbstractInvoker.java:170)
at
org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:136)
at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:204)

Re: [Dev] [VOTE] Release WSO2 Identity Server 5.1.0 RC1

2015-12-20 Thread Malithi Edirisinghe
Hi Devs,

I tested basic SP initiated and IdP initiated SAML SSO flows with signing
and encryption enabled in a clustered setup. Didn't encounter with any
issues.

[x] Stable - go ahead and release.

Thanks,
Malithi.

On Sun, Dec 20, 2015 at 12:47 PM, Godwin Shrimal  wrote:

> Hi Devs,
>
> I tested major functionalities in XACML and PassiveSTS. No issues
> encountered.
>
> [x] Stable - go ahead and release.
>
>
> Thanks
> Godwin
>
>
>
>
> On Sun, Dec 20, 2015 at 8:27 PM, Damith Senanayake 
> wrote:
>
>> Hi Devs,
>>
>> I tested the major functionalities of user management and user core.
>>
>> 1. creating/deleting/updating profiles of users
>> 2. secondary user stores, addition and user operations of them
>> 3. Tenant creation and basic user and user store operations of them.
>>
>> my vote is as follows :
>>
>> [x] - Stable, Go ahead and release.
>>
>> On Sun, Dec 20, 2015 at 7:06 AM, Harsha Thirimanna 
>> wrote:
>>
>>> Hi All,
>>>
>>> I tested following functionalities
>>>
>>> * Workflow
>>> Basic operations with embeded BPS
>>> Same operations with external BPS
>>> * XACML
>>> Policy creation
>>> Policy Publish
>>> Try out request
>>> Policy deployment in file
>>> Policy Cache
>>> Decision Cache
>>>
>>>
>>> So here is my vote.
>>> [x] -Stable - go ahead and release
>>>
>>> thanks,
>>>
>>>
>>>
>>> *Harsha Thirimanna*
>>> Senior Software Engineer; WSO2, Inc.; http://wso2.com
>>> * *
>>> *email: **hars...@wso2.com* * cell: +94 71 5186770 *
>>> *twitter: **http://twitter.com/ *
>>> *harshathirimannlinked-in: **http:
>>> **//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
>>> *
>>>
>>> *Lean . Enterprise . Middleware*
>>>
>>>
>>> On Fri, Dec 18, 2015 at 12:44 PM, Hasintha Indrajee 
>>> wrote:
>>>
 Hi Devs,

 This is the first release candidate of WSO2 Identity Server 5.1.0.

 This release fixes the following issues:
 https://wso2.org/jira/issues/?filter=12586

 Please download, test and vote.

 Source & binary distribution files:
 https://github.com/wso2/product-is/releases/tag/v5.1.0-rc1

 Maven staging repo:
 http://maven.wso2.org/nexus/content/repositories/orgwso2is-203/

 The tag to be voted upon:
 https://github.com/wso2/product-is/tree/v5.1.0-rc1


 [ ]  Stable - go ahead and release
 [ ]  Broken - do not release (explain why)

 Thanks and Regards,
 WSO2 Identity Server Team.

 --
 Hasintha Indrajee
 Software Engineer
 WSO2, Inc.
 Mobile:+94 771892453


 ___
 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
>>>
>>>
>>
>>
>> --
>>
>>
>> *-Damith Senanayake-*+94712205272
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Godwin Amila Shrimal*
> Senior Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: *+94772264165*
> linkedin: *http://lnkd.in/KUum6D *
> twitter: https://twitter.com/godwinamila
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

*Malithi Edirisinghe*
Senior Software Engineer
WSO2 Inc.

Mobile : +94 (0) 718176807
malit...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Identity Server 5.1.0 RC1

2015-12-20 Thread Godwin Shrimal
Hi Devs,

I tested major functionalities in XACML and PassiveSTS. No issues
encountered.

[x] Stable - go ahead and release.


Thanks
Godwin




On Sun, Dec 20, 2015 at 8:27 PM, Damith Senanayake  wrote:

> Hi Devs,
>
> I tested the major functionalities of user management and user core.
>
> 1. creating/deleting/updating profiles of users
> 2. secondary user stores, addition and user operations of them
> 3. Tenant creation and basic user and user store operations of them.
>
> my vote is as follows :
>
> [x] - Stable, Go ahead and release.
>
> On Sun, Dec 20, 2015 at 7:06 AM, Harsha Thirimanna 
> wrote:
>
>> Hi All,
>>
>> I tested following functionalities
>>
>> * Workflow
>> Basic operations with embeded BPS
>> Same operations with external BPS
>> * XACML
>> Policy creation
>> Policy Publish
>> Try out request
>> Policy deployment in file
>> Policy Cache
>> Decision Cache
>>
>>
>> So here is my vote.
>> [x] -Stable - go ahead and release
>>
>> thanks,
>>
>>
>>
>> *Harsha Thirimanna*
>> Senior Software Engineer; WSO2, Inc.; http://wso2.com
>> * *
>> *email: **hars...@wso2.com* * cell: +94 71 5186770 *
>> *twitter: **http://twitter.com/ *
>> *harshathirimannlinked-in: **http:
>> **//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
>> *
>>
>> *Lean . Enterprise . Middleware*
>>
>>
>> On Fri, Dec 18, 2015 at 12:44 PM, Hasintha Indrajee 
>> wrote:
>>
>>> Hi Devs,
>>>
>>> This is the first release candidate of WSO2 Identity Server 5.1.0.
>>>
>>> This release fixes the following issues:
>>> https://wso2.org/jira/issues/?filter=12586
>>>
>>> Please download, test and vote.
>>>
>>> Source & binary distribution files:
>>> https://github.com/wso2/product-is/releases/tag/v5.1.0-rc1
>>>
>>> Maven staging repo:
>>> http://maven.wso2.org/nexus/content/repositories/orgwso2is-203/
>>>
>>> The tag to be voted upon:
>>> https://github.com/wso2/product-is/tree/v5.1.0-rc1
>>>
>>>
>>> [ ]  Stable - go ahead and release
>>> [ ]  Broken - do not release (explain why)
>>>
>>> Thanks and Regards,
>>> WSO2 Identity Server Team.
>>>
>>> --
>>> Hasintha Indrajee
>>> Software Engineer
>>> WSO2, Inc.
>>> Mobile:+94 771892453
>>>
>>>
>>> ___
>>> 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
>>
>>
>
>
> --
>
>
> *-Damith Senanayake-*+94712205272
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Godwin Amila Shrimal*
Senior Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: *+94772264165*
linkedin: *http://lnkd.in/KUum6D *
twitter: https://twitter.com/godwinamila
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ML] Getting dependency error while mvn clean install

2015-12-20 Thread Rajjaz Mohammed
Hi Nifras,
this is may be because of version of library org.wso2.carbon.ml.core. ml
public repo[1] seems to be doesn’t have snapshot version. second error also
say searialversionUID mismatch so there is a conflict because of library.
so check the library version.

[1]
http://maven.wso2.org/nexus/content/groups/wso2-public/org/wso2/carbon/ml/org.wso2.carbon.ml.core/

On Sat, Dec 19, 2015 at 11:59 PM, NIFRAS ISMAIL 
wrote:

> Hi,
>
> I have just try to execute the carbon-ml sample[1] .
>
> I am getting into error again and again while trying mvn clean install
>
> [INFO] Scanning for projects...
> [INFO]
>
> [INFO]
> 
> [INFO] Building WSO2 Carbon - ML Model Usage Sample 1.0.8-SNAPSHOT
> [INFO]
> 
> [WARNING] The POM for 
> org.wso2.carbon.ml:org.wso2.carbon.ml.core:jar:1.0.8-SNAPSHOT
> is missing, no dependency information available
> [INFO]
> 
> [INFO] BUILD FAILURE
> [INFO]
> 
> [INFO] Total time: 0.404 s
> [INFO] Finished at: 2015-12-19T23:48:32+05:30
> [INFO] Final Memory: 18M/981M
> [INFO]
> 
> [ERROR] Failed to execute goal on project model-usage: Could not resolve
> dependencies for project org.wso2.carbon.ml:model-usage:jar:1.0.8-SNAPSHOT:
> Failure to find org.wso2.carbon.ml:org.wso2.carbon.ml.core:jar:1.0.8-SNAPSHOT
> in http://maven.wso2.org/nexus/content/groups/wso2-public/ was cached in
> the local repository, resolution will not be reattempted until the update
> interval of wso2-nexus has elapsed or updates are forced -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the
> -e switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions,
> please read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
>
>
> from this error I guess carbon.ml 1.0.8 SNAPSHOT is not available does it
> make changed?
>
> How do I fix this !
>
> Regards.
> *M. Nifras Ismail*
> [image: LinkedIn] 
>
>
>
>
>
> Sent with MailTrack
> 
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thank you
Best Regards

*Rajjaz HM*
Associate Software Engineer
WSO2 Inc. 
lean | enterprise | middleware
Mobile | +94752833834
Email   | raj...@wso2.com
LinkedIn | Blogger | WSO2 Profile

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


Re: [Dev] [VOTE] Release WSO2 Identity Server 5.1.0 RC1

2015-12-20 Thread Damith Senanayake
Hi Devs,

I tested the major functionalities of user management and user core.

1. creating/deleting/updating profiles of users
2. secondary user stores, addition and user operations of them
3. Tenant creation and basic user and user store operations of them.

my vote is as follows :

[x] - Stable, Go ahead and release.

On Sun, Dec 20, 2015 at 7:06 AM, Harsha Thirimanna  wrote:

> Hi All,
>
> I tested following functionalities
>
> * Workflow
> Basic operations with embeded BPS
> Same operations with external BPS
> * XACML
> Policy creation
> Policy Publish
> Try out request
> Policy deployment in file
> Policy Cache
> Decision Cache
>
>
> So here is my vote.
> [x] -Stable - go ahead and release
>
> thanks,
>
>
>
> *Harsha Thirimanna*
> Senior Software Engineer; WSO2, Inc.; http://wso2.com
> * *
> *email: **hars...@wso2.com* * cell: +94 71 5186770 *
> *twitter: **http://twitter.com/ *
> *harshathirimannlinked-in: **http:
> **//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
> *
>
> *Lean . Enterprise . Middleware*
>
>
> On Fri, Dec 18, 2015 at 12:44 PM, Hasintha Indrajee 
> wrote:
>
>> Hi Devs,
>>
>> This is the first release candidate of WSO2 Identity Server 5.1.0.
>>
>> This release fixes the following issues:
>> https://wso2.org/jira/issues/?filter=12586
>>
>> Please download, test and vote.
>>
>> Source & binary distribution files:
>> https://github.com/wso2/product-is/releases/tag/v5.1.0-rc1
>>
>> Maven staging repo:
>> http://maven.wso2.org/nexus/content/repositories/orgwso2is-203/
>>
>> The tag to be voted upon:
>> https://github.com/wso2/product-is/tree/v5.1.0-rc1
>>
>>
>> [ ]  Stable - go ahead and release
>> [ ]  Broken - do not release (explain why)
>>
>> Thanks and Regards,
>> WSO2 Identity Server Team.
>>
>> --
>> Hasintha Indrajee
>> Software Engineer
>> WSO2, Inc.
>> Mobile:+94 771892453
>>
>>
>> ___
>> 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
>
>


-- 


*-Damith Senanayake-*+94712205272
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [dev] DS test fixes after UI changes.

2015-12-20 Thread Nipuna Chandradasa
Hi Team,

All the conflicts are resolved and added a PR[1] for the ui-test-fixes
branch of carbon-dashboard.

[1]. https://github.com/wso2/carbon-dashboards/pull/109

Please Review and Merge this PR immediately.

Thank you

On Sat, Dec 19, 2015 at 10:01 AM, Nipuna Chandradasa 
wrote:

> Thank you Ayesha,
>
> Test fixes still going on. Delayed due to the conflicts with two PR. I'm
> looking in to this.
>
> On Fri, Dec 18, 2015 at 12:08 PM, Ayesha Dissanayaka 
> wrote:
>
>> Created ui-test-fixes branch in carbon-dashboards as well.
>>
>> [2] https://github.com/wso2/carbon-dashboards/tree/ui-test-fixes
>>
>> Thanks!
>> -Ayesha
>>
>> On Fri, Dec 18, 2015 at 10:41 AM, Ayesha Dissanayaka 
>> wrote:
>>
>>> Hi all,
>>>
>>> I have created new branch *ui-test-fixes* in product-ds repo in-order
>>> to perform test fixes. All the PRs related to these test fixes, please send
>>> them to this branch. As discussed once all the test related changes are
>>> done, we'll merge this branch to the master.
>>>
>>> [1] https://github.com/wso2/product-ds/tree/ui-test-fixes
>>>
>>> Thanks!
>>> -Ayesha
>>> --
>>> *Ayesha Dissanayaka*
>>> Software Engineer,
>>> WSO2, Inc : http://wso2.com
>>> 
>>> 20, Palmgrove Avenue, Colombo 3
>>> E-Mail: aye...@wso2.com 
>>>
>>
>>
>>
>> --
>> *Ayesha Dissanayaka*
>> Software Engineer,
>> WSO2, Inc : http://wso2.com
>> 
>> 20, Palmgrove Avenue, Colombo 3
>> E-Mail: aye...@wso2.com 
>>
>
>
>
> --
> Nipuna Marcus
> *Software Engineer*
> WSO2 Inc.
> http://wso2.com/ - "lean . enterprise . middleware"
> Mobile : +94 (0) 713 667906
> nipu...@wso2.com
>



-- 
Nipuna Marcus
*Software Engineer*
WSO2 Inc.
http://wso2.com/ - "lean . enterprise . middleware"
Mobile : +94 (0) 713 667906
nipu...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] [BPS][BPMN] New REST API for BPMN statistics

2015-12-20 Thread Chamin Dias
Hi,

Here are some suggestions when preparing the documents for the REST API.
There are various ways of doing this. Embed swagger into a frame is the
first method [1]. As the second method, swagger APIs can be hosted [2] as
well. Also, if you like, you can generate static html pages from swagger
[3]. Through a proper evaluation it would be easier to identify which
method is the best for your scenario.

Since the whole platform is moving towards the REST API, better to have a
consistency when designing the API, API docs and other relevant components.

In the viewpoint of a user, it would be helpful for them if we can add some
instructions to invoke the REST API via Soap-UI, Advanced REST client, cURL
or any other popular tools that are used widely.

[1]
https://confluence.atlassian.com/display/CONFKB/How+to+put+an+IFrame+into+Confluence
[2]
http://www.aerobatic.com/blog/hosting-swagger-api-documentation-wth-bitbucket.html
[3]
http://stackoverflow.com/questions/26605217/generate-static-docs-with-swagger

Thanks.

On Tue, Dec 15, 2015 at 12:44 PM, Sanjeewa Malalgoda 
wrote:

> As a platform we are moving more towards REST API and we have already
> implemented most of the required components for complete story.
> If you are looking for securing REST APIs with Basic Auth, OAuth, XACML
> then all these feature are developed as CXF interceptors.
> So do not spent time to reinvent them and just use available features and
> fix if there any missing parts.
>
> And OAuth application registration for them also available as installable
> feature.
> As malintha said if you start with swagger API document then you can
> generate REST web service, client samples and document (with already
> developed plugins).
>
> Thanks,
> sanjeewa.
>
>
> On Sun, Dec 13, 2015 at 10:37 AM, Malintha Amarasinghe  > wrote:
>
>> Hi Natasha,
>>
>> Giving you a small suggestion to port the documentation to Swagger [1] as
>> there are many advantages.
>>
>> 1. It is a well structured way of documenting APIs and it is used by many
>> organizations.
>>
>> 2. Users of your API can use the swagger doc to generate clients. There
>> are lots of tools that can do it for them including swagger-code-gen tool
>> [2]. They supports many languages including HTML/javascript, Java.
>>
>> 3. Swagger doc can be used to generate server code
>> skeleton. swagger-code-gen [2] includes that capability also. We used a
>> customized version of it which is swagger2cxf-maven-plugin [3] to generate
>> CXF server code when we were implementing the new REST API for API Manager.
>>
>> 4. Swagger doc can be used to generate HTML documentation too. Please
>> note we are still in the process of doing it. Have a look at below links
>> they are completely auto generated from Swagger docs, (Please ignore some
>> characters like \n and * they should be corrected from the code generator.
>> :) And we are yet to do some beatifications etc )
>>
>> http://apidocs.wso2.com/rest/apim/store/v1/docs
>> http://apidocs.wso2.com/rest/apim/publisher/v1/docs
>>
>> Please have a look at [4] and [5], what we have written for the REST API
>> which might help you. You can use [6] as a tool for documenting. You might
>> also have seen before an example of swagger-ui [7] which users can directly
>> use the Swagger doc to invoke the API.
>>
>> Thanks,
>> Malintha
>>
>> [1] http://swagger.io/specification/
>> [2] https://github.com/swagger-api/swagger-codegen
>> [3] https://github.com/hevayo/swagger2cxf-maven-plugin
>> [4]
>> https://github.com/wso2/carbon-apimgt/blob/release-1.10.x/components/apimgt/org.wso2.carbon.apimgt.rest.api.store/src/main/resources/store-api.yaml
>> [5]
>> https://github.com/wso2/carbon-apimgt/blob/release-1.10.x/components/apimgt/org.wso2.carbon.apimgt.rest.api.publisher/src/main/resources/publisher-api.yaml
>> [6] http://editor.swagger.io/
>> [7] http://petstore.swagger.io
>>
>> --
>> Malintha Amarasinghe
>> Software Engineer
>> *WSO2, Inc. - lean | enterprise | middleware*
>> http://wso2.com/
>>
>> Mobile : +94 712383306
>>
>> On Fri, Dec 11, 2015 at 6:05 PM, Natasha Wijesekara 
>> wrote:
>>
>>> I created a documentation jira and attached the api doc.
>>>
>>> Thanks
>>> Natasha
>>>
>>> On Fri, Dec 11, 2015 at 4:23 PM, Nandika Jayawardana 
>>> wrote:
>>>
 Lets attach the doc to a documentation jira so that api is added to the
 documentation.

 Regards
 Nandika

 On Thu, Dec 10, 2015 at 7:03 PM, Natasha Wijesekara 
 wrote:

> Hi,
>
> @Vinod, I used the format given in the Activiti rest api documentation
> to include the response codes.
>
> @Nuwan, I have updated the user guide with the response codes and the
> sample success responses.
>
>
> Thanks,
> Natasha
>
> On Thu, Dec 10, 2015 at 8:39 AM, Vinod Kavinda  wrote:
>
>> Hi Natasha,
>> 

Re: [Dev] [VOTE] Release WSO2 Carbon Kernel 5.0.0 RC2

2015-12-20 Thread Kishanthan Thangarajah
Tested both startup order resolver functionality and artifact deployment
engine functionality. No issues encountered.

[x] Stable - go ahead and release.

Thanks,

On Sun, Dec 20, 2015 at 1:22 PM, Nipuni Perera  wrote:

> Hi all,
>
> I have tested the launcher framework (loading launcher configurations from
> launcher.properties) with logging. No issues found except[1] which is
> already reported and will be fixed in 5.1.0.
>
> [1] https://wso2.org/jira/browse/CARBON-15745
>
> [x] Stable - go ahead and release
>
> Thanks,
> Nipuni
>
> On Sun, Dec 20, 2015 at 12:34 PM, Chiranga Alwis 
> wrote:
>
>> Hi,
>>
>> I tested the following aspects:
>> - jar-to-OSGi-bundle converter
>> - converted OSGi bundles in dropins folder being  successfully deployed
>>
>> No issues discovered.
>>
>> [x] Stable - go ahead and release.
>>
>> On Sun, Dec 20, 2015 at 11:27 AM, Senduran Balasubramaniyam <
>> sendu...@wso2.com> wrote:
>>
>>> Hi all,
>>>
>>> I have tested product-gw's basic functionality with this release
>>> candidate.
>>> No issues found.
>>>
>>> [x] Stable - go ahead and release
>>>
>>> Regards
>>> Senduran
>>>
>>> On Sun, Dec 20, 2015 at 10:01 AM, Aruna Karunarathna 
>>> wrote:
>>>
 I've tested, the following features

 1. Logging framework
 2. Transport Management
 3. Jar to bundle conversion
 4. Dropins bundle deployment

 [x] Stable - go ahead and release

 Regards,
 Aruna

 On Sat, Dec 19, 2015 at 11:50 PM, Manuri Amaya Perera  wrote:

> Hi,
>
> I created projects using the available archetypes in staging
> repository and built and installed via dropins and osgi console and tested
> the expected functionality with the kernel 5.0.0 RC2 pack.
>
> [x] Stable - go ahead and release.
>
> Thank you.
>
> On Fri, Dec 18, 2015 at 5:15 PM, Kishanthan Thangarajah <
> kishant...@wso2.com> wrote:
>
>> Hi Devs,
>>
>> This is the 2nd Release Candidate of WSO2 Carbon Kernel 5.0.0.
>>
>> This release fixes the following issues:
>> https://wso2.org/jira/issues/?filter=12581
>>
>> Please download and test your products with kernel 5.0.0 RC2
>> and vote.
>>
>> *​Source and binary distribution files:*
>>
>> https://github.com/wso2/carbon-kernel/releases/download/v5.0.0-RC2/wso2carbon-kernel-5.0.0-rc2.zip
>>
>> *Maven staging repository:*
>> http://maven.wso2.org/nexus/content/repositories/orgwso2carbon-210/
>>
>> *The tag to be voted upon:*
>> https://github.com/wso2/carbon-kernel/releases/tag/v5.0.0-RC2
>>
>>
>> [ ] Broken - do not release (explain why)
>> [ ] Stable - go ahead and release
>>
>> Thank you,
>> Carbon Team
>>
>> --
>> *Kishanthan Thangarajah*
>> Associate Technical Lead,
>> Platform Technologies Team,
>> WSO2, Inc.
>> lean.enterprise.middleware
>>
>> Mobile - +94773426635
>> Blog - *http://kishanthan.wordpress.com
>> *
>> Twitter - *http://twitter.com/kishanthan
>> *
>>
>
>
>
> --
>
> *Manuri Amaya Perera*
>
> *Software Engineer*
>
> *WSO2 Inc.*
>
> *Blog: http://manuriamayaperera.blogspot.com
> *
>



 --

 *Aruna Sujith Karunarathna *| Software Engineer
 WSO2, Inc | lean. enterprise. middleware.
 #20, Palm Grove, Colombo 03, Sri Lanka
 Mobile: +94 71 9040362 | Work: +94 112145345
 Email: ar...@wso2.com | Web: www.wso2.com


>>>
>>>
>>>
>>> --
>>> *Senduran *
>>> Software Engineer,
>>> WSO2, Inc.;  http://wso2.com/ 
>>> Mobile: +94 77 952 6548
>>>
>>
>>
>>
>> --
>> Chiranga Alwis,
>> Software Engineering Intern,
>> +94 77 5930497
>> +94 77 6368208
>>
>
>
>
> --
> Nipuni Perera
> Software Engineer; WSO2 Inc.; http://wso2.com
> Email: nip...@wso2.com
> Git hub profile: https://github.com/nipuni
> Blog : http://nipunipererablog.blogspot.com/
> Mobile: +94 (71) 5626680
> 
>
>


-- 
*Kishanthan Thangarajah*
Associate Technical Lead,
Platform Technologies Team,
WSO2, Inc.
lean.enterprise.middleware

Mobile - +94773426635
Blog - *http://kishanthan.wordpress.com *
Twitter - *http://twitter.com/kishanthan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Carbon Kernel 5.0.0 RC2

2015-12-20 Thread Kalpa Welivitigoda
Hi all,

I tested the logging framework and jar-to bundle tool. No issues found.

[x] Stable - go ahead and release

On Sun, Dec 20, 2015 at 11:30 PM, Kishanthan Thangarajah <
kishant...@wso2.com> wrote:

> Tested both startup order resolver functionality and artifact deployment
> engine functionality. No issues encountered.
>
> [x] Stable - go ahead and release.
>
> Thanks,
>
> On Sun, Dec 20, 2015 at 1:22 PM, Nipuni Perera  wrote:
>
>> Hi all,
>>
>> I have tested the launcher framework (loading launcher configurations
>> from launcher.properties) with logging. No issues found except[1] which is
>> already reported and will be fixed in 5.1.0.
>>
>> [1] https://wso2.org/jira/browse/CARBON-15745
>>
>> [x] Stable - go ahead and release
>>
>> Thanks,
>> Nipuni
>>
>> On Sun, Dec 20, 2015 at 12:34 PM, Chiranga Alwis 
>> wrote:
>>
>>> Hi,
>>>
>>> I tested the following aspects:
>>> - jar-to-OSGi-bundle converter
>>> - converted OSGi bundles in dropins folder being  successfully deployed
>>>
>>> No issues discovered.
>>>
>>> [x] Stable - go ahead and release.
>>>
>>> On Sun, Dec 20, 2015 at 11:27 AM, Senduran Balasubramaniyam <
>>> sendu...@wso2.com> wrote:
>>>
 Hi all,

 I have tested product-gw's basic functionality with this release
 candidate.
 No issues found.

 [x] Stable - go ahead and release

 Regards
 Senduran

 On Sun, Dec 20, 2015 at 10:01 AM, Aruna Karunarathna 
 wrote:

> I've tested, the following features
>
> 1. Logging framework
> 2. Transport Management
> 3. Jar to bundle conversion
> 4. Dropins bundle deployment
>
> [x] Stable - go ahead and release
>
> Regards,
> Aruna
>
> On Sat, Dec 19, 2015 at 11:50 PM, Manuri Amaya Perera <
> manu...@wso2.com> wrote:
>
>> Hi,
>>
>> I created projects using the available archetypes in staging
>> repository and built and installed via dropins and osgi console and 
>> tested
>> the expected functionality with the kernel 5.0.0 RC2 pack.
>>
>> [x] Stable - go ahead and release.
>>
>> Thank you.
>>
>> On Fri, Dec 18, 2015 at 5:15 PM, Kishanthan Thangarajah <
>> kishant...@wso2.com> wrote:
>>
>>> Hi Devs,
>>>
>>> This is the 2nd Release Candidate of WSO2 Carbon Kernel 5.0.0.
>>>
>>> This release fixes the following issues:
>>> https://wso2.org/jira/issues/?filter=12581
>>>
>>> Please download and test your products with kernel 5.0.0 RC2
>>> and vote.
>>>
>>> *​Source and binary distribution files:*
>>>
>>> https://github.com/wso2/carbon-kernel/releases/download/v5.0.0-RC2/wso2carbon-kernel-5.0.0-rc2.zip
>>>
>>> *Maven staging repository:*
>>> http://maven.wso2.org/nexus/content/repositories/orgwso2carbon-210/
>>>
>>> *The tag to be voted upon:*
>>> https://github.com/wso2/carbon-kernel/releases/tag/v5.0.0-RC2
>>>
>>>
>>> [ ] Broken - do not release (explain why)
>>> [ ] Stable - go ahead and release
>>>
>>> Thank you,
>>> Carbon Team
>>>
>>> --
>>> *Kishanthan Thangarajah*
>>> Associate Technical Lead,
>>> Platform Technologies Team,
>>> WSO2, Inc.
>>> lean.enterprise.middleware
>>>
>>> Mobile - +94773426635
>>> Blog - *http://kishanthan.wordpress.com
>>> *
>>> Twitter - *http://twitter.com/kishanthan
>>> *
>>>
>>
>>
>>
>> --
>>
>> *Manuri Amaya Perera*
>>
>> *Software Engineer*
>>
>> *WSO2 Inc.*
>>
>> *Blog: http://manuriamayaperera.blogspot.com
>> *
>>
>
>
>
> --
>
> *Aruna Sujith Karunarathna *| Software Engineer
> WSO2, Inc | lean. enterprise. middleware.
> #20, Palm Grove, Colombo 03, Sri Lanka
> Mobile: +94 71 9040362 | Work: +94 112145345
> Email: ar...@wso2.com | Web: www.wso2.com
>
>



 --
 *Senduran *
 Software Engineer,
 WSO2, Inc.;  http://wso2.com/ 
 Mobile: +94 77 952 6548

>>>
>>>
>>>
>>> --
>>> Chiranga Alwis,
>>> Software Engineering Intern,
>>> +94 77 5930497
>>> +94 77 6368208
>>>
>>
>>
>>
>> --
>> Nipuni Perera
>> Software Engineer; WSO2 Inc.; http://wso2.com
>> Email: nip...@wso2.com
>> Git hub profile: https://github.com/nipuni
>> Blog : http://nipunipererablog.blogspot.com/
>> Mobile: +94 (71) 5626680
>> 
>>
>>
>
>
> --
> *Kishanthan Thangarajah*
> Associate Technical Lead,
> Platform Technologies Team,
> WSO2, Inc.
> lean.enterprise.middleware
>
> Mobile - +94773426635
> Blog - *http://kishanthan.wordpress.com *
> Twitter - *http://twitter.com/kishanthan *
>



-- 
Best Regards,

Kalpa Welivitigoda
Software Engineer, WSO2