[Dev] Please review and merge PR for IDENTITY-3246

2015-05-14 Thread Nuwandi Wickramasinghe
Hi,

fix for [1] can be found in PR [2]

[1] https://wso2.org/jira/browse/IDENTITY-3246
[2] https://github.com/wso2/carbon-identity/pull/290

-- 

Best Regards,

Nuwandi Wickramasinghe

Software Engineer

WSO2 Inc.

Web : http://wso2.com

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


Re: [Dev] Please review and merge PR

2015-05-14 Thread Sriskandarajah Suhothayan
Yes we are deprecating data bridge in carbon-commons but not removed now as
it might break other products, so please don't use that any more, migrate
to the one on carbon-analytics-common.
After the next release it will be removed from carbon-commons.

Suho

On Fri, May 15, 2015 at 11:44 AM, Lasantha Fernando 
wrote:

> Hi Suho,
>
> Is data-bridge to be kept in carbon-commons repo? I thought we kept it in
> carbon-analytics-common?
>
> Sorry if this was communicated earlier and I had missed the mail..
>
> Thanks,
> Lasantha
>
> On 15 May 2015 at 11:31, Sriskandarajah Suhothayan  wrote:
>
>> looks good merged
>>
>> Suho
>>
>> On Fri, May 15, 2015 at 10:31 AM, Malithi Edirisinghe 
>> wrote:
>>
>>> Hi All,
>>>
>>> Please review and merge PR [1] that fixes libthrift and slf4j import
>>> package versions of org.wso2.carbon.databridge.commons.thrift.
>>> [1] https://github.com/wso2/carbon-commons/pull/88
>>>
>>> --
>>>
>>> *Malithi Edirisinghe*
>>> Senior Software Engineer
>>> WSO2 Inc.
>>>
>>> Mobile : +94 (0) 718176807
>>> malit...@wso2.com
>>>
>>
>>
>>
>> --
>>
>> *S. Suhothayan*
>> Technical Lead & Team Lead of WSO2 Complex Event Processor
>>  *WSO2 Inc. *http://wso2.com
>> * *
>> lean . enterprise . middleware
>>
>>
>> *cell: (+94) 779 756 757 <%28%2B94%29%20779%20756%20757> | blog:
>> http://suhothayan.blogspot.com/ twitter:
>> http://twitter.com/suhothayan  | linked-in:
>> http://lk.linkedin.com/in/suhothayan *
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Lasantha Fernando*
> Senior Software Engineer - Data Technologies Team
> WSO2 Inc. http://wso2.com
>
> email: lasan...@wso2.com
> mobile: (+94) 71 5247551
>



-- 

*S. Suhothayan*
Technical Lead & Team Lead of WSO2 Complex Event Processor
 *WSO2 Inc. *http://wso2.com
* *
lean . enterprise . middleware


*cell: (+94) 779 756 757 | blog: http://suhothayan.blogspot.com/
twitter: http://twitter.com/suhothayan
 | linked-in:
http://lk.linkedin.com/in/suhothayan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Please review and merge PR

2015-05-14 Thread Lasantha Fernando
Hi Suho,

Is data-bridge to be kept in carbon-commons repo? I thought we kept it in
carbon-analytics-common?

Sorry if this was communicated earlier and I had missed the mail..

Thanks,
Lasantha

On 15 May 2015 at 11:31, Sriskandarajah Suhothayan  wrote:

> looks good merged
>
> Suho
>
> On Fri, May 15, 2015 at 10:31 AM, Malithi Edirisinghe 
> wrote:
>
>> Hi All,
>>
>> Please review and merge PR [1] that fixes libthrift and slf4j import
>> package versions of org.wso2.carbon.databridge.commons.thrift.
>> [1] https://github.com/wso2/carbon-commons/pull/88
>>
>> --
>>
>> *Malithi Edirisinghe*
>> Senior Software Engineer
>> WSO2 Inc.
>>
>> Mobile : +94 (0) 718176807
>> malit...@wso2.com
>>
>
>
>
> --
>
> *S. Suhothayan*
> Technical Lead & Team Lead of WSO2 Complex Event Processor
>  *WSO2 Inc. *http://wso2.com
> * *
> lean . enterprise . middleware
>
>
> *cell: (+94) 779 756 757 <%28%2B94%29%20779%20756%20757> | blog:
> http://suhothayan.blogspot.com/ twitter:
> http://twitter.com/suhothayan  | linked-in:
> http://lk.linkedin.com/in/suhothayan *
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Lasantha Fernando*
Senior Software Engineer - Data Technologies Team
WSO2 Inc. http://wso2.com

email: lasan...@wso2.com
mobile: (+94) 71 5247551
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [DEV][IS] Error when changing the default UserNameAttribute in the user-mgt.xml file

2015-05-14 Thread Damith Senanayake
Hi,

I have tried to access the embedded ReadWriteLDAPUserStore by using the
common name (cn) as the identifier for user search instead of "uid" , and
when I try to see user profiles with this, I get the following stacktrace
of exceptions.

ERROR {org.wso2.carbon.identity.user.profile.ui.client.UserProfileCient} -
> org.wso2.carbon.identity.user.profile.stub.UserProfileMgtServiceUserProfileExceptionException:
> UserProfileMgtServiceUserProfileExceptionException
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> Method)
> at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
> at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
> at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
> at java.lang.Class.newInstance(Class.java:383)
> at
> org.wso2.carbon.identity.user.profile.stub.UserProfileMgtServiceStub.getUserProfiles(UserProfileMgtServiceStub.java:403)
> at
> org.wso2.carbon.identity.user.profile.ui.client.UserProfileCient.getUserProfiles(UserProfileCient.java:90)
>   ...
>

(The full stack trace is attached herewith in the log file...) I don't
really understand how it would hinder the access from the server. And it
looks like the error is not caused by UserProfileAdmin, so I am confused
what exactly causes this.



-- 
*-Damith Senanayake-*
+94712205272
 ERROR {org.wso2.carbon.identity.user.profile.ui.client.UserProfileCient} -  org.wso2.carbon.identity.user.profile.stub.UserProfileMgtServiceUserProfileExceptionException: UserProfileMgtServiceUserProfileExceptionException
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
	at java.lang.Class.newInstance(Class.java:383)
	at org.wso2.carbon.identity.user.profile.stub.UserProfileMgtServiceStub.getUserProfiles(UserProfileMgtServiceStub.java:403)
	at org.wso2.carbon.identity.user.profile.ui.client.UserProfileCient.getUserProfiles(UserProfileCient.java:90)
	at org.apache.jsp.userprofile.index_jsp._jspService(index_jsp.java:171)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
	at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155)
	at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
	at org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)
	at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
	at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
	at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java: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.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:748)
	at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:604)
	at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:543)
	at org.eclipse.equinox.http.servlet.internal.RequestDispatcherAdaptor.include(RequestDispatcherAdaptor.java:37)
	at org.eclipse.equinox.http.helper.ContextPathServletAdaptor$RequestDispatcherAdaptor.include(ContextPathServletAdaptor.java:369)
	at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:954)
	at org.apache.jasper.runtime.PageContextImpl.doInclude(PageContextImpl.java:688)
	at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:682)
	at sun.reflect.GeneratedMethodAccessor49.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.apache.tiles.jsp.context.JspUtil.doInclude(JspUtil.java:87)
	at org.apache.tiles.jsp.context.JspTilesRequestContext.include(JspTilesRequestContext.java:88)
	at org.apache.tiles.jsp.context.JspTilesRequestContext.dispatch(JspTilesRequestContext.java:82)
	at org.apache.tiles.impl.Basi

[Dev] Correcting synapse config directory path in axis2.xml in kernal

2015-05-14 Thread Harsha Kumara
Hi Kernel Team,

While we are installing APIM features on top of GREG, we found that synapse
config directory location is wrong in the kernal axis2.xml which gives
directory not exited exception.

Made pull request in [1] to fix it. Please review and merge.

[1] - https://github.com/wso2/carbon4-kernel/pull/200

Thanks,
Harsha

-- 
Harsha Kumara
Software Engineer, WSO2 Inc.
Mobile: +94775505618
Blog:harshcreationz.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Please review and merge PR

2015-05-14 Thread Sriskandarajah Suhothayan
looks good merged

Suho

On Fri, May 15, 2015 at 10:31 AM, Malithi Edirisinghe 
wrote:

> Hi All,
>
> Please review and merge PR [1] that fixes libthrift and slf4j import
> package versions of org.wso2.carbon.databridge.commons.thrift.
> [1] https://github.com/wso2/carbon-commons/pull/88
>
> --
>
> *Malithi Edirisinghe*
> Senior Software Engineer
> WSO2 Inc.
>
> Mobile : +94 (0) 718176807
> malit...@wso2.com
>



-- 

*S. Suhothayan*
Technical Lead & Team Lead of WSO2 Complex Event Processor
 *WSO2 Inc. *http://wso2.com
* *
lean . enterprise . middleware


*cell: (+94) 779 756 757 | blog: http://suhothayan.blogspot.com/
twitter: http://twitter.com/suhothayan
 | linked-in:
http://lk.linkedin.com/in/suhothayan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 API Manager 1.9.0 Beta Released!

2015-05-14 Thread Lakmali Baminiwatta
WSO2 API Manager 1.9.0 Beta Released!

WSO2 API Manager team is pleased to announce the Beta release of WSO2 API
Manager 1.9.0.
This release includes following features,improvements and bug fixes.
Bug

   - [APIMANAGER-3081 ] -
   Issue in the 'body' parameters of the 'Value' field in the API Store
   - [APIMANAGER-3123 ] -
   Samples: Deploying and testing Youtube API and Wikipedia API
   - [APIMANAGER-3146 ] -
   Issue in the Thumbnail Image Dimension validation
   - [APIMANAGER-3261 ] -
   Wrong Auth type set in Spanish UI
   - [APIMANAGER-3262 ] -
   Popup error message doesn't showing up when uploading (non image) different
   file format to thumbnail
   - [APIMANAGER-3270 ] -
   Make the OAuthAuthenticator extensible
   - [APIMANAGER-3289 ] -
   Issues when using Publisher REST API to Publish API
   - [APIMANAGER-3298 ] -
   Tokens created with client_credentials do not take the proper validity
   period.
   - [APIMANAGER-3304 ] -
   Gateway sets Host header to hostname:80 for default http port which breaks
   some popular APIs
   - [APIMANAGER-3306 ] -
   Backend URL Test button displays "Invalid" for URLs that user considers
   valid
   - [APIMANAGER-3325 ] -
   Error showing information month billing Calculation. Billing month
   calculated by hive script is wrong
   - [APIMANAGER-3337 ] -
   Cannot encrypt the passwords in configuration files using ciphertool
   - [APIMANAGER-3338 ] -
   WikipediaAPI sample throws ResourceNotFoundException
   - [APIMANAGER-3342 ] -
   [Publisher API] Re-publish to gateway doesn't work
   - [APIMANAGER-3343 ] - Add
   following synapse property to api manager synapse.properties file to handle
   tenant aware logging issues
   - [APIMANAGER-3352 ] -
   Fail to issue an access token with scope openId
   - [APIMANAGER-3353 ] - Add
   test case for API scopes test.
   - [APIMANAGER-3361 ] -
   APIs can invoke 15 minutes after we unsubscribe APIs due to cache issue.
   - [APIMANAGER-3379 ] - API
   publisher manage step doesnt show environment details and business
   information
   - [APIMANAGER-3387 ] -
   When replying for a forum topic soon after added a reply text disappearing
   - [APIMANAGER-3389 ] - API
   Store Stats not showing No Data Available message
   - [APIMANAGER-3413 ] -
   Please make HTTP transport unchecked by default - in API Publisher - Manage
   step
   - [APIMANAGER-3425 ] -
   Make error messages more descriptive.
   - [APIMANAGER-3432 ] -
   [MSSQL] Collation defined only for one AM_DB table and that fails token
   generation
   - [APIMANAGER-3454 ] -
   Include kernel patch0010 into the product
   - [APIMANAGER-3461 ] -
   Token endpoint doesn't return propert scopes when Token Encyprption is
   enabled.
   - [APIMANAGER-3462 ] -
   tokens gets regenerated to default scope if same scopes are not selected.
   - [APIMANAGER-3469 ] -
   Deploy sample API Button is not available for user who has only publisher
   privileges.
   - [APIMANAGER-3470 ] -
   'Deploy sample API' button is available for users with only creator and
   login permission.
   - [APIMANAGER-3471 ] -
   Unable to save and deploy prototyped APIs given an endpoint.
   - [APIMANAGER-3472 ] -
   Useless 'scope' label can be seen in keys section of API store > My
   subscriptions page.
   - [APIMANAGER-3473 ] - UI
   issue In API store > My Application page
   - [APIMANAGER-3474 ] - API
   delete doesn't remove Synapse API
   - [APIMANAGER-3475 ] -

Re: [Dev] WS-RM Inbound endpoint based on Apache CXF Orbit bundle

2015-05-14 Thread Prabath Ariyarathna
HI Sadamal.

I've checked according to the offline discussion we had. It's working
without any issue.

Thanks.

On Fri, May 15, 2015 at 9:38 AM, Sandamal Weerasinghe 
wrote:

> Hi KasunG,
>
> As mentioned earlier, without adding the schemas the following error
> occurs,
>
> org.springframework.beans.factory.parsing.BeanDefinitionParsingException:
> Configuration problem: Unable to locate Spring NamespaceHandler for XML
> schema namespace [http://cxf.apache.org/core]
> Offending resource: URL
> [file:/home/sandamal/Programs/RM/wso2esb-4.9.0-M8-SNAPSHOT/repository/conf/cxf/server.xml]
>
> If we can't add the schemas to the Spring bundle then the other option
> left would be to embed the Spring jar inside cxf. I have updated the pull
> request after embedding that dependency.
>
> @Prabath - Please check if this works fine with the connector.
>
> Thanks.
>
> Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd
>
> Mobile - +94-77-144-9640
>
> On Thu, May 14, 2015 at 3:17 PM, KasunG Gajasinghe 
> wrote:
>
>> Hi Sandamal,
>>
>> Please attend to the comments mentioned in the pr.
>>
>> Thanks.
>>
>>
>> On Thu, May 14, 2015 at 2:48 PM, Kasun Indrasiri  wrote:
>>
>>> Any update on this?
>>>
>>> On Wed, May 13, 2015 at 2:41 PM, Kasun Indrasiri  wrote:
>>>
 Hi Sameera/kernel team,

 Can you please have a look. This is urgent for us.

 On Wed, May 13, 2015 at 11:18 AM, Sandamal Weerasinghe <
 sanda...@wso2.com> wrote:

> Since CXF is already being used in WSO2 products there is no need for
> approval [1]. And even if we are embedding this dependency or making the
> entire CXF-RM inbound an installable feature, we will need this as an 
> Orbit
> bundle first.
>
> [1] [Thrid Party Library Approval] Apache CXF
>
> Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd
>
> Mobile - +94-77-144-9640
>
> On Wed, May 13, 2015 at 11:15 AM, Kasun Indrasiri 
> wrote:
>
>> Hi KasunG,
>>
>> Can you please review and merge asap. ESB 4.9 alpha release is
>> blocked due to this.
>>
>> On Fri, May 8, 2015 at 2:09 PM, Sandamal Weerasinghe <
>> sanda...@wso2.com> wrote:
>>
>>> Hi KasunG,
>>>
>>> Updated the pull request after doing a version upgrade. The
>>> following dependencies had to be embedded; neethi, woodstox-core-asl and
>>> xmlschema-core.
>>> I have removed the wss4j and slf4j bundles as they are not essential
>>> to the functionality of the cxf ws-rm inbound endpoint and connector. As
>>> for the changes in the spring.schemas and spring.handlers, without those
>>> changes the following error gets thrown at when starting an inbound
>>> endpoint.
>>>
>>> org.springframework.beans.factory.parsing.BeanDefinitionParsingException:
>>> Configuration problem: Unable to locate Spring NamespaceHandler for XML
>>> schema namespace [http://cxf.apache.org/core]
>>>
>>> Please review and merge.
>>>
>>> [1] https://github.com/wso2/orbit/pull/71
>>>
>>> Thanks.
>>>
>>> Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd
>>>
>>> Mobile - +94-77-144-9640
>>>
>>> On Tue, May 5, 2015 at 10:57 AM, KasunG Gajasinghe 
>>> wrote:
>>>
 Hi Sandamal,

 We have forked some of the bundles you have mentioned above such as
 the wss4j bundle. Are you doing a version upgrade here? How is this 
 going
 to affect the components that rely on wss4j 1.5.11?

 And, can you also verify whether all these libraries approved?

 Thanks.

 On Thu, Apr 30, 2015 at 7:12 PM, Sandamal Weerasinghe <
 sanda...@wso2.com> wrote:

> Hi Prabath,
>
> Please check if the RMConnector works with the following in place,
>
> cxf-bundle-3.0.2.wso2v1.jar
> jetty-bundle-8.1.15.v20140411.wso2v1.jar
> slf4j-bundle-1.7.7.wso2v1.jar
> wss4j-bundle-2.0.2.wso2v1.jar
>
> org.apache.aries.blueprint-1.1.0.jar
> org.apache.aries.proxy-1.0.1.jar
> org.apache.aries.util-1.1.0.jar
> stax2-api-3.1.4.jar
>
> https://github.com/wso2/orbit/pull/71
>
> Thanks.
>
> Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd
>
> Mobile - +94-77-144-9640
>
> On Thu, Apr 23, 2015 at 2:29 PM, Sandamal Weerasinghe <
> sanda...@wso2.com> wrote:
>
>> Hi KasunG,
>>
>> Please review and merge.
>>
>> Thanks.
>>
>> Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd
>>
>> Mobile - +94-77-144-9640
>>
>> On Mon, Apr 20, 2015 at 7:48 AM, Prabath Ariyarathna <
>> prabat...@wso2.com> wrote:
>>
>>> Hi Sandamal.
>>>
>>

[Dev] Invitation: Invitation: [Code Review][CEP] Siddhi Try It Feature @ Mon May 18, 2015 12pm - 1pm (thili...@wso2.com)

2015-05-14 Thread Thilini Anoratna
BEGIN:VCALENDAR
PRODID:-//Google Inc//Google Calendar 70.9054//EN
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:REQUEST
BEGIN:VEVENT
DTSTART:20150518T063000Z
DTEND:20150518T073000Z
DTSTAMP:20150515T050301Z
ORGANIZER;CN=Thilini Anoratna:mailto:thili...@wso2.com
UID:er2ju453g670nlises6k8mm...@google.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Ramindu De Silva;X-NUM-GUESTS=0:mailto:ramin...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Sriskandarajah Suhothayan;X-NUM-GUESTS=0:mailto:s...@wso2.com
ATTENDEE;CUTYPE=RESOURCE;ROLE=REQ-PARTICIPANT;PARTSTAT=ACCEPTED;RSVP=TRUE;C
 N="LK Trace Mezzanine Floor Meeting Room - Gondor Ext:1036212";X-NUM-GUESTS
 =0:mailto:wso2.com_2d323839383039343...@resource.calendar.google.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=ACCEPTED;RSVP=TRUE
 ;CN=Tharik Kanaka;X-NUM-GUESTS=0:mailto:tha...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Lasantha Fernando;X-NUM-GUESTS=0:mailto:lasan...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=ACCEPTED;RSVP=TRUE
 ;CN=Thilini Anoratna;X-NUM-GUESTS=0:mailto:thili...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Sachini Jayasekara;X-NUM-GUESTS=0:mailto:sachi...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Tishan Dahanayakage;X-NUM-GUESTS=0:mailto:tis...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Mohanadarshan Vivekanandalingam;X-NUM-GUESTS=0:mailto:mo...@wso2.co
 m
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Damith Wickramasinghe;X-NUM-GUESTS=0:mailto:dami...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Sajith Ravindra;X-NUM-GUESTS=0:mailto:saji...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Ayashkantha Ramasinghe;X-NUM-GUESTS=0:mailto:ayashkan...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Dilini Muthumala;X-NUM-GUESTS=0:mailto:dil...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Rajeev Sampath;X-NUM-GUESTS=0:mailto:raje...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=dev@wso2.org;X-NUM-GUESTS=0:mailto:dev@wso2.org
CREATED:20150515T045836Z
DESCRIPTION:View your event at https://www.google.com/calendar/event?action
 =VIEW&eid=ZXIyanU0NTNnNjcwbmxpc2VzNms4bW1zc2sgZGV2QHdzbzIub3Jn&tok=MTcjdGhp
 bGluaWFAd3NvMi5jb21jOTE5MTAzMTNiZGM2MWZmZWQ3NDE5NTMyODVhNDNkZmE1M2MyOGFi&ct
 z=Asia/Colombo&hl=en.
LAST-MODIFIED:20150515T050301Z
LOCATION:LK Trace Mezzanine Floor Meeting Room - Gondor Ext:1036212
SEQUENCE:0
STATUS:CONFIRMED
SUMMARY:Invitation: [Code Review][CEP] Siddhi Try It Feature
TRANSP:OPAQUE
END:VEVENT
END:VCALENDAR


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


[Dev] Please review and merge PR

2015-05-14 Thread Malithi Edirisinghe
Hi All,

Please review and merge PR [1] that fixes libthrift and slf4j import
package versions of org.wso2.carbon.databridge.commons.thrift.
[1] https://github.com/wso2/carbon-commons/pull/88

-- 

*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] VFS/JMS Sender in tenant mode error

2015-05-14 Thread Malaka Silva
Hi Manoj,

Done

[1] https://github.com/wso2/wso2-axis2/pull/45

On Fri, May 15, 2015 at 9:57 AM, Manoj Kumara  wrote:

> Hi Malaka,
>
> I mean the pull request to the wso2-axis2 repo.
>
> [1] https://github.com/wso2/wso2-axis2/pull/44
>
>
> *Manoj Kumara*
> Software Engineer
> WSO2 Inc. http://wso2.com/
> *lean.enterprise.middleware*
> Mobile: +94713448188
>
> On Fri, May 15, 2015 at 5:37 AM, Malaka Silva  wrote:
>
>> Hi Manoj,
>>
>> PR is already sent to 'master' branch.
>>
>> https://github.com/wso2/carbon4-kernel/pull/205
>>
>> On Thu, May 14, 2015 at 7:42 PM, Manoj Kumara  wrote:
>>
>>> Hi Malaka,
>>>
>>> Please send the pull request to 'master' branch.
>>>
>>>
>>> *Manoj Kumara*
>>> Software Engineer
>>> WSO2 Inc. http://wso2.com/
>>> *lean.enterprise.middleware*
>>> Mobile: +94713448188
>>>
>>> On Thu, May 14, 2015 at 5:32 AM, Malaka Silva  wrote:
>>>
 Great. Thx Manoj. Keep us posted.

 On Wed, May 13, 2015 at 8:32 PM, Manoj Kumara  wrote:

> Hi Malaka,
>
> We are discussing about 4.4.1 release plan tomorrow. Will try to
> provide a solution after discussing with the team.
>
> Regards,
> Manoj
>
>
> *Manoj Kumara*
> Software Engineer
> WSO2 Inc. http://wso2.com/
> *lean.enterprise.middleware*
> Mobile: +94713448188
>
> On Wed, May 13, 2015 at 7:21 PM, Malaka Silva  wrote:
>
>> Hi Carbon Team,
>>
>> Can we get this fixed for ESB alpha release?
>>
>> On Wed, May 13, 2015 at 6:35 AM, Malaka Silva 
>> wrote:
>>
>>> Hi Carbon Team,
>>>
>>> I have removed the hard-coded entries and changed it to a dynamic
>>> way.
>>>
>>> Please review and merge [1].
>>>
>>> [1] https://github.com/wso2/carbon4-kernel/pull/205
>>>
>>> On Tue, May 12, 2015 at 2:37 PM, Malaka Silva 
>>> wrote:
>>>
 Hi Kasun,

 Added rabbitmq as well. It's better if we can do this dynamically.
 Will check on that.

 Currently added vfs/jms and rabbitmq

 On Tue, May 12, 2015 at 2:14 PM, Kasun Indrasiri 
 wrote:

> Hi Malaka,
>
> Are we only adding them for JMS and VFS. How about other
> transports? Is it possible to make this dynamic so that we don't have 
> to
> hardcode the transports?
>
> On Tue, May 12, 2015 at 12:49 PM, Malaka Silva 
> wrote:
>
>> Hi Carbon Team,
>>
>> Please merge [1].
>>
>> Related Jiras [2] and [3]
>>
>> [1] https://github.com/wso2/carbon4-kernel/pull/205
>> [2] https://wso2.org/jira/browse/CARBON-15245
>> [3] https://wso2.org/jira/browse/ESBJAVA-3683
>>
>> Best Regards,
>>
>> Malaka Silva
>> Senior Tech Lead
>> M: +94 777 219 791
>> Tel : 94 11 214 5345
>> Fax :94 11 2145300
>> Skype : malaka.sampath.silva
>> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
>> Blog : http://mrmalakasilva.blogspot.com/
>>
>> WSO2, Inc.
>> lean . enterprise . middleware
>> http://www.wso2.com/
>> http://www.wso2.com/about/team/malaka-silva/
>> 
>>
>> Save a tree -Conserve nature & Save the world for your future.
>> Print this email only if it is absolutely necessary.
>>
>
>
>
> --
> Kasun Indrasiri
> Software Architect
> WSO2, Inc.; http://wso2.com
> lean.enterprise.middleware
>
> cell: +94 77 556 5206
> Blog : http://kasunpanorama.blogspot.com/
>



 --

 Best Regards,

 Malaka Silva
 Senior Tech Lead
 M: +94 777 219 791
 Tel : 94 11 214 5345
 Fax :94 11 2145300
 Skype : malaka.sampath.silva
 LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
 Blog : http://mrmalakasilva.blogspot.com/

 WSO2, Inc.
 lean . enterprise . middleware
 http://www.wso2.com/
 http://www.wso2.com/about/team/malaka-silva/
 

 Save a tree -Conserve nature & Save the world for your future.
 Print this email only if it is absolutely necessary.

>>>
>>>
>>>
>>> --
>>>
>>> Best Regards,
>>>
>>> Malaka Silva
>>> Senior Tech Lead
>>> M: +94 777 219 791
>>> Tel : 94 11 214 5345
>>> Fax :94 11 2145300
>>> Skype : malaka.sampath.silva
>>> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
>>> Blog : http://mrmalakasilva.blogspot.com/
>>>
>>> WSO2, Inc.
>>> lean . enterprise . middleware
>>> http://www.wso2.com/
>>> http://www.wso2.com/about/

[Dev] carbon-multitenancy master branch is not up-to-date

2015-05-14 Thread Malithi Edirisinghe
Hi All,

As it seems carbon-multitenancy master branch is not prepared for the next
development iteration.
I kindly would like to know, to which branch should I send a pull request
in this case.

Thanks,
Malithi

-- 

*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] VFS/JMS Sender in tenant mode error

2015-05-14 Thread Manoj Kumara
Hi Malaka,

I mean the pull request to the wso2-axis2 repo.

[1] https://github.com/wso2/wso2-axis2/pull/44


*Manoj Kumara*
Software Engineer
WSO2 Inc. http://wso2.com/
*lean.enterprise.middleware*
Mobile: +94713448188

On Fri, May 15, 2015 at 5:37 AM, Malaka Silva  wrote:

> Hi Manoj,
>
> PR is already sent to 'master' branch.
>
> https://github.com/wso2/carbon4-kernel/pull/205
>
> On Thu, May 14, 2015 at 7:42 PM, Manoj Kumara  wrote:
>
>> Hi Malaka,
>>
>> Please send the pull request to 'master' branch.
>>
>>
>> *Manoj Kumara*
>> Software Engineer
>> WSO2 Inc. http://wso2.com/
>> *lean.enterprise.middleware*
>> Mobile: +94713448188
>>
>> On Thu, May 14, 2015 at 5:32 AM, Malaka Silva  wrote:
>>
>>> Great. Thx Manoj. Keep us posted.
>>>
>>> On Wed, May 13, 2015 at 8:32 PM, Manoj Kumara  wrote:
>>>
 Hi Malaka,

 We are discussing about 4.4.1 release plan tomorrow. Will try to
 provide a solution after discussing with the team.

 Regards,
 Manoj


 *Manoj Kumara*
 Software Engineer
 WSO2 Inc. http://wso2.com/
 *lean.enterprise.middleware*
 Mobile: +94713448188

 On Wed, May 13, 2015 at 7:21 PM, Malaka Silva  wrote:

> Hi Carbon Team,
>
> Can we get this fixed for ESB alpha release?
>
> On Wed, May 13, 2015 at 6:35 AM, Malaka Silva  wrote:
>
>> Hi Carbon Team,
>>
>> I have removed the hard-coded entries and changed it to a dynamic way.
>>
>> Please review and merge [1].
>>
>> [1] https://github.com/wso2/carbon4-kernel/pull/205
>>
>> On Tue, May 12, 2015 at 2:37 PM, Malaka Silva 
>> wrote:
>>
>>> Hi Kasun,
>>>
>>> Added rabbitmq as well. It's better if we can do this dynamically.
>>> Will check on that.
>>>
>>> Currently added vfs/jms and rabbitmq
>>>
>>> On Tue, May 12, 2015 at 2:14 PM, Kasun Indrasiri 
>>> wrote:
>>>
 Hi Malaka,

 Are we only adding them for JMS and VFS. How about other
 transports? Is it possible to make this dynamic so that we don't have 
 to
 hardcode the transports?

 On Tue, May 12, 2015 at 12:49 PM, Malaka Silva 
 wrote:

> Hi Carbon Team,
>
> Please merge [1].
>
> Related Jiras [2] and [3]
>
> [1] https://github.com/wso2/carbon4-kernel/pull/205
> [2] https://wso2.org/jira/browse/CARBON-15245
> [3] https://wso2.org/jira/browse/ESBJAVA-3683
>
> Best Regards,
>
> Malaka Silva
> Senior Tech Lead
> M: +94 777 219 791
> Tel : 94 11 214 5345
> Fax :94 11 2145300
> Skype : malaka.sampath.silva
> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
> Blog : http://mrmalakasilva.blogspot.com/
>
> WSO2, Inc.
> lean . enterprise . middleware
> http://www.wso2.com/
> http://www.wso2.com/about/team/malaka-silva/
> 
>
> Save a tree -Conserve nature & Save the world for your future.
> Print this email only if it is absolutely necessary.
>



 --
 Kasun Indrasiri
 Software Architect
 WSO2, Inc.; http://wso2.com
 lean.enterprise.middleware

 cell: +94 77 556 5206
 Blog : http://kasunpanorama.blogspot.com/

>>>
>>>
>>>
>>> --
>>>
>>> Best Regards,
>>>
>>> Malaka Silva
>>> Senior Tech Lead
>>> M: +94 777 219 791
>>> Tel : 94 11 214 5345
>>> Fax :94 11 2145300
>>> Skype : malaka.sampath.silva
>>> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
>>> Blog : http://mrmalakasilva.blogspot.com/
>>>
>>> WSO2, Inc.
>>> lean . enterprise . middleware
>>> http://www.wso2.com/
>>> http://www.wso2.com/about/team/malaka-silva/
>>> 
>>>
>>> Save a tree -Conserve nature & Save the world for your future. Print
>>> this email only if it is absolutely necessary.
>>>
>>
>>
>>
>> --
>>
>> Best Regards,
>>
>> Malaka Silva
>> Senior Tech Lead
>> M: +94 777 219 791
>> Tel : 94 11 214 5345
>> Fax :94 11 2145300
>> Skype : malaka.sampath.silva
>> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
>> Blog : http://mrmalakasilva.blogspot.com/
>>
>> WSO2, Inc.
>> lean . enterprise . middleware
>> http://www.wso2.com/
>> http://www.wso2.com/about/team/malaka-silva/
>> 
>>
>> Save a tree -Conserve nature & Save the world for your future. Print
>> this email only if it is absolutely necessary.
>>
>
>
>
> --
>
> Best Regards,
>
> Malaka Silva
> Senior Tech Lead
> M: +9

Re: [Dev] WS-RM Inbound endpoint based on Apache CXF Orbit bundle

2015-05-14 Thread Sandamal Weerasinghe
Hi KasunG,

As mentioned earlier, without adding the schemas the following error occurs,

org.springframework.beans.factory.parsing.BeanDefinitionParsingException:
Configuration problem: Unable to locate Spring NamespaceHandler for XML
schema namespace [http://cxf.apache.org/core]
Offending resource: URL
[file:/home/sandamal/Programs/RM/wso2esb-4.9.0-M8-SNAPSHOT/repository/conf/cxf/server.xml]

If we can't add the schemas to the Spring bundle then the other option left
would be to embed the Spring jar inside cxf. I have updated the pull
request after embedding that dependency.

@Prabath - Please check if this works fine with the connector.

Thanks.

Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

Mobile - +94-77-144-9640

On Thu, May 14, 2015 at 3:17 PM, KasunG Gajasinghe  wrote:

> Hi Sandamal,
>
> Please attend to the comments mentioned in the pr.
>
> Thanks.
>
>
> On Thu, May 14, 2015 at 2:48 PM, Kasun Indrasiri  wrote:
>
>> Any update on this?
>>
>> On Wed, May 13, 2015 at 2:41 PM, Kasun Indrasiri  wrote:
>>
>>> Hi Sameera/kernel team,
>>>
>>> Can you please have a look. This is urgent for us.
>>>
>>> On Wed, May 13, 2015 at 11:18 AM, Sandamal Weerasinghe <
>>> sanda...@wso2.com> wrote:
>>>
 Since CXF is already being used in WSO2 products there is no need for
 approval [1]. And even if we are embedding this dependency or making the
 entire CXF-RM inbound an installable feature, we will need this as an Orbit
 bundle first.

 [1] [Thrid Party Library Approval] Apache CXF

 Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

 Mobile - +94-77-144-9640

 On Wed, May 13, 2015 at 11:15 AM, Kasun Indrasiri 
 wrote:

> Hi KasunG,
>
> Can you please review and merge asap. ESB 4.9 alpha release is blocked
> due to this.
>
> On Fri, May 8, 2015 at 2:09 PM, Sandamal Weerasinghe <
> sanda...@wso2.com> wrote:
>
>> Hi KasunG,
>>
>> Updated the pull request after doing a version upgrade. The following
>> dependencies had to be embedded; neethi, woodstox-core-asl and
>> xmlschema-core.
>> I have removed the wss4j and slf4j bundles as they are not essential
>> to the functionality of the cxf ws-rm inbound endpoint and connector. As
>> for the changes in the spring.schemas and spring.handlers, without those
>> changes the following error gets thrown at when starting an inbound
>> endpoint.
>>
>> org.springframework.beans.factory.parsing.BeanDefinitionParsingException:
>> Configuration problem: Unable to locate Spring NamespaceHandler for XML
>> schema namespace [http://cxf.apache.org/core]
>>
>> Please review and merge.
>>
>> [1] https://github.com/wso2/orbit/pull/71
>>
>> Thanks.
>>
>> Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd
>>
>> Mobile - +94-77-144-9640
>>
>> On Tue, May 5, 2015 at 10:57 AM, KasunG Gajasinghe 
>> wrote:
>>
>>> Hi Sandamal,
>>>
>>> We have forked some of the bundles you have mentioned above such as
>>> the wss4j bundle. Are you doing a version upgrade here? How is this 
>>> going
>>> to affect the components that rely on wss4j 1.5.11?
>>>
>>> And, can you also verify whether all these libraries approved?
>>>
>>> Thanks.
>>>
>>> On Thu, Apr 30, 2015 at 7:12 PM, Sandamal Weerasinghe <
>>> sanda...@wso2.com> wrote:
>>>
 Hi Prabath,

 Please check if the RMConnector works with the following in place,

 cxf-bundle-3.0.2.wso2v1.jar
 jetty-bundle-8.1.15.v20140411.wso2v1.jar
 slf4j-bundle-1.7.7.wso2v1.jar
 wss4j-bundle-2.0.2.wso2v1.jar

 org.apache.aries.blueprint-1.1.0.jar
 org.apache.aries.proxy-1.0.1.jar
 org.apache.aries.util-1.1.0.jar
 stax2-api-3.1.4.jar

 https://github.com/wso2/orbit/pull/71

 Thanks.

 Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

 Mobile - +94-77-144-9640

 On Thu, Apr 23, 2015 at 2:29 PM, Sandamal Weerasinghe <
 sanda...@wso2.com> wrote:

> Hi KasunG,
>
> Please review and merge.
>
> Thanks.
>
> Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd
>
> Mobile - +94-77-144-9640
>
> On Mon, Apr 20, 2015 at 7:48 AM, Prabath Ariyarathna <
> prabat...@wso2.com> wrote:
>
>> Hi Sandamal.
>>
>> It's working with the RM connector without any issue.
>>
>>
>> Thanks.
>>
>> On Sun, Apr 19, 2015 at 12:11 AM, Sandamal Weerasinghe <
>> sanda...@wso2.com> wrote:
>>
>>> Hi KasunG,
>>>
>>> I updated the pull requests according to your instructions,
>>> please 

Re: [Dev] VFS/JMS Sender in tenant mode error

2015-05-14 Thread Malaka Silva
Hi Manoj,

PR is already sent to 'master' branch.

https://github.com/wso2/carbon4-kernel/pull/205

On Thu, May 14, 2015 at 7:42 PM, Manoj Kumara  wrote:

> Hi Malaka,
>
> Please send the pull request to 'master' branch.
>
>
> *Manoj Kumara*
> Software Engineer
> WSO2 Inc. http://wso2.com/
> *lean.enterprise.middleware*
> Mobile: +94713448188
>
> On Thu, May 14, 2015 at 5:32 AM, Malaka Silva  wrote:
>
>> Great. Thx Manoj. Keep us posted.
>>
>> On Wed, May 13, 2015 at 8:32 PM, Manoj Kumara  wrote:
>>
>>> Hi Malaka,
>>>
>>> We are discussing about 4.4.1 release plan tomorrow. Will try to provide
>>> a solution after discussing with the team.
>>>
>>> Regards,
>>> Manoj
>>>
>>>
>>> *Manoj Kumara*
>>> Software Engineer
>>> WSO2 Inc. http://wso2.com/
>>> *lean.enterprise.middleware*
>>> Mobile: +94713448188
>>>
>>> On Wed, May 13, 2015 at 7:21 PM, Malaka Silva  wrote:
>>>
 Hi Carbon Team,

 Can we get this fixed for ESB alpha release?

 On Wed, May 13, 2015 at 6:35 AM, Malaka Silva  wrote:

> Hi Carbon Team,
>
> I have removed the hard-coded entries and changed it to a dynamic way.
>
> Please review and merge [1].
>
> [1] https://github.com/wso2/carbon4-kernel/pull/205
>
> On Tue, May 12, 2015 at 2:37 PM, Malaka Silva  wrote:
>
>> Hi Kasun,
>>
>> Added rabbitmq as well. It's better if we can do this dynamically.
>> Will check on that.
>>
>> Currently added vfs/jms and rabbitmq
>>
>> On Tue, May 12, 2015 at 2:14 PM, Kasun Indrasiri 
>> wrote:
>>
>>> Hi Malaka,
>>>
>>> Are we only adding them for JMS and VFS. How about other transports?
>>> Is it possible to make this dynamic so that we don't have to hardcode 
>>> the
>>> transports?
>>>
>>> On Tue, May 12, 2015 at 12:49 PM, Malaka Silva 
>>> wrote:
>>>
 Hi Carbon Team,

 Please merge [1].

 Related Jiras [2] and [3]

 [1] https://github.com/wso2/carbon4-kernel/pull/205
 [2] https://wso2.org/jira/browse/CARBON-15245
 [3] https://wso2.org/jira/browse/ESBJAVA-3683

 Best Regards,

 Malaka Silva
 Senior Tech Lead
 M: +94 777 219 791
 Tel : 94 11 214 5345
 Fax :94 11 2145300
 Skype : malaka.sampath.silva
 LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
 Blog : http://mrmalakasilva.blogspot.com/

 WSO2, Inc.
 lean . enterprise . middleware
 http://www.wso2.com/
 http://www.wso2.com/about/team/malaka-silva/
 

 Save a tree -Conserve nature & Save the world for your future.
 Print this email only if it is absolutely necessary.

>>>
>>>
>>>
>>> --
>>> Kasun Indrasiri
>>> Software Architect
>>> WSO2, Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> cell: +94 77 556 5206
>>> Blog : http://kasunpanorama.blogspot.com/
>>>
>>
>>
>>
>> --
>>
>> Best Regards,
>>
>> Malaka Silva
>> Senior Tech Lead
>> M: +94 777 219 791
>> Tel : 94 11 214 5345
>> Fax :94 11 2145300
>> Skype : malaka.sampath.silva
>> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
>> Blog : http://mrmalakasilva.blogspot.com/
>>
>> WSO2, Inc.
>> lean . enterprise . middleware
>> http://www.wso2.com/
>> http://www.wso2.com/about/team/malaka-silva/
>> 
>>
>> Save a tree -Conserve nature & Save the world for your future. Print
>> this email only if it is absolutely necessary.
>>
>
>
>
> --
>
> Best Regards,
>
> Malaka Silva
> Senior Tech Lead
> M: +94 777 219 791
> Tel : 94 11 214 5345
> Fax :94 11 2145300
> Skype : malaka.sampath.silva
> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
> Blog : http://mrmalakasilva.blogspot.com/
>
> WSO2, Inc.
> lean . enterprise . middleware
> http://www.wso2.com/
> http://www.wso2.com/about/team/malaka-silva/
> 
>
> Save a tree -Conserve nature & Save the world for your future. Print
> this email only if it is absolutely necessary.
>



 --

 Best Regards,

 Malaka Silva
 Senior Tech Lead
 M: +94 777 219 791
 Tel : 94 11 214 5345
 Fax :94 11 2145300
 Skype : malaka.sampath.silva
 LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
 Blog : http://mrmalakasilva.blogspot.com/

 WSO2, Inc.
 lean . enterprise . middleware
 http://www.wso2.com/
 http://www.wso2.com/about/team/malaka-silva/
 

 Save a tree -Conserve nature & Save the world for your future. Pri

Re: [Dev] [DEV] Response body is discarded if HTTP status code of the response is 409 (Conflict)

2015-05-14 Thread Malaka Silva
Hi Manoj,

Please find the PR to the master branch.

https://github.com/wso2/wso2-axis2/pull/45

On Thu, May 14, 2015 at 7:40 PM, Manoj Kumara  wrote:

> Hi Malaka,
>
> Can you please send the pull request to 'master' branch.
>
>
> *Manoj Kumara*
> Software Engineer
> WSO2 Inc. http://wso2.com/
> *lean.enterprise.middleware*
> Mobile: +94713448188
>
> On Wed, Apr 29, 2015 at 9:58 PM, Kishanthan Thangarajah <
> kishant...@wso2.com> wrote:
>
>> We will merge this. This will be the first patch for kernel 4.4.0.
>>
>> On Tue, Apr 28, 2015 at 11:05 AM, Malaka Silva  wrote:
>>
>>> Hi Carbon Team,
>>>
>>> Any update on this?
>>>
>>> On Fri, Apr 24, 2015 at 1:35 PM, Malaka Silva  wrote:
>>>
 Hi Carbon Team/Jayanga

 Please find the PR in [1] for jira [2].

 I have verified the scenario with callout mediator and seems to be
 working.

 Can you please review and merge the change?

 [1] https://github.com/wso2/wso2-axis2/pull/39
 [2] https://wso2.org/jira/browse/ESBJAVA-3588

 Best Regards,

 Malaka Silva
 Senior Tech Lead
 M: +94 777 219 791
 Tel : 94 11 214 5345
 Fax :94 11 2145300
 Skype : malaka.sampath.silva
 LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
 Blog : http://mrmalakasilva.blogspot.com/

 WSO2, Inc.
 lean . enterprise . middleware
 http://www.wso2.com/
 http://www.wso2.com/about/team/malaka-silva/
 

 Save a tree -Conserve nature & Save the world for your future. Print
 this email only if it is absolutely necessary.

>>>
>>>
>>>
>>> --
>>>
>>> Best Regards,
>>>
>>> Malaka Silva
>>> Senior Tech Lead
>>> M: +94 777 219 791
>>> Tel : 94 11 214 5345
>>> Fax :94 11 2145300
>>> Skype : malaka.sampath.silva
>>> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
>>> Blog : http://mrmalakasilva.blogspot.com/
>>>
>>> WSO2, Inc.
>>> lean . enterprise . middleware
>>> http://www.wso2.com/
>>> http://www.wso2.com/about/team/malaka-silva/
>>> 
>>>
>>> Save a tree -Conserve nature & Save the world for your future. Print
>>> this email only if it is absolutely necessary.
>>>
>>
>>
>>
>> --
>> *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
>>
>>
>


-- 

Best Regards,

Malaka Silva
Senior Tech Lead
M: +94 777 219 791
Tel : 94 11 214 5345
Fax :94 11 2145300
Skype : malaka.sampath.silva
LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
Blog : http://mrmalakasilva.blogspot.com/

WSO2, Inc.
lean . enterprise . middleware
http://www.wso2.com/
http://www.wso2.com/about/team/malaka-silva/


Save a tree -Conserve nature & Save the world for your future. Print this
email only if it is absolutely necessary.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Please review and merge PR - Session monitoring feature Implementation

2015-05-14 Thread Lakshani Gamage
Hi all,
Please note $ subject for [1] and [2].

[1]. Pull Request-Carbon-identity  -
https://github.com/wso2/carbon-identity/pull/152
[2] .Pull Request- Product-IS - https://github.com/wso2/product-is/pull/95

Thank you,
Lakshani
-- 
Lakshani Gamage

*Software Engineer*
Mobile : +94 (0) 71 5478184 <%2B94%20%280%29%20773%20451194>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Merge pull requests on wso2-axis2 repo

2015-05-14 Thread Manoj Kumara
Thanks Nira.


*Manoj Kumara*
Software Engineer
WSO2 Inc. http://wso2.com/
*lean.enterprise.middleware*
Mobile: +94713448188

On Thu, May 14, 2015 at 8:59 PM, Niranjan Karunanandham 
wrote:

> Hi Manoj,
>
> I have merged the pull requests [1] [2].
>
> [1] https://github.com/wso2/wso2-axis2/pull/42
> [2] https://github.com/wso2/wso2-axis2/pull/38
>
> Regards,
> Nira
>
> On Thu, May 14, 2015 at 7:55 PM, Manoj Kumara  wrote:
>
>> Hi Niranjan,
>>
>> Can you please merge the following pull request with master branch.
>>
>> [1] https://github.com/wso2/wso2-axis2/pull/42
>> [2] https://github.com/wso2/wso2-axis2/pull/38
>>
>>
>> Regards,
>> Manoj
>>
>
>
>
> --
>
> *Niranjan Karunanandham*
> Senior Software Engineer - WSO2 Inc.
> WSO2 Inc.: http://www.wso2.com
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] APIM ui integration tests

2015-05-14 Thread Krishantha Samaraweera
Good job everyone!

Now we need to get these tests running on Jenkins.

Note that UI tests are disabled by default, to run the tests you need to
use "mvn install -DskipUiTests=false" command.

Thanks,
Krishantha.


On Thu, May 14, 2015 at 9:11 PM, Irham Iqbal  wrote:

> Hi All,
>
> We have fixed all the UI tests. Please find the results below.
>
> INFO  [org.wso2.carbon.automation.engine.frameworkutils.CodeCoverageUtils]
> - Emma report generation completed
>
> Tests run: 24, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 477.559
> sec - in TestSuite
>
>
> Thanks,
>
> Iqbal
>
>
>
> On Tue, May 12, 2015 at 9:53 AM, Waruna Perera  wrote:
>
>> Hi All,
>>
>> We had to fix the UI test cases again after the API creation flow
>> changed. Following is the updated status now. Can you guys run UI module
>> locally before commit ( since jenkins UI tests can not be run) and check
>> whether any tests are broken due to new code changes? We are working on to
>> fix failures.
>>
>> Results :
>>
>> Failed tests:
>>
>> APIMANAGER3250CrossTenantSubscriptionTestCase.checkCrossTenantSubscription:176
>> » Timeout
>>
>> APIMANAGER3272ExternalLogoutPageTestCase.loginAndLogoutToStoreCheckForSessionInvalidated:84
>> » Timeout
>>
>> APIMANAGER3344ScopeSpecificTokenTestCase.testPublishApiWithScopesDefined:204
>> » NoSuchElement
>>   APIVersoinStatTestCase.testVersionStats:70 » Timeout Timed out after 30
>> second...
>>   TestNameLengthTestCase.testVerifyAPIName:105 truncated API name found
>> expected: but was:
>>   YouTubeUIPagesTestCase.testYoutubeAPI:71 » IllegalArgument Cannot find
>> element...
>>   YouTubeUIRecordedTestCase.testSubscribeAPI:173 » Timeout Timed out
>> after 60 se...
>>
>>
>>
>> Tests run: 26, Failures: 7, Errors: 0, Skipped: 1
>>
>>
>>
>> On Thu, Apr 23, 2015 at 5:46 PM, Kasun Gunasekara 
>> wrote:
>>
>>> Hi Irham,
>>>
>>> Regarding APIMANAGER3344ScopeSpecificTokenTestCase. Select Scopes
>>> button only shows up when an API is published with one or more scopes
>>> defined and applied to some resources + the current application is
>>> subscribed to it.
>>>
>>> Thank you.
>>>
>>>
>>> Kasun Gunasekara
>>> Software Engineering Intern - WSO2
>>> Mobile : +94 77 6986482
>>> Twitter  | Google+
>>>  | LinkedIn
>>> 
>>>
>>> On Wed, Apr 22, 2015 at 12:39 PM, Irham Iqbal  wrote:
>>>

 Hi,

 Currently I am fixing the following APIM UI integration tests failures.

 Results :

 Tests run: 26, Failures: 9, Errors: 0, Skipped: 1

 When i go through the code i found the following lines which may
 causing the test failures.

 APIMANAGER3272ExternalLogoutPageTestCase


- Getting an 404 when try to access
https://localhost:9443/store/site/pages/login.jag.
- In the code variable externalLogoutPage has assigned "custom
logout page url".


 APIMANAGER3344ScopeSpecificTokenTestCase


- Searching Select Scopes link inside My Subscriptions page in the
store but i don't see any select scope link in that page.


 APIMANAGER3363StoreAPIConsoleWithReverseProxy


- When click on API Console tag getting an exception in log and
also bellowing exception under that tag - 500 : undefined

 https://localhost:9443/store/api-docs/admin%40apimanager3363.com/APIMANAGER3363/1.0.0
.


 APIMANAGER3366MultipleGatewayPublishTestCase

- In the publisher when adding the API in the manage state it's
expecting input.env css selector  but it's not in that page.


 APIMANAGER3371BusinessInformationClearedWhenAPISavedButton

- In the publisher when adding the API in the manage state it's try
to click on xpath //form[@id='manage_form']/fieldset[3]/legend  but
it's not in that page.


 APIMANAGER3412DifferentRegistryContextPath


- In the publisher when adding the API in the design state it's try
to find a element by id jsonform-0-elt-production_endpoints but
it's not in that page.


 APIVersoinStatTestCase


- In the publisher in the all API page when it's empty it's trying
to find versionTxt by id but it's not in that page.


 TestNameLengthTestCase


- When running this test alone it's working. Some other test/tests
might be the reason of failure of this test case.


 YouTubeUIPagesTestCase

- testAPIPage.getTestResponseBody() gives http://wso2.org/apimanager/security";>900902Missing
CredentialsRequired OAuth credentials not
provided. Make sure your API invocation call has a header: 
 "Authorization:
Bearer ACCESS_TOKEN"

 Thanks,
 Iqbal
 --
 Irham Iqbal
 Software Engineer - Test Automation
 WSO2, Inc.: http:

Re: [Dev] APIM ui integration tests

2015-05-14 Thread Irham Iqbal
Hi All,

We have fixed all the UI tests. Please find the results below.

INFO  [org.wso2.carbon.automation.engine.frameworkutils.CodeCoverageUtils]
- Emma report generation completed

Tests run: 24, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 477.559
sec - in TestSuite


Thanks,

Iqbal



On Tue, May 12, 2015 at 9:53 AM, Waruna Perera  wrote:

> Hi All,
>
> We had to fix the UI test cases again after the API creation flow changed.
> Following is the updated status now. Can you guys run UI module locally
> before commit ( since jenkins UI tests can not be run) and check whether
> any tests are broken due to new code changes? We are working on to fix
> failures.
>
> Results :
>
> Failed tests:
>
> APIMANAGER3250CrossTenantSubscriptionTestCase.checkCrossTenantSubscription:176
> » Timeout
>
> APIMANAGER3272ExternalLogoutPageTestCase.loginAndLogoutToStoreCheckForSessionInvalidated:84
> » Timeout
>
> APIMANAGER3344ScopeSpecificTokenTestCase.testPublishApiWithScopesDefined:204
> » NoSuchElement
>   APIVersoinStatTestCase.testVersionStats:70 » Timeout Timed out after 30
> second...
>   TestNameLengthTestCase.testVerifyAPIName:105 truncated API name found
> expected: but was:
>   YouTubeUIPagesTestCase.testYoutubeAPI:71 » IllegalArgument Cannot find
> element...
>   YouTubeUIRecordedTestCase.testSubscribeAPI:173 » Timeout Timed out after
> 60 se...
>
>
>
> Tests run: 26, Failures: 7, Errors: 0, Skipped: 1
>
>
>
> On Thu, Apr 23, 2015 at 5:46 PM, Kasun Gunasekara  wrote:
>
>> Hi Irham,
>>
>> Regarding APIMANAGER3344ScopeSpecificTokenTestCase. Select Scopes button
>> only shows up when an API is published with one or more scopes defined and
>> applied to some resources + the current application is subscribed to it.
>>
>> Thank you.
>>
>>
>> Kasun Gunasekara
>> Software Engineering Intern - WSO2
>> Mobile : +94 77 6986482
>> Twitter  | Google+
>>  | LinkedIn
>> 
>>
>> On Wed, Apr 22, 2015 at 12:39 PM, Irham Iqbal  wrote:
>>
>>>
>>> Hi,
>>>
>>> Currently I am fixing the following APIM UI integration tests failures.
>>>
>>> Results :
>>>
>>> Tests run: 26, Failures: 9, Errors: 0, Skipped: 1
>>>
>>> When i go through the code i found the following lines which may causing
>>> the test failures.
>>>
>>> APIMANAGER3272ExternalLogoutPageTestCase
>>>
>>>
>>>- Getting an 404 when try to access
>>>https://localhost:9443/store/site/pages/login.jag.
>>>- In the code variable externalLogoutPage has assigned "custom
>>>logout page url".
>>>
>>>
>>> APIMANAGER3344ScopeSpecificTokenTestCase
>>>
>>>
>>>- Searching Select Scopes link inside My Subscriptions page in the
>>>store but i don't see any select scope link in that page.
>>>
>>>
>>> APIMANAGER3363StoreAPIConsoleWithReverseProxy
>>>
>>>
>>>- When click on API Console tag getting an exception in log and also
>>>bellowing exception under that tag - 500 : undefined
>>>
>>> https://localhost:9443/store/api-docs/admin%40apimanager3363.com/APIMANAGER3363/1.0.0
>>>.
>>>
>>>
>>> APIMANAGER3366MultipleGatewayPublishTestCase
>>>
>>>- In the publisher when adding the API in the manage state it's
>>>expecting input.env css selector  but it's not in that page.
>>>
>>>
>>> APIMANAGER3371BusinessInformationClearedWhenAPISavedButton
>>>
>>>- In the publisher when adding the API in the manage state it's try
>>>to click on xpath //form[@id='manage_form']/fieldset[3]/legend  but
>>>it's not in that page.
>>>
>>>
>>> APIMANAGER3412DifferentRegistryContextPath
>>>
>>>
>>>- In the publisher when adding the API in the design state it's try
>>>to find a element by id jsonform-0-elt-production_endpoints but it's
>>>not in that page.
>>>
>>>
>>> APIVersoinStatTestCase
>>>
>>>
>>>- In the publisher in the all API page when it's empty it's trying
>>>to find versionTxt by id but it's not in that page.
>>>
>>>
>>> TestNameLengthTestCase
>>>
>>>
>>>- When running this test alone it's working. Some other test/tests
>>>might be the reason of failure of this test case.
>>>
>>>
>>> YouTubeUIPagesTestCase
>>>
>>>- testAPIPage.getTestResponseBody() gives http://wso2.org/apimanager/security";>900902Missing
>>>CredentialsRequired OAuth credentials not
>>>provided. Make sure your API invocation call has a header: 
>>> "Authorization:
>>>Bearer ACCESS_TOKEN"
>>>
>>> Thanks,
>>> Iqbal
>>> --
>>> Irham Iqbal
>>> Software Engineer - Test Automation
>>> WSO2, Inc.: http://wso2.com
>>> lean. enterprise. middleware
>>> phone: +94 777888452
>>>
>>> ___
>>> 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
>>
>>
>
>
> --
> Waruna Perera
> Senior Software Engineer - Test Automation
> Mobile: +9

Re: [Dev] Creating Git Repository for staxon library

2015-05-14 Thread Ishan Jayawardena
Here's our contribution as two pull requests. I did these some time back
against their active repo. I have got some feedback, yet I am not sure how
far we are from getting these approved.
XSI:NIL https://github.com/beckchr/staxon/pull/27
CustomRegex https://github.com/beckchr/staxon/pull/28

You can find the initial discussion about StAXON here [1] engineering-group@.
We have this library in 4.2.0 branch [2], and what we are asking is to
bring this into the appropriate wso2 git repo so that we can go ahead with
our alpha release.

[1] Using Staxon for JSON support in ESB
[2]
http://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/dependencies/staxon/1.2.0-wso2v2

Thanks,
Ishan.


On Thu, May 14, 2015 at 6:35 PM, Kasun Indrasiri  wrote:

> Hi Ishan,
>
> Can you please do the needful for incorporating JSON related patches that
> we have done in Staxon into the ESB 4.9 release. We need to contribute to
> Staxon repo with the fixes we did so that we are sure that future release
> of Staxon will contain those fixes.
>
>
>
> On Sat, Nov 29, 2014 at 11:13 AM, Kasun Indrasiri  wrote:
>
>> This is already forked for some set of fixes/features. Lets review them
>> and then then decide how we can proceed.
>>
>> On Fri, Nov 28, 2014 at 7:41 PM, Sagara Gunathunga 
>> wrote:
>>
>>>
>>>
>>> On Fri, Nov 28, 2014 at 7:28 PM, Afkham Azeez  wrote:
>>>
 I am generally -1 for forking external dependencies. There should be
 workarounds for these. Please explain with details why this fork is
 necessary.

>>>
>>> Additionally I would like to know whether you have contact original
>>> authors of Staxon ? if not first you have to contact them and discuss
>>> about these changes. If you are doing improvements original project will
>>> welcome your changes.
>>>
>>> Thanks !
>>>

 On Fri, Nov 28, 2014 at 2:39 PM, Isuru Ranawaka 
 wrote:

> Hi ,
>
> Staxon library is used in ESB as underlying JSON library. We need to
> improve and add more functionalities to this library .So what will be the
> process of creating above git repo.
>
> thanks
> isurur
>
>
> --
> Best Regards
> Isuru Ranawaka
> M: +94714629880
> Blog : http://isurur.blogspot.com/
>



 --
 *Afkham Azeez*
 Director of Architecture; WSO2, Inc.; http://wso2.com
 Member; Apache Software Foundation; http://www.apache.org/
 * *
 *email: **az...@wso2.com* 
 * cell: +94 77 3320919 <%2B94%2077%203320919>blog: *
 *http://blog.afkham.org* 
 *twitter: **http://twitter.com/afkham_azeez*
 
 *linked-in: **http://lk.linkedin.com/in/afkhamazeez
 *

 *Lean . Enterprise . Middleware*

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


>>>
>>>
>>> --
>>> Sagara Gunathunga
>>>
>>> Senior Technical Lead; WSO2, Inc.;  http://wso2.com
>>> V.P Apache Web Services;http://ws.apache.org/
>>> Linkedin; http://www.linkedin.com/in/ssagara
>>> Blog ;  http://ssagara.blogspot.com
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Kasun Indrasiri
>> Software Architect
>> WSO2, Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> cell: +94 77 556 5206
>> Blog : http://kasunpanorama.blogspot.com/
>>
>
>
>
> --
> Kasun Indrasiri
> Software Architect
> WSO2, Inc.; http://wso2.com
> lean.enterprise.middleware
>
> cell: +94 77 556 5206
> Blog : http://kasunpanorama.blogspot.com/
>



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


Re: [Dev] Merge pull requests on wso2-axis2 repo

2015-05-14 Thread Niranjan Karunanandham
Hi Manoj,

I have merged the pull requests [1] [2].

[1] https://github.com/wso2/wso2-axis2/pull/42
[2] https://github.com/wso2/wso2-axis2/pull/38

Regards,
Nira

On Thu, May 14, 2015 at 7:55 PM, Manoj Kumara  wrote:

> Hi Niranjan,
>
> Can you please merge the following pull request with master branch.
>
> [1] https://github.com/wso2/wso2-axis2/pull/42
> [2] https://github.com/wso2/wso2-axis2/pull/38
>
>
> Regards,
> Manoj
>



-- 

*Niranjan Karunanandham*
Senior Software Engineer - WSO2 Inc.
WSO2 Inc.: http://www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Please merge pull requests on carbon4-kernel

2015-05-14 Thread Niranjan Karunanandham
Hi Manoj,

Pull request [1] is an integration test for gson.json which requires
com.google.gson. Currently this is not included in kernel and therefore
this pull request can be merged after adding it.

[1] - https://github.com/wso2/carbon4-kernel/pull/204

Regards,
Nira
On 14 May 2015 20:39, "Manoj Kumara"  wrote:

> Hi Nira, Nipuni,
>
> Please merge your pull requests with master branch.
>
> [1] https://github.com/wso2/carbon4-kernel/pull/204
> [2] https://github.com/wso2/carbon4-kernel/pull/133
>
> Regards,
> Manoj
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Please merge pull requests on carbon4-kernel

2015-05-14 Thread Manoj Kumara
Hi Nira, Nipuni,

Please merge your pull requests with master branch.

[1] https://github.com/wso2/carbon4-kernel/pull/204
[2] https://github.com/wso2/carbon4-kernel/pull/133

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


Re: [Dev] How to check whether a logged in user has admin role

2015-05-14 Thread Darshana Gunawardana
On Thu, May 14, 2015 at 6:38 PM, Thilini Cooray  wrote:

> Hi,
>
> I am implementing API export feature for APIM.
>
> I want to check whether a logged in user has admin role, because we are
> going to allow only admin users to export and import APIs.
>

If a particular feature needed to restricted, we usually done using
permission based manner. ie. To access RemoteUserStoreManager
functionalities, user needed to have /permission/admin/configure/security"
permission.


> Following is the source which I tried. But 
> userStoreManager.authenticate(username,
> password) does not authenticate tenant admins.
>

The authenticate method of the remote RemoteUserStoreManagerService does
not create a session for given username password, rather just check whether
given credentials are correct.

The sample [1] can use as a reference to authenticate and invoke methods in
RemoteUserStoreManagerService.

[1]
https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/products/is/5.0.0/modules/samples/user-mgt/remote-user-mgt/src/main/java/org/wso2/remoteum/sample/RemoteUMClient.java

Thanks,
Darshana.


> I get the session cookie by login using super tenant credentials.
>
> Any help is appreciated.
>
> Thank you.
>
>
> ServiceClient serviceClient;
> Options option;
>
>RemoteUserStoreManagerServiceStub userStoreManager =
>  new RemoteUserStoreManagerServiceStub(null, SERVICE_URL +
>  
> "RemoteUserStoreManagerService");
>
>serviceClient = userStoreManager._getServiceClient();
>option = serviceClient.getOptions();
>option.setManageSession(true);
>
> option.setProperty(org.apache.axis2.transport.http.HTTPConstants.COOKIE_STRING,
>   sessionCookie);
>
>//Checking whether current user is authenticated and he has admin role
>if (userStoreManager.authenticate(username, password)) {
>
>   String adminRoleName =
> 
> CarbonContext.getCurrentContext().getUserRealm().getRealmConfiguration()
>  .getAdminRoleName();
>
>   if (userStoreManager.isExistingRole(adminRoleName)) {
>  userName = username;
>  LOG.info(username + " user authenticated successfully");
>  return true;
>   }
>}
>
>
> --
> Best Regards,
>
> *Thilini Cooray*
> Software Engineer
> Mobile : +94 (0) 774 570 112 <%2B94%20%280%29%20773%20451194>
> E-mail : thili...@wso2.com
>
> WSO2 Inc. www.wso2.com
> lean.enterprise.middleware
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Regards,


*Darshana Gunawardana*Software Engineer
WSO2 Inc.; http://wso2.com

*E-mail: darsh...@wso2.com *
*Mobile: +94718566859*Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Merge pull requests on wso2-axis2 repo

2015-05-14 Thread Manoj Kumara
Hi Niranjan,

Can you please merge the following pull request with master branch.

[1] https://github.com/wso2/wso2-axis2/pull/42
[2] https://github.com/wso2/wso2-axis2/pull/38


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


Re: [Dev] VFS/JMS Sender in tenant mode error

2015-05-14 Thread Manoj Kumara
Hi Malaka,

Please send the pull request to 'master' branch.


*Manoj Kumara*
Software Engineer
WSO2 Inc. http://wso2.com/
*lean.enterprise.middleware*
Mobile: +94713448188

On Thu, May 14, 2015 at 5:32 AM, Malaka Silva  wrote:

> Great. Thx Manoj. Keep us posted.
>
> On Wed, May 13, 2015 at 8:32 PM, Manoj Kumara  wrote:
>
>> Hi Malaka,
>>
>> We are discussing about 4.4.1 release plan tomorrow. Will try to provide
>> a solution after discussing with the team.
>>
>> Regards,
>> Manoj
>>
>>
>> *Manoj Kumara*
>> Software Engineer
>> WSO2 Inc. http://wso2.com/
>> *lean.enterprise.middleware*
>> Mobile: +94713448188
>>
>> On Wed, May 13, 2015 at 7:21 PM, Malaka Silva  wrote:
>>
>>> Hi Carbon Team,
>>>
>>> Can we get this fixed for ESB alpha release?
>>>
>>> On Wed, May 13, 2015 at 6:35 AM, Malaka Silva  wrote:
>>>
 Hi Carbon Team,

 I have removed the hard-coded entries and changed it to a dynamic way.

 Please review and merge [1].

 [1] https://github.com/wso2/carbon4-kernel/pull/205

 On Tue, May 12, 2015 at 2:37 PM, Malaka Silva  wrote:

> Hi Kasun,
>
> Added rabbitmq as well. It's better if we can do this dynamically.
> Will check on that.
>
> Currently added vfs/jms and rabbitmq
>
> On Tue, May 12, 2015 at 2:14 PM, Kasun Indrasiri 
> wrote:
>
>> Hi Malaka,
>>
>> Are we only adding them for JMS and VFS. How about other transports?
>> Is it possible to make this dynamic so that we don't have to hardcode the
>> transports?
>>
>> On Tue, May 12, 2015 at 12:49 PM, Malaka Silva 
>> wrote:
>>
>>> Hi Carbon Team,
>>>
>>> Please merge [1].
>>>
>>> Related Jiras [2] and [3]
>>>
>>> [1] https://github.com/wso2/carbon4-kernel/pull/205
>>> [2] https://wso2.org/jira/browse/CARBON-15245
>>> [3] https://wso2.org/jira/browse/ESBJAVA-3683
>>>
>>> Best Regards,
>>>
>>> Malaka Silva
>>> Senior Tech Lead
>>> M: +94 777 219 791
>>> Tel : 94 11 214 5345
>>> Fax :94 11 2145300
>>> Skype : malaka.sampath.silva
>>> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
>>> Blog : http://mrmalakasilva.blogspot.com/
>>>
>>> WSO2, Inc.
>>> lean . enterprise . middleware
>>> http://www.wso2.com/
>>> http://www.wso2.com/about/team/malaka-silva/
>>> 
>>>
>>> Save a tree -Conserve nature & Save the world for your future. Print
>>> this email only if it is absolutely necessary.
>>>
>>
>>
>>
>> --
>> Kasun Indrasiri
>> Software Architect
>> WSO2, Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> cell: +94 77 556 5206
>> Blog : http://kasunpanorama.blogspot.com/
>>
>
>
>
> --
>
> Best Regards,
>
> Malaka Silva
> Senior Tech Lead
> M: +94 777 219 791
> Tel : 94 11 214 5345
> Fax :94 11 2145300
> Skype : malaka.sampath.silva
> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
> Blog : http://mrmalakasilva.blogspot.com/
>
> WSO2, Inc.
> lean . enterprise . middleware
> http://www.wso2.com/
> http://www.wso2.com/about/team/malaka-silva/
> 
>
> Save a tree -Conserve nature & Save the world for your future. Print
> this email only if it is absolutely necessary.
>



 --

 Best Regards,

 Malaka Silva
 Senior Tech Lead
 M: +94 777 219 791
 Tel : 94 11 214 5345
 Fax :94 11 2145300
 Skype : malaka.sampath.silva
 LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
 Blog : http://mrmalakasilva.blogspot.com/

 WSO2, Inc.
 lean . enterprise . middleware
 http://www.wso2.com/
 http://www.wso2.com/about/team/malaka-silva/
 

 Save a tree -Conserve nature & Save the world for your future. Print
 this email only if it is absolutely necessary.

>>>
>>>
>>>
>>> --
>>>
>>> Best Regards,
>>>
>>> Malaka Silva
>>> Senior Tech Lead
>>> M: +94 777 219 791
>>> Tel : 94 11 214 5345
>>> Fax :94 11 2145300
>>> Skype : malaka.sampath.silva
>>> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
>>> Blog : http://mrmalakasilva.blogspot.com/
>>>
>>> WSO2, Inc.
>>> lean . enterprise . middleware
>>> http://www.wso2.com/
>>> http://www.wso2.com/about/team/malaka-silva/
>>> 
>>>
>>> Save a tree -Conserve nature & Save the world for your future. Print
>>> this email only if it is absolutely necessary.
>>>
>>
>>
>
>
> --
>
> Best Regards,
>
> Malaka Silva
> Senior Tech Lead
> M: +94 777 219 791
> Tel : 94 11 214 5345
> Fax :94 11 2145300
> Skype : malaka.sampath.silva
> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
> Blog : http://mrmalakasilva.blogspot.com/
>
> WSO2, Inc.
> lean . ent

Re: [Dev] [DEV] Response body is discarded if HTTP status code of the response is 409 (Conflict)

2015-05-14 Thread Manoj Kumara
Hi Malaka,

Can you please send the pull request to 'master' branch.


*Manoj Kumara*
Software Engineer
WSO2 Inc. http://wso2.com/
*lean.enterprise.middleware*
Mobile: +94713448188

On Wed, Apr 29, 2015 at 9:58 PM, Kishanthan Thangarajah  wrote:

> We will merge this. This will be the first patch for kernel 4.4.0.
>
> On Tue, Apr 28, 2015 at 11:05 AM, Malaka Silva  wrote:
>
>> Hi Carbon Team,
>>
>> Any update on this?
>>
>> On Fri, Apr 24, 2015 at 1:35 PM, Malaka Silva  wrote:
>>
>>> Hi Carbon Team/Jayanga
>>>
>>> Please find the PR in [1] for jira [2].
>>>
>>> I have verified the scenario with callout mediator and seems to be
>>> working.
>>>
>>> Can you please review and merge the change?
>>>
>>> [1] https://github.com/wso2/wso2-axis2/pull/39
>>> [2] https://wso2.org/jira/browse/ESBJAVA-3588
>>>
>>> Best Regards,
>>>
>>> Malaka Silva
>>> Senior Tech Lead
>>> M: +94 777 219 791
>>> Tel : 94 11 214 5345
>>> Fax :94 11 2145300
>>> Skype : malaka.sampath.silva
>>> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
>>> Blog : http://mrmalakasilva.blogspot.com/
>>>
>>> WSO2, Inc.
>>> lean . enterprise . middleware
>>> http://www.wso2.com/
>>> http://www.wso2.com/about/team/malaka-silva/
>>> 
>>>
>>> Save a tree -Conserve nature & Save the world for your future. Print
>>> this email only if it is absolutely necessary.
>>>
>>
>>
>>
>> --
>>
>> Best Regards,
>>
>> Malaka Silva
>> Senior Tech Lead
>> M: +94 777 219 791
>> Tel : 94 11 214 5345
>> Fax :94 11 2145300
>> Skype : malaka.sampath.silva
>> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
>> Blog : http://mrmalakasilva.blogspot.com/
>>
>> WSO2, Inc.
>> lean . enterprise . middleware
>> http://www.wso2.com/
>> http://www.wso2.com/about/team/malaka-silva/
>> 
>>
>> Save a tree -Conserve nature & Save the world for your future. Print this
>> email only if it is absolutely necessary.
>>
>
>
>
> --
> *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
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] File Uploading using a REST service (JAX-RS) - Uploaded file contains empty content.

2015-05-14 Thread Nirmal Fernando
Great! Thanks all!

On Thu, May 14, 2015 at 5:53 PM, Supun Sethunga  wrote:

> Hi,
>
> This seemed to be a limit set by the cxf servlet. Got it solved by
> starting the server with
> -Dorg.apache.cxf.io.CachedOutputStream.Threshold=104857600 (increasing the
> threshold to 100MB)
>
> Thanks all for the help :-)
>
> Regards,
> Supun
>
> On Thu, May 14, 2015 at 3:43 PM, Nirmal Fernando  wrote:
>
>> Any help on this? Why this happens only in our case? What solutions other
>> products use?
>>
>> On Mon, May 11, 2015 at 4:55 PM, Supun Sethunga  wrote:
>>
>>> Hi Ruchira,
>>>
>>> Just noticed that jQuery Form Plugin [1] limits the upload size to
>>> 65.5KBs (Not sure whether this is limited by the plugin or the
>>> browser/tomcat). Simply, any file larger than 65.5KBs doesn't get uploaded.
>>>
>>> I tried setting >> value="4194304"/> in the html form, also tried increasing the HttpRequest
>>> max size of tomcat7 as in [2]. Neither seemed to work.
>>>
>>> Any idea on how to increase this file size limit?
>>>
>>> [1] https://blueimp.github.io/jQuery-File-Upload
>>> [2]
>>> http://stackoverflow.com/questions/2947683/httprequest-maximum-allowable-size-in-tomcat
>>>
>>> Thanks,
>>> Supun
>>>
>>> On Sat, May 9, 2015 at 8:46 PM, Supun Sethunga  wrote:
>>>
 Hi Ruchira,

 Managed to get it worked using the [2] library you suggested.Thanks for
 the help  :-)

 Regards,
 Supun

 On Thu, May 7, 2015 at 12:23 PM, Supun Sethunga 
 wrote:

> Hi Ruchira,
>
> Thanks for the quick response. The reason for going for JavaScript
> was, the backend is secured with Basic Auth, and AFAIK there is no way to
> set security headers to the html form submission request.
>
> Will try out the suggested libraries.
>
> Thanks,
> Supun
>
> On Thu, May 7, 2015 at 12:08 PM, Ruchira Wageesha 
> wrote:
>
>> Hi Supun,
>>
>> First of all it has nothing to do with Jaggery. i.e. Jaggery is a
>> server side framework and what you do here is sending a file from your
>> browser to a JAX-RS backend.
>>
>> When you upload binaries from a browser, most probably you will have
>> to post it with multipart content type. For that, the simplest approach 
>> is
>> to use an HTML form with multipart type and just submit the form. In this
>> case browser will do the HTTP post, but not you JavaScript code.
>>
>> Else, you can use a client side JavaScript library which does file
>> uploading such as [1] or [2](this is used in ES as well). But if you 
>> don't
>> have any specific requirement to go with JavaScript, then just go with 
>> the
>> HTML form.
>>
>> /Ruchira
>>
>> [1] https://blueimp.github.io/jQuery-File-Upload
>> [2] http://malsup.com/jquery/form/#file-upload
>>
>> On Thu, Apr 23, 2015 at 5:20 PM, Supun Sethunga 
>> wrote:
>>
>>> Hi,
>>>
>>> Requirement was to let a user upload a data file from a UI
>>> (html/jaggery), and the backend which handles file uploading is exposed 
>>> as
>>> a REST service. Backend service method I wrote looks as follows:
>>>
>>> @POST
 @Produces(MediaType.APPLICATION_JSON)
 @Consumes(MediaType.MULTIPART_FORM_DATA)
 public Response uploadDataset(@Multipart("datasetName") String
 datasetName,
   @Multipart("version") String
 version,
   @Multipart("description") String
 description,
   @Multipart("sourceType") String
 sourceType,
   @Multipart("destination") String
 destination,
   @Multipart("sourcePath") String
 sourcePath,
   @Multipart("dataFormat") String
 dataFormat,
   @Multipart("file") InputStream
 inputStream) {
 . . .
 . . .
 }
>>>
>>>
>>> The InputStream is then written to a file at the server side. This
>>> method works fine when I call this with CURL using:
>>>
>>> *curl -X POST -b cookies  http://localhost:9763/api/datasets
  -H "Authorization: Basic
 YWRtaW46YWRtaW4=" -H "Content-Type: multipart/form-data" --form
 datasetName=TestDataset --form version=1.0.0 --form
 description=TestDescription --form sourceType=file --form 
 destination=file
 --form dataFormat=CSV --form
 file=@/home/supun/Supun/MachineLearning/data/IndiansDiabetes.csv --form
 sourcePath=/temp*
>>>
>>>
>>> Also works fine when I used Chrome's REST client.
>>>
>>> However,  when I call the same service, using AJAX, the file is
>>> written with empty c

Re: [Dev] Please review and release carbon-identity-4.4.1

2015-05-14 Thread Isuru Udana
Thanks IS Team and Jayanga..!

On Thu, May 14, 2015 at 6:40 PM, Jayanga Dissanayake 
wrote:

> Hi,
>
> carbon-identity-4.4.1 is released.
>
> Thanks,
> Jayanga.
>
> *Jayanga Dissanayake*
> Senior Software Engineer
> WSO2 Inc. - http://wso2.com/
> lean . enterprise . middleware
> email: jaya...@wso2.com
> mobile: +94772207259
>
> On Thu, May 14, 2015 at 6:07 PM, Jayanga Dissanayake 
> wrote:
>
>> Hi,
>>
>> Repo [1] is closed.
>> Please verify.
>>
>> [1]
>> http://maven.wso2.org/nexus/content/repositories/orgwso2carbonidentity-005/
>>
>> Thanks,
>> Jayanga.
>>
>> *Jayanga Dissanayake*
>> Senior Software Engineer
>> WSO2 Inc. - http://wso2.com/
>> lean . enterprise . middleware
>> email: jaya...@wso2.com
>> mobile: +94772207259
>>
>> On Thu, May 14, 2015 at 5:52 PM, Isuru Udana  wrote:
>>
>>> Hi Kernel Team,
>>>
>>> Can we please get this released. We need this for ESB 4.9.0 alpha.
>>>
>>> Thanks.
>>>
>>> On Wed, May 13, 2015 at 6:06 PM, Prasad Tissera 
>>> wrote:
>>>
 Hi Kernal Team,

 carbon-identity-4.4.1 is released to the staging. Please review and
 release. Thanks.

 [1].
 http://maven.wso2.org/nexus/content/repositories/orgwso2carbonidentity-005/

 --
 Prasad Tissera
 Software Engineer.
 Mobile : +94777223444

>>>
>>>
>>>
>>> --
>>> *Isuru Udana*
>>> Associate Technical Lead
>>> WSO2 Inc.; http://wso2.com
>>> email: isu...@wso2.com cell: +94 77 3791887
>>> blog: http://mytecheye.blogspot.com/
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>


-- 
*Isuru Udana*
Associate Technical Lead
WSO2 Inc.; http://wso2.com
email: isu...@wso2.com cell: +94 77 3791887
blog: http://mytecheye.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Please review and release carbon-identity-4.4.1

2015-05-14 Thread Jayanga Dissanayake
Hi,

carbon-identity-4.4.1 is released.

Thanks,
Jayanga.

*Jayanga Dissanayake*
Senior Software Engineer
WSO2 Inc. - http://wso2.com/
lean . enterprise . middleware
email: jaya...@wso2.com
mobile: +94772207259

On Thu, May 14, 2015 at 6:07 PM, Jayanga Dissanayake 
wrote:

> Hi,
>
> Repo [1] is closed.
> Please verify.
>
> [1]
> http://maven.wso2.org/nexus/content/repositories/orgwso2carbonidentity-005/
>
> Thanks,
> Jayanga.
>
> *Jayanga Dissanayake*
> Senior Software Engineer
> WSO2 Inc. - http://wso2.com/
> lean . enterprise . middleware
> email: jaya...@wso2.com
> mobile: +94772207259
>
> On Thu, May 14, 2015 at 5:52 PM, Isuru Udana  wrote:
>
>> Hi Kernel Team,
>>
>> Can we please get this released. We need this for ESB 4.9.0 alpha.
>>
>> Thanks.
>>
>> On Wed, May 13, 2015 at 6:06 PM, Prasad Tissera  wrote:
>>
>>> Hi Kernal Team,
>>>
>>> carbon-identity-4.4.1 is released to the staging. Please review and
>>> release. Thanks.
>>>
>>> [1].
>>> http://maven.wso2.org/nexus/content/repositories/orgwso2carbonidentity-005/
>>>
>>> --
>>> Prasad Tissera
>>> Software Engineer.
>>> Mobile : +94777223444
>>>
>>
>>
>>
>> --
>> *Isuru Udana*
>> Associate Technical Lead
>> WSO2 Inc.; http://wso2.com
>> email: isu...@wso2.com cell: +94 77 3791887
>> blog: http://mytecheye.blogspot.com/
>>
>> ___
>> 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] How to check whether a logged in user has admin role

2015-05-14 Thread Thilini Cooray
Hi,

I am implementing API export feature for APIM.

I want to check whether a logged in user has admin role, because we are
going to allow only admin users to export and import APIs.

Following is the source which I tried. But
userStoreManager.authenticate(username,
password) does not authenticate tenant admins.

I get the session cookie by login using super tenant credentials.

Any help is appreciated.

Thank you.


ServiceClient serviceClient;
Options option;

   RemoteUserStoreManagerServiceStub userStoreManager =
 new RemoteUserStoreManagerServiceStub(null, SERVICE_URL +

"RemoteUserStoreManagerService");

   serviceClient = userStoreManager._getServiceClient();
   option = serviceClient.getOptions();
   option.setManageSession(true);
   
option.setProperty(org.apache.axis2.transport.http.HTTPConstants.COOKIE_STRING,
  sessionCookie);

   //Checking whether current user is authenticated and he has admin role
   if (userStoreManager.authenticate(username, password)) {

  String adminRoleName =

CarbonContext.getCurrentContext().getUserRealm().getRealmConfiguration()
 .getAdminRoleName();

  if (userStoreManager.isExistingRole(adminRoleName)) {
 userName = username;
 LOG.info(username + " user authenticated successfully");
 return true;
  }
   }


-- 
Best Regards,

*Thilini Cooray*
Software Engineer
Mobile : +94 (0) 774 570 112 <%2B94%20%280%29%20773%20451194>
E-mail : thili...@wso2.com

WSO2 Inc. www.wso2.com
lean.enterprise.middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Creating Git Repository for staxon library

2015-05-14 Thread Kasun Indrasiri
Hi Ishan,

Can you please do the needful for incorporating JSON related patches that
we have done in Staxon into the ESB 4.9 release. We need to contribute to
Staxon repo with the fixes we did so that we are sure that future release
of Staxon will contain those fixes.



On Sat, Nov 29, 2014 at 11:13 AM, Kasun Indrasiri  wrote:

> This is already forked for some set of fixes/features. Lets review them
> and then then decide how we can proceed.
>
> On Fri, Nov 28, 2014 at 7:41 PM, Sagara Gunathunga 
> wrote:
>
>>
>>
>> On Fri, Nov 28, 2014 at 7:28 PM, Afkham Azeez  wrote:
>>
>>> I am generally -1 for forking external dependencies. There should be
>>> workarounds for these. Please explain with details why this fork is
>>> necessary.
>>>
>>
>> Additionally I would like to know whether you have contact original
>> authors of Staxon ? if not first you have to contact them and discuss
>> about these changes. If you are doing improvements original project will
>> welcome your changes.
>>
>> Thanks !
>>
>>>
>>> On Fri, Nov 28, 2014 at 2:39 PM, Isuru Ranawaka  wrote:
>>>
 Hi ,

 Staxon library is used in ESB as underlying JSON library. We need to
 improve and add more functionalities to this library .So what will be the
 process of creating above git repo.

 thanks
 isurur


 --
 Best Regards
 Isuru Ranawaka
 M: +94714629880
 Blog : http://isurur.blogspot.com/

>>>
>>>
>>>
>>> --
>>> *Afkham Azeez*
>>> Director of Architecture; WSO2, Inc.; http://wso2.com
>>> Member; Apache Software Foundation; http://www.apache.org/
>>> * *
>>> *email: **az...@wso2.com* 
>>> * cell: +94 77 3320919 <%2B94%2077%203320919>blog: *
>>> *http://blog.afkham.org* 
>>> *twitter: **http://twitter.com/afkham_azeez*
>>> 
>>> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
>>> *
>>>
>>> *Lean . Enterprise . Middleware*
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Sagara Gunathunga
>>
>> Senior Technical Lead; WSO2, Inc.;  http://wso2.com
>> V.P Apache Web Services;http://ws.apache.org/
>> Linkedin; http://www.linkedin.com/in/ssagara
>> Blog ;  http://ssagara.blogspot.com
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Kasun Indrasiri
> Software Architect
> WSO2, Inc.; http://wso2.com
> lean.enterprise.middleware
>
> cell: +94 77 556 5206
> Blog : http://kasunpanorama.blogspot.com/
>



-- 
Kasun Indrasiri
Software Architect
WSO2, Inc.; http://wso2.com
lean.enterprise.middleware

cell: +94 77 556 5206
Blog : http://kasunpanorama.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Please review and release carbon-identity-4.4.1

2015-05-14 Thread Jayanga Dissanayake
Hi,

Repo [1] is closed.
Please verify.

[1]
http://maven.wso2.org/nexus/content/repositories/orgwso2carbonidentity-005/

Thanks,
Jayanga.

*Jayanga Dissanayake*
Senior Software Engineer
WSO2 Inc. - http://wso2.com/
lean . enterprise . middleware
email: jaya...@wso2.com
mobile: +94772207259

On Thu, May 14, 2015 at 5:52 PM, Isuru Udana  wrote:

> Hi Kernel Team,
>
> Can we please get this released. We need this for ESB 4.9.0 alpha.
>
> Thanks.
>
> On Wed, May 13, 2015 at 6:06 PM, Prasad Tissera  wrote:
>
>> Hi Kernal Team,
>>
>> carbon-identity-4.4.1 is released to the staging. Please review and
>> release. Thanks.
>>
>> [1].
>> http://maven.wso2.org/nexus/content/repositories/orgwso2carbonidentity-005/
>>
>> --
>> Prasad Tissera
>> Software Engineer.
>> Mobile : +94777223444
>>
>
>
>
> --
> *Isuru Udana*
> Associate Technical Lead
> WSO2 Inc.; http://wso2.com
> email: isu...@wso2.com cell: +94 77 3791887
> blog: http://mytecheye.blogspot.com/
>
> ___
> 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


Re: [Dev] File Uploading using a REST service (JAX-RS) - Uploaded file contains empty content.

2015-05-14 Thread Supun Sethunga
Hi,

This seemed to be a limit set by the cxf servlet. Got it solved by starting
the server with -Dorg.apache.cxf.io.CachedOutputStream.Threshold=104857600
(increasing the threshold to 100MB)

Thanks all for the help :-)

Regards,
Supun

On Thu, May 14, 2015 at 3:43 PM, Nirmal Fernando  wrote:

> Any help on this? Why this happens only in our case? What solutions other
> products use?
>
> On Mon, May 11, 2015 at 4:55 PM, Supun Sethunga  wrote:
>
>> Hi Ruchira,
>>
>> Just noticed that jQuery Form Plugin [1] limits the upload size to
>> 65.5KBs (Not sure whether this is limited by the plugin or the
>> browser/tomcat). Simply, any file larger than 65.5KBs doesn't get uploaded.
>>
>> I tried setting > value="4194304"/> in the html form, also tried increasing the HttpRequest
>> max size of tomcat7 as in [2]. Neither seemed to work.
>>
>> Any idea on how to increase this file size limit?
>>
>> [1] https://blueimp.github.io/jQuery-File-Upload
>> [2]
>> http://stackoverflow.com/questions/2947683/httprequest-maximum-allowable-size-in-tomcat
>>
>> Thanks,
>> Supun
>>
>> On Sat, May 9, 2015 at 8:46 PM, Supun Sethunga  wrote:
>>
>>> Hi Ruchira,
>>>
>>> Managed to get it worked using the [2] library you suggested.Thanks for
>>> the help  :-)
>>>
>>> Regards,
>>> Supun
>>>
>>> On Thu, May 7, 2015 at 12:23 PM, Supun Sethunga  wrote:
>>>
 Hi Ruchira,

 Thanks for the quick response. The reason for going for JavaScript was,
 the backend is secured with Basic Auth, and AFAIK there is no way to set
 security headers to the html form submission request.

 Will try out the suggested libraries.

 Thanks,
 Supun

 On Thu, May 7, 2015 at 12:08 PM, Ruchira Wageesha 
 wrote:

> Hi Supun,
>
> First of all it has nothing to do with Jaggery. i.e. Jaggery is a
> server side framework and what you do here is sending a file from your
> browser to a JAX-RS backend.
>
> When you upload binaries from a browser, most probably you will have
> to post it with multipart content type. For that, the simplest approach is
> to use an HTML form with multipart type and just submit the form. In this
> case browser will do the HTTP post, but not you JavaScript code.
>
> Else, you can use a client side JavaScript library which does file
> uploading such as [1] or [2](this is used in ES as well). But if you don't
> have any specific requirement to go with JavaScript, then just go with the
> HTML form.
>
> /Ruchira
>
> [1] https://blueimp.github.io/jQuery-File-Upload
> [2] http://malsup.com/jquery/form/#file-upload
>
> On Thu, Apr 23, 2015 at 5:20 PM, Supun Sethunga 
> wrote:
>
>> Hi,
>>
>> Requirement was to let a user upload a data file from a UI
>> (html/jaggery), and the backend which handles file uploading is exposed 
>> as
>> a REST service. Backend service method I wrote looks as follows:
>>
>> @POST
>>> @Produces(MediaType.APPLICATION_JSON)
>>> @Consumes(MediaType.MULTIPART_FORM_DATA)
>>> public Response uploadDataset(@Multipart("datasetName") String
>>> datasetName,
>>>   @Multipart("version") String
>>> version,
>>>   @Multipart("description") String
>>> description,
>>>   @Multipart("sourceType") String
>>> sourceType,
>>>   @Multipart("destination") String
>>> destination,
>>>   @Multipart("sourcePath") String
>>> sourcePath,
>>>   @Multipart("dataFormat") String
>>> dataFormat,
>>>   @Multipart("file") InputStream
>>> inputStream) {
>>> . . .
>>> . . .
>>> }
>>
>>
>> The InputStream is then written to a file at the server side. This
>> method works fine when I call this with CURL using:
>>
>> *curl -X POST -b cookies  http://localhost:9763/api/datasets
>>>  -H "Authorization: Basic
>>> YWRtaW46YWRtaW4=" -H "Content-Type: multipart/form-data" --form
>>> datasetName=TestDataset --form version=1.0.0 --form
>>> description=TestDescription --form sourceType=file --form 
>>> destination=file
>>> --form dataFormat=CSV --form
>>> file=@/home/supun/Supun/MachineLearning/data/IndiansDiabetes.csv --form
>>> sourcePath=/temp*
>>
>>
>> Also works fine when I used Chrome's REST client.
>>
>> However,  when I call the same service, using AJAX, the file is
>> written with empty content. Follow is the sample snippet.
>>
>>
>>> *var formData = new FormData();*
>>> *  formData.append("file", fileInput[0]['files'][0],
>>> 'IndiansDiabetes.csv');*
>>> * formData.append("datasetName", name);*
>>> * formDa

Re: [Dev] Please review and release carbon-identity-4.4.1

2015-05-14 Thread Isuru Udana
Hi Kernel Team,

Can we please get this released. We need this for ESB 4.9.0 alpha.

Thanks.

On Wed, May 13, 2015 at 6:06 PM, Prasad Tissera  wrote:

> Hi Kernal Team,
>
> carbon-identity-4.4.1 is released to the staging. Please review and
> release. Thanks.
>
> [1].
> http://maven.wso2.org/nexus/content/repositories/orgwso2carbonidentity-005/
>
> --
> Prasad Tissera
> Software Engineer.
> Mobile : +94777223444
>



-- 
*Isuru Udana*
Associate Technical Lead
WSO2 Inc.; http://wso2.com
email: isu...@wso2.com cell: +94 77 3791887
blog: http://mytecheye.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APPM] Depsync failure due to hazelcast issue

2015-05-14 Thread Asanthi Kulasinghe
Looping in Azeez and Dinusha


On Wed, May 13, 2015 at 2:33 PM, Nuwan Silva  wrote:

> Hi All,
>
> I came across the following issue where we see a depsync error when a
> single node in the cluster goes down and the other nodes not knowing it
> till its restarted.
> observation was that when a node (node 1) in the cluster goes down the
> other nodes (node 2 and node 3) do not know that node (node 1) is down. So
> it tries to synchronize its artifacts.
>
> further we observed that when the node which was down (node 1) restarts.
> the other nodes find out that node1 was down.
>
> TID: [0] [AM] [2015-05-13 09:00:08,861]  INFO
> {org.wso2.carbon.core.clustering.hazelcast.wka.WKABasedMembershipScheme} -
> Member left [cc9950e3-af57-48b1-9f45-b511f0f30863]: /192.168.48.2:4001
> {org.wso2.carbon.core.clustering.hazelcast.wka.WKABasedMembershipScheme}
> TID: [0] [AM] [2015-05-13 09:00:08,877]  INFO
> {org.wso2.carbon.core.clustering.hazelcast.wka.WKABasedMembershipScheme} -
> WKA member Host:192.168.48.2, Remote Host:null, Port: 4001, HTTP:8281,
> HTTPS:8244, Domain: wso2.am.storepub.domain, Sub-domain:worker, Active:true
> left cluster.
> {org.wso2.carbon.core.clustering.hazelcast.wka.WKABasedMembershipScheme}
> TID: [0] [AM] [2015-05-13 09:00:08,890]  INFO
> {org.wso2.carbon.core.clustering.hazelcast.HazelcastClusteringAgent} -
> Elected this member [10bb1dec-4d25-4966-a39a-eb42e42d1706] as the
> Coordinator for the cluster [wso2.am.storepub.domain]
> {org.wso2.carbon.core.clustering.hazelcast.HazelcastClusteringAgent}
> TID: [0] [AM] [2015-05-13 09:00:14,849]  INFO
> {org.wso2.carbon.core.clustering.hazelcast.wka.WKABasedMembershipScheme} -
> Member joined [bc438078-ee97-4643-aadb-cf7ba970dc7e]: /192.168.48.2:4001
> {org.wso2.carbon.core.clustering.hazelcast.wka.WKABasedMembershipScheme}
>
>
>
> *Depsync Error:*
>
> TID: [0] [AM] [2015-05-13 08:52:03,333] ERROR
> {org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask} -
> Deployment synchronization commit for tenant -1234 failed
> {org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask}
> com.hazelcast.core.HazelcastException:
> com.hazelcast.spi.exception.RetryableIOException: Packet not sent to ->
> Address[192.168.48.5]:4000
> at com.hazelcast.util.ExceptionUtil.rethrow(ExceptionUtil.java:45)
> at com.hazelcast.util.ExceptionUtil.rethrow(ExceptionUtil.java:40)
> at
> com.hazelcast.map.proxy.MapProxySupport.containsKeyInternal(MapProxySupport.java:371)
> at
> com.hazelcast.map.proxy.MapProxyImpl.containsKey(MapProxyImpl.java:215)
> at
> org.wso2.carbon.core.clustering.hazelcast.HazelcastDistributedMapProvider$DistMap.containsKey(HazelcastDistributedMapProvider.java:119)
> at
> org.wso2.carbon.caching.impl.CacheImpl.containsKey(CacheImpl.java:237)
> at
> org.wso2.carbon.registry.core.caching.CacheBackedRegistry.resourceExists(CacheBackedRegistry.java:291)
> at
> org.wso2.carbon.registry.core.session.UserRegistry.resourceExistsInternal(UserRegistry.java:777)
> at
> org.wso2.carbon.registry.core.session.UserRegistry.access$800(UserRegistry.java:60)
> at
> org.wso2.carbon.registry.core.session.UserRegistry$9.run(UserRegistry.java:760)
> at
> org.wso2.carbon.registry.core.session.UserRegistry$9.run(UserRegistry.java:757)
> at java.security.AccessController.doPrivileged(Native Method)
> at
> org.wso2.carbon.registry.core.session.UserRegistry.resourceExists(UserRegistry.java:757)
> at
> org.wso2.carbon.deployment.synchronizer.internal.repository.CarbonRepositoryUtils.getDeploymentSyncConfigurationFromRegistry(CarbonRepositoryUtils.java:262)
> at
> org.wso2.carbon.deployment.synchronizer.internal.repository.CarbonRepositoryUtils.getActiveSynchronizerConfiguration(CarbonRepositoryUtils.java:108)
> at
> org.wso2.carbon.deployment.synchronizer.internal.DeploymentSynchronizerServiceImpl.commit(DeploymentSynchronizerServiceImpl.java:96)
> at
> org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.deploymentSyncCommit(CarbonDeploymentSchedulerTask.java:207)
> at
> org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.run(CarbonDeploymentSchedulerTask.java:128)
> at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
> at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
> at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
> at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:745)
> Caused by: com.hazelcast.spi.exception.RetryableIOException: Packet not
> sent to -> Address[192.168.48.5]:4000
> at
> com.hazelcast.spi.impl.BasicInvocation.doInvoke(BasicInvocation.j

[Dev] Can' t run MTOM and SwA example on ESB

2015-05-14 Thread R.Lardera
I'm trying to test the Sample 51: MTOM and SwA Optimizations and 
Request/Response Correlation at
https://docs.wso2.com/pages/viewpage.action?pageId=33136025

via SoapUI (with Optimize client works fine), but something goes wrong..
[cid:image001.png@01D08E4D.8ACE5B70]
I've set Enable MTOM to true, but I get "Mime parts not found. Stream ended 
while searching for the boundary"
May I need "WSO2 ESB 4.8.1 service pack1 " as shown in this blog 
(http://hi-my-world.blogspot.it/2015/01/sending-attachements-with-with-esb-via.html)
 or make I a mistake?





SEDA Spa - Gruppo KGS

Roberto Lardera 


T: 

F: 

M: 

E: r.lard...@seda.it






Il messaggio di posta elettronica che avete ricevuto e gli eventuali allegati 
sono destinati esclusivamente ai loro destinatari originali e possono contenere 
informazioni protette dal segreto professionale e/o riservate. Nel caso siate 
stati inclusi tra i destinatari per errore, Vi preghiamo di comunicare 
l'accaduto al mittente e di cancellare dal Vs. sistema sia il messaggio che le 
eventuali copie, nonche eliminare le stampe prodotte. Vi diffidiamo, comunque, 
dal divulgare, diffondere o utilizzare in qualsiasi modo il contenuto del 
messaggio e gli eventuali allegati. Qualsiasi uso o divulgazione non 
autorizzati potrebbero costituire reato. Il presente messaggio potrebbe 
contenere opinioni personali dell'autore e non necessariamente riflettere le 
posizioni di SEDA Spa - Gruppo KGS

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


Re: [Dev] Displaying claimable user tasks in BPMN explorer

2015-05-14 Thread Shiva Balachandran
Hi All,

I got the candidateGroups working. The url query parameter "candidateUser"
throws the following error[1].

[1] - {"errorMessage":"The server encountered an unexpected condition which
prevented it from fulfilling the request","statusCode":500}

Thank you.

Regards,
Shiva Balachandran


On Thu, May 14, 2015 at 3:44 PM, Shiva Balachandran  wrote:

> Hi Amal,
>
> I tried out the above. The issue with the above is that the url parameter
> is wrong. it should be candidateUser, when we use candidateUsers, this
> returns all tasks, hence the json reponse we got. When i use the correct
> urlParameter i get the following error[1].
>
> Also, I tried with candidateGroup and candidateGroups, this too didnt
> work, no response was populated. I tried invoking through soapUI as well.
>
> i have attached herewith the model class for the claimable task.
>
> I have finished with the UI, just need to populate the claimable task, i
> was thinking of re-using the re-assign button in the inbox view to claim
> the task as the functionality is the same. Let me know if that is okay or
> should we re write a specific block for to claim a task.
>
> [1] - {"errorMessage":"The server encountered an unexpected condition
> which prevented it from fulfilling the request","statusCode":500}
>
> Thank you.
>
> Regards, Shiva Balachandran
>
> On Tue, May 12, 2015 at 7:32 PM, Amal Gunatilake  wrote:
>
>> Hi Shiva,
>>
>> Send the request with the parameter candidateUsers:
>> https://locaohst:9443/bpmn/runtime/tasks?candidateUsers=kermit
>>
>> More info regarding the parameters are mentioned in the Activiti user
>> guide under "*Table 111. List of tasks - URL query parameters*"
>> http://www.activiti.org/userguide/#_tasks_2
>>
>> Regards,
>> Amal
>>
>> On Tue, May 12, 2015 at 6:36 PM, Shiva Balachandran 
>> wrote:
>>
>>> Hi All,
>>>
>>> I deployed a process containing user tasks with candidate users and
>>> cadidate groups. Once i deployed these processes in the server, i created
>>> instances of the task. I used the rest API to check if the task are created
>>> and i noticed that the json returned doesn't have the candidate properties
>>> specified in the process. Without these properties we cannot differentiate
>>> or address these task to a user, these will be hidden. I have attached the
>>> .bar file and the json response from the server for the request[1]. This
>>> would be the reason for JIRA[2].
>>>
>>> We need to identify as to why these properties are not listed or ignored.
>>>
>>> [1] - http://localhost:9763/bpmn/runtime/tasks
>>> [2] - https://wso2.org/jira/browse/BPS-656
>>>
>>> Thank you.
>>>
>>> Regards,
>>> Shiva Balachandran
>>>
>>> On Tue, May 12, 2015 at 11:32 AM, Amal Gunatilake 
>>> wrote:
>>>
 Hi Shiva,

 I have created a sample icon that matches with the existing icons which
 can be used for the new "Claimable tasks" tab.

 Best regards,
 Amal.

 On Tue, May 12, 2015 at 11:29 AM, Shiva Balachandran 
 wrote:

> Hi Firzhan,
>
> The tab we currently have is My Tasks view only, we will be
> introducing the claimable tasks tab for the above mentioned requirement.
> The queued and involved tabs are what is present in the acitviti explorer
> from activiti.
>
> Thank you.
>
> Regards,
> Shiva Balachandran
>
> On Tue, May 12, 2015 at 11:22 AM, Firzhan Naqash 
> wrote:
>
>> Hi All,
>>
>> Just for clarification, if we are going to move the claimable tasks
>> to a separate tab, then we will be utilising the both involved and
>> claimable tabs.
>>
>> Can I know the necessity of using queued tab in this scenario.
>>
>>
>> Regards,
>> Firzhan
>>
>> On Tue, May 12, 2015 at 12:40 AM, Shiva Balachandran 
>> wrote:
>>
>>> Hi Amal,
>>>
>>> Also, to add to that, i just deployed a process with tasks
>>> containing candidate users and a candidate group. The users cannot see
>>> these tasks listed anywhere in the BPMN Explorer. I checked the backend 
>>> the
>>> explorer has the necessary jag code to populate these in the My Tasks 
>>> view,
>>> will debug further. JIRA[1] has been created previously to track this.
>>>
>>> [1] - https://wso2.org/jira/browse/BPS-656
>>>
>>> I will work on this.
>>>
>>> Thank you.
>>>
>>> Regards,
>>> Shiva Balachandran
>>>
>>>
>>>
>>> On Tue, May 12, 2015 at 11:00 AM, Amal Gunatilake 
>>> wrote:
>>>
 Hi Chathura,

 Yes, I too think having a separate tab for claimable tasks is a
 better approach. Shall we call it the "Claimable tasks" tab?
 To keep in track I created a jira ticket for this :
 https://wso2.org/jira/browse/BPS-660

 Best regards,
 Amal.

 On Tue, May 12, 2015 at 10:41 AM, Chathura Ekanayake <
 chath...@wso2.com> wrote:

> Hi Am

Re: [Dev] WSO2 ESB 4.8.1 service pack1 location

2015-05-14 Thread Chanaka Fernando
Hi Roberto,

We are not releasing service packs for community support. We only release
them to paying customers. But you can get all the fixes with the next ESB
release.

Thanks,
Chanaka

2015-05-14 16:09 GMT+05:30 :

>   Has this SP been released?
>
> Where I can find it?
>
>
>
> I would like to follow this guide
>
>
> http://hi-my-world.blogspot.it/2015/01/sending-attachements-with-with-esb-via.html
>
>   --
>
>   *Roberto Lardera *
>
> (
>Ê
>   È
>   -   r.lard...@seda.it
>
>  --
>
> * Il messaggio di posta elettronica che avete ricevuto e gli eventuali
> allegati sono destinati esclusivamente ai loro destinatari originali e
> possono contenere informazioni protette dal segreto professionale e/o
> riservate. Nel caso siate stati inclusi tra i destinatari per errore, Vi
> preghiamo di comunicare l'accaduto al mittente e di cancellare dal Vs.
> sistema sia il messaggio che le eventuali copie, nonché eliminare le stampe
> prodotte. Vi diffidiamo, comunque, dal divulgare, diffondere o utilizzare
> in qualsiasi modo il contenuto del messaggio e gli eventuali allegati.
> Qualsiasi uso o divulgazione non autorizzati potrebbero costituire reato.
> Il presente messaggio potrebbe contenere opinioni personali dell'autore e
> non necessariamente riflettere le posizioni di SEDA Spa - Gruppo KGS *
>
>   --
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
--
Chanaka Fernando
Senior Technical Lead
WSO2, Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 773337238
Blog : http://soatutorials.blogspot.com
LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0
Twitter:https://twitter.com/chanakaudaya
Wordpress:http://chanakaudaya.wordpress.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 ESB 4.8.1 service pack1 location

2015-05-14 Thread R.Lardera
Has this SP been released?
Where I can find it?

I would like to follow this guide
http://hi-my-world.blogspot.it/2015/01/sending-attachements-with-with-esb-via.html





SEDA Spa - Gruppo KGS

Roberto Lardera 


T: 

F: 

M: 

E: r.lard...@seda.it






Il messaggio di posta elettronica che avete ricevuto e gli eventuali allegati 
sono destinati esclusivamente ai loro destinatari originali e possono contenere 
informazioni protette dal segreto professionale e/o riservate. Nel caso siate 
stati inclusi tra i destinatari per errore, Vi preghiamo di comunicare 
l'accaduto al mittente e di cancellare dal Vs. sistema sia il messaggio che le 
eventuali copie, nonche eliminare le stampe prodotte. Vi diffidiamo, comunque, 
dal divulgare, diffondere o utilizzare in qualsiasi modo il contenuto del 
messaggio e gli eventuali allegati. Qualsiasi uso o divulgazione non 
autorizzati potrebbero costituire reato. Il presente messaggio potrebbe 
contenere opinioni personali dell'autore e non necessariamente riflettere le 
posizioni di SEDA Spa - Gruppo KGS

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


Re: [Dev] Displaying claimable user tasks in BPMN explorer

2015-05-14 Thread Shiva Balachandran
Hi Amal,

I tried out the above. The issue with the above is that the url parameter
is wrong. it should be candidateUser, when we use candidateUsers, this
returns all tasks, hence the json reponse we got. When i use the correct
urlParameter i get the following error[1].

Also, I tried with candidateGroup and candidateGroups, this too didnt work,
no response was populated. I tried invoking through soapUI as well.

i have attached herewith the model class for the claimable task.

I have finished with the UI, just need to populate the claimable task, i
was thinking of re-using the re-assign button in the inbox view to claim
the task as the functionality is the same. Let me know if that is okay or
should we re write a specific block for to claim a task.

[1] - {"errorMessage":"The server encountered an unexpected condition which
prevented it from fulfilling the request","statusCode":500}

Thank you.

Regards, Shiva Balachandran

On Tue, May 12, 2015 at 7:32 PM, Amal Gunatilake  wrote:

> Hi Shiva,
>
> Send the request with the parameter candidateUsers:
> https://locaohst:9443/bpmn/runtime/tasks?candidateUsers=kermit
>
> More info regarding the parameters are mentioned in the Activiti user
> guide under "*Table 111. List of tasks - URL query parameters*"
> http://www.activiti.org/userguide/#_tasks_2
>
> Regards,
> Amal
>
> On Tue, May 12, 2015 at 6:36 PM, Shiva Balachandran 
> wrote:
>
>> Hi All,
>>
>> I deployed a process containing user tasks with candidate users and
>> cadidate groups. Once i deployed these processes in the server, i created
>> instances of the task. I used the rest API to check if the task are created
>> and i noticed that the json returned doesn't have the candidate properties
>> specified in the process. Without these properties we cannot differentiate
>> or address these task to a user, these will be hidden. I have attached the
>> .bar file and the json response from the server for the request[1]. This
>> would be the reason for JIRA[2].
>>
>> We need to identify as to why these properties are not listed or ignored.
>>
>> [1] - http://localhost:9763/bpmn/runtime/tasks
>> [2] - https://wso2.org/jira/browse/BPS-656
>>
>> Thank you.
>>
>> Regards,
>> Shiva Balachandran
>>
>> On Tue, May 12, 2015 at 11:32 AM, Amal Gunatilake  wrote:
>>
>>> Hi Shiva,
>>>
>>> I have created a sample icon that matches with the existing icons which
>>> can be used for the new "Claimable tasks" tab.
>>>
>>> Best regards,
>>> Amal.
>>>
>>> On Tue, May 12, 2015 at 11:29 AM, Shiva Balachandran 
>>> wrote:
>>>
 Hi Firzhan,

 The tab we currently have is My Tasks view only, we will be introducing
 the claimable tasks tab for the above mentioned requirement. The queued and
 involved tabs are what is present in the acitviti explorer from activiti.

 Thank you.

 Regards,
 Shiva Balachandran

 On Tue, May 12, 2015 at 11:22 AM, Firzhan Naqash 
 wrote:

> Hi All,
>
> Just for clarification, if we are going to move the claimable tasks to
> a separate tab, then we will be utilising the both involved and claimable
> tabs.
>
> Can I know the necessity of using queued tab in this scenario.
>
>
> Regards,
> Firzhan
>
> On Tue, May 12, 2015 at 12:40 AM, Shiva Balachandran 
> wrote:
>
>> Hi Amal,
>>
>> Also, to add to that, i just deployed a process with tasks containing
>> candidate users and a candidate group. The users cannot see these tasks
>> listed anywhere in the BPMN Explorer. I checked the backend the explorer
>> has the necessary jag code to populate these in the My Tasks view, will
>> debug further. JIRA[1] has been created previously to track this.
>>
>> [1] - https://wso2.org/jira/browse/BPS-656
>>
>> I will work on this.
>>
>> Thank you.
>>
>> Regards,
>> Shiva Balachandran
>>
>>
>>
>> On Tue, May 12, 2015 at 11:00 AM, Amal Gunatilake 
>> wrote:
>>
>>> Hi Chathura,
>>>
>>> Yes, I too think having a separate tab for claimable tasks is a
>>> better approach. Shall we call it the "Claimable tasks" tab?
>>> To keep in track I created a jira ticket for this :
>>> https://wso2.org/jira/browse/BPS-660
>>>
>>> Best regards,
>>> Amal.
>>>
>>> On Tue, May 12, 2015 at 10:41 AM, Chathura Ekanayake <
>>> chath...@wso2.com> wrote:
>>>
 Hi Amal,

 Currently the BPMN explorer displays only the tasks "assigned" to
 the logged in user. But it does not display tasks if the current user 
 is a
 candidate user or in a candidate group. Did we plan to implement this 
 in
 the explorer?

 I think we should have a separate tab for claimable tasks, which
 shows tasks assigned to both candidate user and candidate group. WDYT?

 Regards,
 Chathura

>>>
>>>
>>>
>>>

Re: [Dev] File Uploading using a REST service (JAX-RS) - Uploaded file contains empty content.

2015-05-14 Thread Nirmal Fernando
Any help on this? Why this happens only in our case? What solutions other
products use?

On Mon, May 11, 2015 at 4:55 PM, Supun Sethunga  wrote:

> Hi Ruchira,
>
> Just noticed that jQuery Form Plugin [1] limits the upload size to
> 65.5KBs (Not sure whether this is limited by the plugin or the
> browser/tomcat). Simply, any file larger than 65.5KBs doesn't get uploaded.
>
> I tried setting  value="4194304"/> in the html form, also tried increasing the HttpRequest
> max size of tomcat7 as in [2]. Neither seemed to work.
>
> Any idea on how to increase this file size limit?
>
> [1] https://blueimp.github.io/jQuery-File-Upload
> [2]
> http://stackoverflow.com/questions/2947683/httprequest-maximum-allowable-size-in-tomcat
>
> Thanks,
> Supun
>
> On Sat, May 9, 2015 at 8:46 PM, Supun Sethunga  wrote:
>
>> Hi Ruchira,
>>
>> Managed to get it worked using the [2] library you suggested.Thanks for
>> the help  :-)
>>
>> Regards,
>> Supun
>>
>> On Thu, May 7, 2015 at 12:23 PM, Supun Sethunga  wrote:
>>
>>> Hi Ruchira,
>>>
>>> Thanks for the quick response. The reason for going for JavaScript was,
>>> the backend is secured with Basic Auth, and AFAIK there is no way to set
>>> security headers to the html form submission request.
>>>
>>> Will try out the suggested libraries.
>>>
>>> Thanks,
>>> Supun
>>>
>>> On Thu, May 7, 2015 at 12:08 PM, Ruchira Wageesha 
>>> wrote:
>>>
 Hi Supun,

 First of all it has nothing to do with Jaggery. i.e. Jaggery is a
 server side framework and what you do here is sending a file from your
 browser to a JAX-RS backend.

 When you upload binaries from a browser, most probably you will have to
 post it with multipart content type. For that, the simplest approach is to
 use an HTML form with multipart type and just submit the form. In this case
 browser will do the HTTP post, but not you JavaScript code.

 Else, you can use a client side JavaScript library which does file
 uploading such as [1] or [2](this is used in ES as well). But if you don't
 have any specific requirement to go with JavaScript, then just go with the
 HTML form.

 /Ruchira

 [1] https://blueimp.github.io/jQuery-File-Upload
 [2] http://malsup.com/jquery/form/#file-upload

 On Thu, Apr 23, 2015 at 5:20 PM, Supun Sethunga 
 wrote:

> Hi,
>
> Requirement was to let a user upload a data file from a UI
> (html/jaggery), and the backend which handles file uploading is exposed as
> a REST service. Backend service method I wrote looks as follows:
>
> @POST
>> @Produces(MediaType.APPLICATION_JSON)
>> @Consumes(MediaType.MULTIPART_FORM_DATA)
>> public Response uploadDataset(@Multipart("datasetName") String
>> datasetName,
>>   @Multipart("version") String
>> version,
>>   @Multipart("description") String
>> description,
>>   @Multipart("sourceType") String
>> sourceType,
>>   @Multipart("destination") String
>> destination,
>>   @Multipart("sourcePath") String
>> sourcePath,
>>   @Multipart("dataFormat") String
>> dataFormat,
>>   @Multipart("file") InputStream
>> inputStream) {
>> . . .
>> . . .
>> }
>
>
> The InputStream is then written to a file at the server side. This
> method works fine when I call this with CURL using:
>
> *curl -X POST -b cookies  http://localhost:9763/api/datasets
>>  -H "Authorization: Basic
>> YWRtaW46YWRtaW4=" -H "Content-Type: multipart/form-data" --form
>> datasetName=TestDataset --form version=1.0.0 --form
>> description=TestDescription --form sourceType=file --form 
>> destination=file
>> --form dataFormat=CSV --form
>> file=@/home/supun/Supun/MachineLearning/data/IndiansDiabetes.csv --form
>> sourcePath=/temp*
>
>
> Also works fine when I used Chrome's REST client.
>
> However,  when I call the same service, using AJAX, the file is
> written with empty content. Follow is the sample snippet.
>
>
>> *var formData = new FormData();*
>> *  formData.append("file", fileInput[0]['files'][0],
>> 'IndiansDiabetes.csv');*
>> * formData.append("datasetName", name);*
>> * formData.append("version", version);*
>> * formData.append("description", comments);*
>> * formData.append("sourceType", dataSourceType);*
>> * formData.append("sourcePath", null);*
>> * formData.append("destination", dataTargetType);**
>> formData.append("dataFormat", dataType);*
>
>
>
>
>> *   var baseUrl = getBaseUrl(window.location.href);*
>> *   $.ajax({*
>> *   type: 'P

Re: [Dev] WS-RM Inbound endpoint based on Apache CXF Orbit bundle

2015-05-14 Thread KasunG Gajasinghe
Hi Sandamal,

Please attend to the comments mentioned in the pr.

Thanks.


On Thu, May 14, 2015 at 2:48 PM, Kasun Indrasiri  wrote:

> Any update on this?
>
> On Wed, May 13, 2015 at 2:41 PM, Kasun Indrasiri  wrote:
>
>> Hi Sameera/kernel team,
>>
>> Can you please have a look. This is urgent for us.
>>
>> On Wed, May 13, 2015 at 11:18 AM, Sandamal Weerasinghe > > wrote:
>>
>>> Since CXF is already being used in WSO2 products there is no need for
>>> approval [1]. And even if we are embedding this dependency or making the
>>> entire CXF-RM inbound an installable feature, we will need this as an Orbit
>>> bundle first.
>>>
>>> [1] [Thrid Party Library Approval] Apache CXF
>>>
>>> Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd
>>>
>>> Mobile - +94-77-144-9640
>>>
>>> On Wed, May 13, 2015 at 11:15 AM, Kasun Indrasiri 
>>> wrote:
>>>
 Hi KasunG,

 Can you please review and merge asap. ESB 4.9 alpha release is blocked
 due to this.

 On Fri, May 8, 2015 at 2:09 PM, Sandamal Weerasinghe >>> > wrote:

> Hi KasunG,
>
> Updated the pull request after doing a version upgrade. The following
> dependencies had to be embedded; neethi, woodstox-core-asl and
> xmlschema-core.
> I have removed the wss4j and slf4j bundles as they are not essential
> to the functionality of the cxf ws-rm inbound endpoint and connector. As
> for the changes in the spring.schemas and spring.handlers, without those
> changes the following error gets thrown at when starting an inbound
> endpoint.
>
> org.springframework.beans.factory.parsing.BeanDefinitionParsingException:
> Configuration problem: Unable to locate Spring NamespaceHandler for XML
> schema namespace [http://cxf.apache.org/core]
>
> Please review and merge.
>
> [1] https://github.com/wso2/orbit/pull/71
>
> Thanks.
>
> Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd
>
> Mobile - +94-77-144-9640
>
> On Tue, May 5, 2015 at 10:57 AM, KasunG Gajasinghe 
> wrote:
>
>> Hi Sandamal,
>>
>> We have forked some of the bundles you have mentioned above such as
>> the wss4j bundle. Are you doing a version upgrade here? How is this going
>> to affect the components that rely on wss4j 1.5.11?
>>
>> And, can you also verify whether all these libraries approved?
>>
>> Thanks.
>>
>> On Thu, Apr 30, 2015 at 7:12 PM, Sandamal Weerasinghe <
>> sanda...@wso2.com> wrote:
>>
>>> Hi Prabath,
>>>
>>> Please check if the RMConnector works with the following in place,
>>>
>>> cxf-bundle-3.0.2.wso2v1.jar
>>> jetty-bundle-8.1.15.v20140411.wso2v1.jar
>>> slf4j-bundle-1.7.7.wso2v1.jar
>>> wss4j-bundle-2.0.2.wso2v1.jar
>>>
>>> org.apache.aries.blueprint-1.1.0.jar
>>> org.apache.aries.proxy-1.0.1.jar
>>> org.apache.aries.util-1.1.0.jar
>>> stax2-api-3.1.4.jar
>>>
>>> https://github.com/wso2/orbit/pull/71
>>>
>>> Thanks.
>>>
>>> Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd
>>>
>>> Mobile - +94-77-144-9640
>>>
>>> On Thu, Apr 23, 2015 at 2:29 PM, Sandamal Weerasinghe <
>>> sanda...@wso2.com> wrote:
>>>
 Hi KasunG,

 Please review and merge.

 Thanks.

 Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

 Mobile - +94-77-144-9640

 On Mon, Apr 20, 2015 at 7:48 AM, Prabath Ariyarathna <
 prabat...@wso2.com> wrote:

> Hi Sandamal.
>
> It's working with the RM connector without any issue.
>
>
> Thanks.
>
> On Sun, Apr 19, 2015 at 12:11 AM, Sandamal Weerasinghe <
> sanda...@wso2.com> wrote:
>
>> Hi KasunG,
>>
>> I updated the pull requests according to your instructions,
>> please have a look.
>>
>> PrabathA : Can you please check if the RM connector works with
>> the new Bundles
>>
>> Thanks.
>>
>> Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd
>>
>> Mobile - +94-77-144-9640
>>
>> On Thu, Apr 16, 2015 at 6:01 PM, Sandamal Weerasinghe <
>> sanda...@wso2.com> wrote:
>>
>>> Hi KasunG,
>>>
>>> I split the cxf bundle in to 2 bundles (cxf and jetty) and now I
>>> get the following error when starting up the ESB
>>>
>>> [2015-04-16 17:55:18,448]  INFO - ServerImpl Setting the
>>> server's publish address to be http://localhost:8081
>>> [2015-04-16 17:55:18,454] FATAL - ServiceBusInitializer Failed
>>> to initialize ESB due to a fatal error
>>> java.lang.LinkageError: loader constraint violation: loader
>>> (instance of 
>>> org/eclipse/osgi/internal/ba

[Dev] Simple encoding support for categorical features with string values in WSO2 ML

2015-05-14 Thread Nirmal Fernando
Hi,

I have implemented $subject with a simple encoding mechanism [1]. With this
feature, now we can run the Iris data-set [2] as it is in WSO2 ML (with
decision tree algorithm).

Relevant jira is at [3].

[1]
*Encoding*:

assigns a distinct numeric value to each possible value of the categorical
feature. For example, cloudy may become 1.0, rainy 2.0, and so on.

[2]
https://archive.ics.uci.edu/ml/machine-learning-databases/iris/iris.data

[3]
https://wso2.org/jira/browse/ML-29

-- 

Thanks & regards,
Nirmal

Associate Technical Lead - Data Technologies Team, WSO2 Inc.
Mobile: +94715779733
Blog: http://nirmalfdo.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WS-RM Inbound endpoint based on Apache CXF Orbit bundle

2015-05-14 Thread Kasun Indrasiri
Any update on this?

On Wed, May 13, 2015 at 2:41 PM, Kasun Indrasiri  wrote:

> Hi Sameera/kernel team,
>
> Can you please have a look. This is urgent for us.
>
> On Wed, May 13, 2015 at 11:18 AM, Sandamal Weerasinghe 
> wrote:
>
>> Since CXF is already being used in WSO2 products there is no need for
>> approval [1]. And even if we are embedding this dependency or making the
>> entire CXF-RM inbound an installable feature, we will need this as an Orbit
>> bundle first.
>>
>> [1] [Thrid Party Library Approval] Apache CXF
>>
>> Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd
>>
>> Mobile - +94-77-144-9640
>>
>> On Wed, May 13, 2015 at 11:15 AM, Kasun Indrasiri  wrote:
>>
>>> Hi KasunG,
>>>
>>> Can you please review and merge asap. ESB 4.9 alpha release is blocked
>>> due to this.
>>>
>>> On Fri, May 8, 2015 at 2:09 PM, Sandamal Weerasinghe 
>>> wrote:
>>>
 Hi KasunG,

 Updated the pull request after doing a version upgrade. The following
 dependencies had to be embedded; neethi, woodstox-core-asl and
 xmlschema-core.
 I have removed the wss4j and slf4j bundles as they are not essential to
 the functionality of the cxf ws-rm inbound endpoint and connector. As for
 the changes in the spring.schemas and spring.handlers, without those
 changes the following error gets thrown at when starting an inbound
 endpoint.

 org.springframework.beans.factory.parsing.BeanDefinitionParsingException:
 Configuration problem: Unable to locate Spring NamespaceHandler for XML
 schema namespace [http://cxf.apache.org/core]

 Please review and merge.

 [1] https://github.com/wso2/orbit/pull/71

 Thanks.

 Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

 Mobile - +94-77-144-9640

 On Tue, May 5, 2015 at 10:57 AM, KasunG Gajasinghe 
 wrote:

> Hi Sandamal,
>
> We have forked some of the bundles you have mentioned above such as
> the wss4j bundle. Are you doing a version upgrade here? How is this going
> to affect the components that rely on wss4j 1.5.11?
>
> And, can you also verify whether all these libraries approved?
>
> Thanks.
>
> On Thu, Apr 30, 2015 at 7:12 PM, Sandamal Weerasinghe <
> sanda...@wso2.com> wrote:
>
>> Hi Prabath,
>>
>> Please check if the RMConnector works with the following in place,
>>
>> cxf-bundle-3.0.2.wso2v1.jar
>> jetty-bundle-8.1.15.v20140411.wso2v1.jar
>> slf4j-bundle-1.7.7.wso2v1.jar
>> wss4j-bundle-2.0.2.wso2v1.jar
>>
>> org.apache.aries.blueprint-1.1.0.jar
>> org.apache.aries.proxy-1.0.1.jar
>> org.apache.aries.util-1.1.0.jar
>> stax2-api-3.1.4.jar
>>
>> https://github.com/wso2/orbit/pull/71
>>
>> Thanks.
>>
>> Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd
>>
>> Mobile - +94-77-144-9640
>>
>> On Thu, Apr 23, 2015 at 2:29 PM, Sandamal Weerasinghe <
>> sanda...@wso2.com> wrote:
>>
>>> Hi KasunG,
>>>
>>> Please review and merge.
>>>
>>> Thanks.
>>>
>>> Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd
>>>
>>> Mobile - +94-77-144-9640
>>>
>>> On Mon, Apr 20, 2015 at 7:48 AM, Prabath Ariyarathna <
>>> prabat...@wso2.com> wrote:
>>>
 Hi Sandamal.

 It's working with the RM connector without any issue.


 Thanks.

 On Sun, Apr 19, 2015 at 12:11 AM, Sandamal Weerasinghe <
 sanda...@wso2.com> wrote:

> Hi KasunG,
>
> I updated the pull requests according to your instructions, please
> have a look.
>
> PrabathA : Can you please check if the RM connector works with the
> new Bundles
>
> Thanks.
>
> Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd
>
> Mobile - +94-77-144-9640
>
> On Thu, Apr 16, 2015 at 6:01 PM, Sandamal Weerasinghe <
> sanda...@wso2.com> wrote:
>
>> Hi KasunG,
>>
>> I split the cxf bundle in to 2 bundles (cxf and jetty) and now I
>> get the following error when starting up the ESB
>>
>> [2015-04-16 17:55:18,448]  INFO - ServerImpl Setting the server's
>> publish address to be http://localhost:8081
>> [2015-04-16 17:55:18,454] FATAL - ServiceBusInitializer Failed to
>> initialize ESB due to a fatal error
>> java.lang.LinkageError: loader constraint violation: loader
>> (instance of 
>> org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader)
>> previously initiated loading for a different type with name
>> "javax/servlet/http/HttpServletResponse"
>> at
>> org.apache.cxf.transport.http_jetty.JettyHTTPServerEngine.addServant(JettyHTTPServerEngine.java:327)
>>