Re: [Dev] [AF] Fixing uploadable jaggery applications issue

2015-01-14 Thread Dimuthu Leelarathne
Hi Anuruddha,

Version upgrades are not things we do everyday for Jaggery. So lets go
ahead with the OSGI fragment upgrade. It is not something we expect to
change from this version to next either.

thanks,
dimuthu

On Wed, Jan 14, 2015 at 1:12 PM, Anuruddha Premalal 
wrote:

> Hi Manjula,
>
> Thing is root context ("/") for appmgt is appmgt folder itself. So if we
> give a relative path   like "*/mnt/10.100.100.5/appfactory/wso2appfactory/tmp
> *", it'll try to
> create the folder inside 
> "*appmgt/mnt/10.100.100.5/appfactory/wso2appfactory/tmp
> "*
>
>
> On Wed, Jan 14, 2015 at 11:47 AM, Manjula Rathnayake 
> wrote:
>
>> Hi Anuruddha,
>>
>> On Wed, Jan 14, 2015 at 11:28 AM, Anuruddha Premalal 
>> wrote:
>>
>>> Hi,
>>>
>>> Due to security reasons it's not possible to perform file operations
>>> outside the web root context, so we can't store uploaded applications to
>>> CARBON_HOME/tmp.
>>>
>> What are security issues we face? is it because end user upload the file
>> directly to the CARBON_HOME/tmp? If this is done by a signed code, java
>> security manager will validate and will not throw exceptions.
>> Can you share the exceptions.
>>
>> thank you.
>>
>>>
>>> Hence I'm trying the first option as the solution. OSGI fragment will
>>> have a required bundle and it'll have the compenent.xml which needs to be
>>> overridden.
>>>
>>> However there's an additional overhead of maintaining this fragment and
>>> the fragment-dependency along with jaggery releases (cause of the version
>>> changes).
>>>
>>> Regards,
>>> Anuruddha.
>>>
>>>
>>> On Tue, Jan 13, 2015 at 1:30 PM, Dimuthu Leelarathne 
>>> wrote:
>>>


 On Tue, Jan 13, 2015 at 12:49 PM, Anuruddha Premalal <
 anurud...@wso2.com> wrote:

> Hi,
>
> Once we upload an application to appfactory it get stored temporally
> inside*
> wso2appfctory-2.1.0/repository/deployment/server/jaggeryapps/appmgt/tmp/tmpUploadedApps
> . * Notice that this location is inside jaggeryapps folder.
>
> Issue is if we upload a zip file it gets automatically deployed inside
> the uploaded location by the jaggerydeployer and it deletes the original
> uploaded zip.
>
> Initially following are the fixes that are going to try.
>
> * Try to override the jaggerydeployer component.xml file by writing an
> osgi fragment.
>   - here component.xml file contains the information about the
> deployer. So we can  try overriding this xml and remove the zip file
> deploery.
>
> * Turn off hot deployment in axis2.xml
>   - but this will cause issue in apptype and runtime hot deployment?
>
>
 * Upload the applicatoins to carbon_home/tmp location
>  - This location is not visible to appmgt webapp home. Is there a way
> to pass the uploaded file to osgi back-end via jaggery?
>

 The fix is to copy the file into the temp location. And then reading
 the file from that location. Pass the file name is straight forward coding.

 thanks,
 dimuthu


>
> Appreciate your inputs in solving this issue [1].
>
> [1] https://wso2.org/jira/browse/APPFAC-2740
>
> Regards,
> --
> *Anuruddha Premalal*
> Software Eng. | WSO2 Inc.
> Mobile : +94710461070
> Web site : www.regilandvalley.com
>
>


 --
 Dimuthu Leelarathne
 Architect & Product Lead of App Factory

 WSO2, Inc. (http://wso2.com)
 email: dimut...@wso2.com
 Mobile : 0773661935

 Lean . Enterprise . Middleware

>>>
>>>
>>>
>>> --
>>> *Anuruddha Premalal*
>>> Software Eng. | WSO2 Inc.
>>> Mobile : +94710461070
>>> Web site : www.regilandvalley.com
>>>
>>>
>>
>>
>> --
>> Manjula Rathnayaka
>> Software Engineer
>> WSO2, Inc.
>> Mobile:+94 77 743 1987
>>
>
>
>
> --
> *Anuruddha Premalal*
> Software Eng. | WSO2 Inc.
> Mobile : +94710461070
> Web site : www.regilandvalley.com
>
>


-- 
Dimuthu Leelarathne
Architect & Product Lead of App Factory

WSO2, Inc. (http://wso2.com)
email: dimut...@wso2.com
Mobile : 0773661935

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


Re: [Dev] Can't use registry checkin-client with DevStudio to commit changes to the registry

2015-01-14 Thread Susankha Nirmala
After setting *RegistryType* to *ATOM*, the problem was fixed.
Thanks a lot Chandana and SameeraK.

/Susankha.

On Wed, Jan 14, 2015 at 11:43 AM, Susankha Nirmala 
wrote:

> After Debug I can see registry URL, username and password set as
> expected. But the problem is when accessing
>
> * System.getProperty("carbon.home")*  and
>
> * 
> ServerConfiguration.getInstance().getFirstProperty("Axis2Config.clientAxis2XmlLocation")*
>
> Within *newRegistry *in *ClientUtils.java *class, both return NULL.
>
>
>
> On Wed, Jan 14, 2015 at 11:04 AM, Chandana Napagoda 
> wrote:
>
>> Hi Susankha,
>>
>> If you have registry URL, username and password, you can access the
>> registry using RemoteRegistry. You can refer this sample[1] as well.
>>
>> [1].
>> https://docs.wso2.com/display/Governance452/Exporting+and+Importing+a+File+to+Remote+Registry
>>
>> Regards,
>> Chandana
>>
>> On Wed, Jan 14, 2015 at 10:49 AM, Pulasthi Supun 
>> wrote:
>>
>>> [Adding Sameerak]
>>>
>>> On Wed, Jan 14, 2015 at 10:47 AM, Susankha Nirmala 
>>> wrote:
>>>
 Adding Azeez

 On Wed, Jan 14, 2015 at 10:34 AM, Susankha Nirmala 
 wrote:

> Hi All,
>
> We are using checkin-client jar with DevStudio to commit changes to
> the registry. But within checkin-client,. it is used "carbon.home" 
> property
> and "Axis2Config.clientAxis2XmlLocation" property like below.
>
> ClientUtils.java
> 
>
>  ConfigurationContext context =
> ConfigurationContextFactory
>
> .createConfigurationContextFromFileSystem(
>*
> System.getProperty("carbon.home")* +
> File.separator
> + "repository" +
> File.separator
> +
> "deployment" +
> File.separator + "client",
>
> *ServerConfiguration.getInstance().getFirstProperty("Axis2Config.clientAxis2XmlLocation")*
> );
>
> But within devStudio context, we can't access "carbon.home" property
> and "Axis2Config.clientAxis2XmlLocation" property( both properties are
> return null within devStudio context).
> Is there a way to set those properties within devStudio context?
>
>
>
>
> --
> Susankha Nirmala
> Software Engineer
> WSO2, Inc.: http://wso2.com
> lean.enterprise.middleware
> Mobile : +94 77 593 2146t
>



 --
 Susankha Nirmala
 Software Engineer
 WSO2, Inc.: http://wso2.com
 lean.enterprise.middleware
 Mobile : +94 77 593 2146

>>>
>>>
>>>
>>> --
>>> --
>>> Pulasthi Supun
>>> Software Engineer; WSO2 Inc.; http://wso2.com,
>>> Email: pulas...@wso2.com
>>> Mobile: +94 (71) 9258281
>>> Blog : http://pulasthisupun.blogspot.com/
>>> Git hub profile: https://github.com/pulasthi
>>>
>>
>>
>>
>> --
>> *Chandana Napagoda*
>> Senior Software Engineer
>> WSO2 Inc. - http://wso2.org
>>
>> *Email  :  chand...@wso2.com **Mobile : +94718169299
>> <%2B94718169299>*
>>
>> *Blog  :http://cnapagoda.blogspot.com *
>>
>>
>
>
> --
> Susankha Nirmala
> Software Engineer
> WSO2, Inc.: http://wso2.com
> lean.enterprise.middleware
> Mobile : +94 77 593 2146
>



-- 
Susankha Nirmala
Software Engineer
WSO2, Inc.: http://wso2.com
lean.enterprise.middleware
Mobile : +94 77 593 2146
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB] Please merge the Pull Request for ESBJAVA-3137

2015-01-14 Thread Malaka Silva
Done. Please resolve the jira

On Wed, Jan 14, 2015 at 10:46 AM, Senduran Balasubramaniyam <
sendu...@wso2.com> wrote:

> Hi,
>
> Please merge the Pull Request [1] for JIRA [2]
>
> [1] https://github.com/wso2-dev/wso2-synapse/pull/191
> [2] https://wso2.org/jira/browse/ESBJAVA-3137
>
> Thanks
> Senduran
>
> --
> *Senduran *
> Software Engineer,
> WSO2, Inc.;  http://wso2.com/ 
> Mobile: +94 77 952 6548
>



-- 

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


Re: [Dev] [EMM] Automated Testing of Email Sending Functionality of EMM

2015-01-14 Thread Irham Iqbal
Hi Dilan,

Can't you use an API to make sure the email has received to user's email
account at the end to make the test pass.

Thanks,
Iqbal

On Wed, Jan 14, 2015 at 12:17 PM, Dilan Udara Ariyaratne 
wrote:

> Hi Krishantha,
>
> There is a problem on testing this email sending functionality using the
> UI and Selenium.
> This is because any error that occurs at the email sending level is not
> reflected at the UI level.
>
> What do you think?
>
> Regards,
> Dilan.
>
>
> *Dilan U. Ariyaratne*
> Software Engineer
> WSO2 Inc. 
> Mobile: +94775149066
> lean . enterprise . middleware
>
> On Tue, Jan 13, 2015 at 6:08 PM, Dilan Udara Ariyaratne 
> wrote:
>
>> Hi Krisantha,
>>
>> Following are the manual steps of sending a mail to a user.
>>
>> [1] Fill email configuration details (SMTP Mail Server Settings) under
>> the settings tab of admin console.
>> [2] Add a new user to the system which will send an invitation email to
>> the provided email address of the user.
>>
>> Herewith I am also attaching the screen-shots...
>>
>> Thanks.
>>
>>
>>
>> *Dilan U. Ariyaratne*
>> Software Engineer
>> WSO2 Inc. 
>> Mobile: +94775149066
>> lean . enterprise . middleware
>>
>> On Tue, Jan 13, 2015 at 2:48 PM, Krishantha Samaraweera <
>> krishan...@wso2.com> wrote:
>>
>>> Can you list the steps required to manually verify the scenario. We have
>>> recently implemented GreenMail sever utility for test framework. We can
>>> propose how to automate based on the manual steps.
>>>
>>> Thanks,
>>> Krishantha.
>>>
>>> On Tue, Jan 13, 2015 at 9:14 AM, Inosh Perera  wrote:
>>>
 Hi Krishantha,
 EMM 1.1.0 uses, require('email') available in Jaggery to send email.
 The configurations are stored in the registry. So it is not necessary to
 configure mail transport AFAIK.
 Adding the mobile team.

 Regards,
 Inosh


 On Mon, Jan 12, 2015 at 6:09 PM, Krishantha Samaraweera <
 krishan...@wso2.com> wrote:

> Do you need to configure mail transport in this case ? if yes, in
> which file ?
>
> Thanks,
> Krishantha
>
> On Mon, Jan 12, 2015 at 3:40 PM, Dilan Udara Ariyaratne <
> dil...@wso2.com> wrote:
>
>> Hi Folks,
>>
>> I am checking the feasibility of writing an automated test case for
>> the email
>> sending functionality of emm.
>>
>> When a user is created, an invitation email is sent to the
>> corresponding
>> user to register the device.
>>
>> sendEmail() is currently a jaggery function and is executed via a
>> non-exposed api to the outside
>> within EMM Jaggery web application.
>>
>> What is the best possible way to test this functionality?
>> Is there a recommended SMTP mail server to use?
>>
>> If I am using Selenium, to verify "success", I need to capture the
>> status message
>> of a dialog popup. How can I do this using Selenium?
>>
>> Appreciate any feedback on this.
>>
>> Thanks.
>>
>> *Dilan U. Ariyaratne*
>> Software Engineer
>> WSO2 Inc. 
>> Mobile: +94775149066
>> lean . enterprise . middleware
>>
>
>
>
> --
> Krishantha Samaraweera
> Senior Technical Lead - Test Automation
> Mobile: +94 77 7759918
> WSO2, Inc.; http://wso2.com/
> lean . enterprise . middlewear.
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 Inosh Perera
 Software Engineer, WSO2 Inc.
 Tel: 0785293686

>>>
>>>
>>>
>>> --
>>> Krishantha Samaraweera
>>> Senior Technical Lead - Test Automation
>>> Mobile: +94 77 7759918
>>> WSO2, Inc.; http://wso2.com/
>>> lean . enterprise . middlewear.
>>>
>>
>>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
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


Re: [Dev] [EMM] Automated Testing of Email Sending Functionality of EMM

2015-01-14 Thread Saneth Dharmakeerthi
Hi Dilan,

1) If this test is done manually what is the  way to verify this?
2) Are you still have the problem in capturing the status message of a
dialog popup?

Thanks and Best Regards,

Saneth Dharmakeerthi
Senior Software Engineer
WSO2, Inc.
Mobile: +94772325511

On Wed, Jan 14, 2015 at 1:59 PM, Irham Iqbal  wrote:

> Hi Dilan,
>
> Can't you use an API to make sure the email has received to user's email
> account at the end to make the test pass.
>
> Thanks,
> Iqbal
>
> On Wed, Jan 14, 2015 at 12:17 PM, Dilan Udara Ariyaratne 
> wrote:
>
>> Hi Krishantha,
>>
>> There is a problem on testing this email sending functionality using the
>> UI and Selenium.
>> This is because any error that occurs at the email sending level is not
>> reflected at the UI level.
>>
>> What do you think?
>>
>> Regards,
>> Dilan.
>>
>>
>> *Dilan U. Ariyaratne*
>> Software Engineer
>> WSO2 Inc. 
>> Mobile: +94775149066
>> lean . enterprise . middleware
>>
>> On Tue, Jan 13, 2015 at 6:08 PM, Dilan Udara Ariyaratne 
>> wrote:
>>
>>> Hi Krisantha,
>>>
>>> Following are the manual steps of sending a mail to a user.
>>>
>>> [1] Fill email configuration details (SMTP Mail Server Settings) under
>>> the settings tab of admin console.
>>> [2] Add a new user to the system which will send an invitation email to
>>> the provided email address of the user.
>>>
>>> Herewith I am also attaching the screen-shots...
>>>
>>> Thanks.
>>>
>>>
>>>
>>> *Dilan U. Ariyaratne*
>>> Software Engineer
>>> WSO2 Inc. 
>>> Mobile: +94775149066
>>> lean . enterprise . middleware
>>>
>>> On Tue, Jan 13, 2015 at 2:48 PM, Krishantha Samaraweera <
>>> krishan...@wso2.com> wrote:
>>>
 Can you list the steps required to manually verify the scenario. We
 have recently implemented GreenMail sever utility for test framework. We
 can propose how to automate based on the manual steps.

 Thanks,
 Krishantha.

 On Tue, Jan 13, 2015 at 9:14 AM, Inosh Perera  wrote:

> Hi Krishantha,
> EMM 1.1.0 uses, require('email') available in Jaggery to send email.
> The configurations are stored in the registry. So it is not necessary to
> configure mail transport AFAIK.
> Adding the mobile team.
>
> Regards,
> Inosh
>
>
> On Mon, Jan 12, 2015 at 6:09 PM, Krishantha Samaraweera <
> krishan...@wso2.com> wrote:
>
>> Do you need to configure mail transport in this case ? if yes, in
>> which file ?
>>
>> Thanks,
>> Krishantha
>>
>> On Mon, Jan 12, 2015 at 3:40 PM, Dilan Udara Ariyaratne <
>> dil...@wso2.com> wrote:
>>
>>> Hi Folks,
>>>
>>> I am checking the feasibility of writing an automated test case for
>>> the email
>>> sending functionality of emm.
>>>
>>> When a user is created, an invitation email is sent to the
>>> corresponding
>>> user to register the device.
>>>
>>> sendEmail() is currently a jaggery function and is executed via a
>>> non-exposed api to the outside
>>> within EMM Jaggery web application.
>>>
>>> What is the best possible way to test this functionality?
>>> Is there a recommended SMTP mail server to use?
>>>
>>> If I am using Selenium, to verify "success", I need to capture the
>>> status message
>>> of a dialog popup. How can I do this using Selenium?
>>>
>>> Appreciate any feedback on this.
>>>
>>> Thanks.
>>>
>>> *Dilan U. Ariyaratne*
>>> Software Engineer
>>> WSO2 Inc. 
>>> Mobile: +94775149066
>>> lean . enterprise . middleware
>>>
>>
>>
>>
>> --
>> Krishantha Samaraweera
>> Senior Technical Lead - Test Automation
>> Mobile: +94 77 7759918
>> WSO2, Inc.; http://wso2.com/
>> lean . enterprise . middlewear.
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Inosh Perera
> Software Engineer, WSO2 Inc.
> Tel: 0785293686
>



 --
 Krishantha Samaraweera
 Senior Technical Lead - Test Automation
 Mobile: +94 77 7759918
 WSO2, Inc.; http://wso2.com/
 lean . enterprise . middlewear.

>>>
>>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> 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


[Dev] What would be the advantage if we use conditional router mediator instead of switch-case mediator?

2015-01-14 Thread Vijayaratha Vijayasingam
Hi;
$ subject
Thanks.

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


Re: [Dev] [ESB] Please merge the Pull Request for ESBJAVA-3137

2015-01-14 Thread Senduran Balasubramaniyam
I have marked the JIRA as resolved

On Wed, Jan 14, 2015 at 1:57 PM, Malaka Silva  wrote:

> Done. Please resolve the jira
>
> On Wed, Jan 14, 2015 at 10:46 AM, Senduran Balasubramaniyam <
> sendu...@wso2.com> wrote:
>
>> Hi,
>>
>> Please merge the Pull Request [1] for JIRA [2]
>>
>> [1] https://github.com/wso2-dev/wso2-synapse/pull/191
>> [2] https://wso2.org/jira/browse/ESBJAVA-3137
>>
>> Thanks
>> Senduran
>>
>> --
>> *Senduran *
>> Software Engineer,
>> WSO2, Inc.;  http://wso2.com/ 
>> Mobile: +94 77 952 6548
>>
>
>
>
> --
>
> 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.
>



-- 
*Senduran *
Software Engineer,
WSO2, Inc.;  http://wso2.com/ 
Mobile: +94 77 952 6548
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Inosh Perera

2015-01-14 Thread Chaminda Jayawardena
Congratz Inosh..!! :)


On Mon, Jan 5, 2015 at 12:24 PM, Sameera Perera  wrote:

> Hi devs,
>
> Its my pleasure to welcome Inosh Perera as a WSO2 Committer.
>
> Inosh, welcome aboard and keep up the good work.
>
> *Sameera Perera*
> Director of Engineering
> gtalk: samee...@wso2.com
> Tel : 94 11 214 5345
> Fax :94 11 2145300
> *WSO2, Inc.* 
> lean.enterprise.middleware
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks & Regards

*Chaminda Jayawardena*
Senior Software Engineer - QA
WSO2 Inc. - http://wso2.com
+94-77-7725234
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Upgrading jcifs and JSch to the latest versions

2015-01-14 Thread Sandamal Weerasinghe
Hi all,

Currently we are using jcifs_0.8.3 (released with Carbon 3.1.0)
and jsch_0.1.49 (released with Carbon 4.1.0). I am in the process of
upgrading them to the latest versions available on Maven.

Thanks.

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

Mobile - +94-77-144-9640
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [AF] Fixing uploadable jaggery applications issue

2015-01-14 Thread Anuruddha Premalal
Hi,

Seems like OSGI fragments doesn't allow META-INF content overriding
(component.xml).

So we went to a fairly simple fix of appending a
constant(UPLOADABLE_SUFFIX) to all the uploadable artifacts and remove it
when copying to the repository location.

This solved the issue.

Regards,
Anuruddha


On Wed, Jan 14, 2015 at 1:40 PM, Dimuthu Leelarathne 
wrote:

> Hi Anuruddha,
>
> Version upgrades are not things we do everyday for Jaggery. So lets go
> ahead with the OSGI fragment upgrade. It is not something we expect to
> change from this version to next either.
>
> thanks,
> dimuthu
>
> On Wed, Jan 14, 2015 at 1:12 PM, Anuruddha Premalal 
> wrote:
>
>> Hi Manjula,
>>
>> Thing is root context ("/") for appmgt is appmgt folder itself. So if we
>> give a relative path   like "*/mnt/10.100.100.5/appfactory/wso2appfactory/tmp
>> *", it'll try to
>> create the folder inside 
>> "*appmgt/mnt/10.100.100.5/appfactory/wso2appfactory/tmp
>> "*
>>
>>
>> On Wed, Jan 14, 2015 at 11:47 AM, Manjula Rathnayake 
>> wrote:
>>
>>> Hi Anuruddha,
>>>
>>> On Wed, Jan 14, 2015 at 11:28 AM, Anuruddha Premalal >> > wrote:
>>>
 Hi,

 Due to security reasons it's not possible to perform file operations
 outside the web root context, so we can't store uploaded applications to
 CARBON_HOME/tmp.

>>> What are security issues we face? is it because end user upload the file
>>> directly to the CARBON_HOME/tmp? If this is done by a signed code, java
>>> security manager will validate and will not throw exceptions.
>>> Can you share the exceptions.
>>>
>>> thank you.
>>>

 Hence I'm trying the first option as the solution. OSGI fragment will
 have a required bundle and it'll have the compenent.xml which needs to be
 overridden.

 However there's an additional overhead of maintaining this fragment and
 the fragment-dependency along with jaggery releases (cause of the version
 changes).

 Regards,
 Anuruddha.


 On Tue, Jan 13, 2015 at 1:30 PM, Dimuthu Leelarathne >>> > wrote:

>
>
> On Tue, Jan 13, 2015 at 12:49 PM, Anuruddha Premalal <
> anurud...@wso2.com> wrote:
>
>> Hi,
>>
>> Once we upload an application to appfactory it get stored temporally
>> inside*
>> wso2appfctory-2.1.0/repository/deployment/server/jaggeryapps/appmgt/tmp/tmpUploadedApps
>> . * Notice that this location is inside jaggeryapps folder.
>>
>> Issue is if we upload a zip file it gets automatically deployed
>> inside the uploaded location by the jaggerydeployer and it deletes the
>> original uploaded zip.
>>
>> Initially following are the fixes that are going to try.
>>
>> * Try to override the jaggerydeployer component.xml file by writing
>> an osgi fragment.
>>   - here component.xml file contains the information about the
>> deployer. So we can  try overriding this xml and remove the zip file
>> deploery.
>>
>> * Turn off hot deployment in axis2.xml
>>   - but this will cause issue in apptype and runtime hot deployment?
>>
>>
> * Upload the applicatoins to carbon_home/tmp location
>>  - This location is not visible to appmgt webapp home. Is there a way
>> to pass the uploaded file to osgi back-end via jaggery?
>>
>
> The fix is to copy the file into the temp location. And then reading
> the file from that location. Pass the file name is straight forward 
> coding.
>
> thanks,
> dimuthu
>
>
>>
>> Appreciate your inputs in solving this issue [1].
>>
>> [1] https://wso2.org/jira/browse/APPFAC-2740
>>
>> Regards,
>> --
>> *Anuruddha Premalal*
>> Software Eng. | WSO2 Inc.
>> Mobile : +94710461070
>> Web site : www.regilandvalley.com
>>
>>
>
>
> --
> Dimuthu Leelarathne
> Architect & Product Lead of App Factory
>
> WSO2, Inc. (http://wso2.com)
> email: dimut...@wso2.com
> Mobile : 0773661935
>
> Lean . Enterprise . Middleware
>



 --
 *Anuruddha Premalal*
 Software Eng. | WSO2 Inc.
 Mobile : +94710461070
 Web site : www.regilandvalley.com


>>>
>>>
>>> --
>>> Manjula Rathnayaka
>>> Software Engineer
>>> WSO2, Inc.
>>> Mobile:+94 77 743 1987
>>>
>>
>>
>>
>> --
>> *Anuruddha Premalal*
>> Software Eng. | WSO2 Inc.
>> Mobile : +94710461070
>> Web site : www.regilandvalley.com
>>
>>
>
>
> --
> Dimuthu Leelarathne
> Architect & Product Lead of App Factory
>
> WSO2, Inc. (http://wso2.com)
> email: dimut...@wso2.com
> Mobile : 0773661935
>
> Lean . Enterprise . Middleware
>



-- 
*Anuruddha Premalal*
Software Eng. | WSO2 Inc.
Mobile : +94710461070
Web site : www.regilandvalley.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo

[Dev] [DevStudio] Please review and merge the pull request : TOOLS-2378

2015-01-14 Thread Rajeevan Vimalanathan
Hi,

Please merge the pull request[1] that includes fix for JIRA[2].

[1] https://github.com/wso2-dev/developer-studio/pull/127

[2] https://wso2.org/jira/browse/TOOLS-2378

Thanks,
Rajeevan

-- 
Best Regards,
V.Rajeevan
Software Engineer,
WSO2 Inc. :http://wso2.com

Mobile : +94 773090875
Email : rajeev...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Fwd: Pull request to include tenant deletion support

2015-01-14 Thread Shashika Karunatilaka
Hi all,

I have created PRs for the respective repositories(I have added a comment
in each PR). Please merge the Tenant deletion PRs and merge the following
PRs.

*carbon-multitenancy*

JIRA : https://wso2.org/jira/browse/WSAS-1882
PR : https://github.com/wso2-dev/carbon-multitenancy/pull/16

*carbon-storage-management*

JIRA :  https://wso2.org/jira/browse/SS-454

PR : https://github.com/wso2-dev/carbon-storage-management/pull/97

*carbon-event-processing*

JIRA : https://wso2.org/jira/browse/CEP-1000

PR : https://github.com/wso2-dev/carbon-event-processing/pull/45

*carbon-identity*

JIRA : https://wso2.org/jira/browse/IDENTITY-2984

PR : https://github.com/wso2-dev/carbon-identity/pull/63


Thank You

On Mon, Jan 12, 2015 at 10:48 AM, Shashika Karunatilaka 
wrote:

> HI all,
>
> Below are my findings for the wso2 repos that uses the above listener
> class, please correct me if i missed any.
>
>
> Repo
>
> Componenent
>
> class
>
> carbon-multitenancy
>
> (org.wso2.carbon.theme.mgt.util)
>
> ThemeLoadingListener.java
>
> (org.wso2.carbon.keystore.mgt)
>
> KeystoreTenantMgtListener.java
>
> carbon-storage-management
>
> (org.wso2.carbon.cassandra.server)
>
> TenantCreationListener.java
>
> (org.wso2.carbon.hdfs.mgt)
>
> HDFSTenantCreationListener.java
>
> carbon-event-processing
>
> (org.wso2.carbon.event.stream.manager.core.internal.util.helper)
>
> TenantMgtListenerImpl.java
>
> carbon-identity
>
> (org.wso2.carbon.idp.mgt.internal )
>
> TenantManagementListener.java
>
> (org.wso2.carbon.identity.application.authentication.framework.listener)
>
> AuthenticationEndpointTenantActivityListener.java
>
> product-af
>
> (org.wso2.carbon.appfactory.listners.tenant)
>
> AppFactoryTenantMgtListener.java
>
> (org.wso2.carbon.appfactory.s2.listeners)
>
> CloudEnvironmentPermissionListener.java
>
> (org.wso2.carbon.appfactory.stratos.listeners)
>
> CloudEnvironmentPermissionListener.java
>
> (org.wso2.carbon.appfactory.listners.tenant)
>
> DefaultRolesCreatorForTenant.java
>
> (org.wso2.carbon.appfactory.stratos.listeners)
>
> AppFactoryTenantKeyStoreMgtListener.java
>
> (org.wso2.carbon.appfactory.s2.listeners)
>
> AppFactoryTenantKeyStoreMgtListener.java
>
> (org.wso2.carbon.appfactory.listners.tenant)
>
> AppFactoryTenantActivationListener.java
>
> (org.wso2.carbon.appfactory.stratos.listeners)
>
> S2IntegrationTenantActivationListener.java
>
> (org.wso2.carbon.appfactory.s2.listeners)
>
> S2IntegrationTenantActivationListener.java
>
> private-paas
>
> (org.apache.stratos.theme.mgt.util)
>
> ThemeLoadingListener.java
>
> On Fri, Jan 9, 2015 at 8:47 PM, Shashika Karunatilaka 
> wrote:
>
>> Hi all,
>>
>> I will include newly added method to all respective repositories of
>> *TenantMgtListener* interface, and also will create necessary JIRAs
>>
>> Thank you
>>
>> On Fri, Jan 9, 2015 at 1:02 PM, Lakshman Udayakantha 
>> wrote:
>>
>>> [fowarding to dev]
>>>
>>> Since new method introduced in *TenantMgtListener *interface, There may
>>> be build failures after committing this. how should we proceed with
>>> that?
>>>
>>>
>>> Hi Carbon team,
>>>
>>> Please review and merge the pull requests [1] and [2] that is include
>>> the changes in tenant deletion support.
>>>
>>> [1] https://github.com/wso2-dev/carbon4-kernel/pull/134
>>> [2] https://github.com/wso2-dev/carbon-multitenancy/pull/15
>>>
>>> Thanks
>>> --
>>> Lakshman Udayakantha
>>> WSO2 Inc. www.wso2.com
>>> lean.enterprise.middleware
>>> Mobile: *0711241005*
>>>
>>>
>>>
>>>
>>> --
>>> Lakshman Udayakantha
>>> WSO2 Inc. www.wso2.com
>>> lean.enterprise.middleware
>>> Mobile: *0711241005*
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Shashika Prabath Karunatilaka,
>> Software Engineer,
>> WSO2, Inc: http://wso2.com/
>> mobile : +94 77 7487792
>>
>
>
>
> --
> Shashika Prabath Karunatilaka,
> Software Engineer,
> WSO2, Inc: http://wso2.com/
> mobile : +94 77 7487792
>



-- 
Shashika Prabath Karunatilaka,
Software Engineer,
WSO2, Inc: http://wso2.com/
mobile : +94 77 7487792
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Fwd: Pull request to include tenant deletion support

2015-01-14 Thread Aruna Karunarathna
I believe we need to merge all these PR's related to tenant deletion at
onetime coordinated manner. Otherwise there will be build breaks.


Regards,
Aruna

On Wed, Jan 14, 2015 at 3:06 PM, Shashika Karunatilaka 
wrote:

> Hi all,
>
> I have created PRs for the respective repositories(I have added a comment
> in each PR). Please merge the Tenant deletion PRs and merge the following
> PRs.
>
> *carbon-multitenancy*
>
> JIRA : https://wso2.org/jira/browse/WSAS-1882
> PR : https://github.com/wso2-dev/carbon-multitenancy/pull/16
>
> *carbon-storage-management*
>
> JIRA :  https://wso2.org/jira/browse/SS-454
> 
> PR : https://github.com/wso2-dev/carbon-storage-management/pull/97
>
> *carbon-event-processing*
>
> JIRA : https://wso2.org/jira/browse/CEP-1000
> 
> PR : https://github.com/wso2-dev/carbon-event-processing/pull/45
>
> *carbon-identity*
>
> JIRA : https://wso2.org/jira/browse/IDENTITY-2984
> 
> PR : https://github.com/wso2-dev/carbon-identity/pull/63
>
>
> Thank You
>
> On Mon, Jan 12, 2015 at 10:48 AM, Shashika Karunatilaka <
> shashi...@wso2.com> wrote:
>
>> HI all,
>>
>> Below are my findings for the wso2 repos that uses the above listener
>> class, please correct me if i missed any.
>>
>>
>> Repo
>>
>> Componenent
>>
>> class
>>
>> carbon-multitenancy
>>
>> (org.wso2.carbon.theme.mgt.util)
>>
>> ThemeLoadingListener.java
>>
>> (org.wso2.carbon.keystore.mgt)
>>
>> KeystoreTenantMgtListener.java
>>
>> carbon-storage-management
>>
>> (org.wso2.carbon.cassandra.server)
>>
>> TenantCreationListener.java
>>
>> (org.wso2.carbon.hdfs.mgt)
>>
>> HDFSTenantCreationListener.java
>>
>> carbon-event-processing
>>
>> (org.wso2.carbon.event.stream.manager.core.internal.util.helper)
>>
>> TenantMgtListenerImpl.java
>>
>> carbon-identity
>>
>> (org.wso2.carbon.idp.mgt.internal )
>>
>> TenantManagementListener.java
>>
>> (org.wso2.carbon.identity.application.authentication.framework.listener)
>>
>> AuthenticationEndpointTenantActivityListener.java
>>
>> product-af
>>
>> (org.wso2.carbon.appfactory.listners.tenant)
>>
>> AppFactoryTenantMgtListener.java
>>
>> (org.wso2.carbon.appfactory.s2.listeners)
>>
>> CloudEnvironmentPermissionListener.java
>>
>> (org.wso2.carbon.appfactory.stratos.listeners)
>>
>> CloudEnvironmentPermissionListener.java
>>
>> (org.wso2.carbon.appfactory.listners.tenant)
>>
>> DefaultRolesCreatorForTenant.java
>>
>> (org.wso2.carbon.appfactory.stratos.listeners)
>>
>> AppFactoryTenantKeyStoreMgtListener.java
>>
>> (org.wso2.carbon.appfactory.s2.listeners)
>>
>> AppFactoryTenantKeyStoreMgtListener.java
>>
>> (org.wso2.carbon.appfactory.listners.tenant)
>>
>> AppFactoryTenantActivationListener.java
>>
>> (org.wso2.carbon.appfactory.stratos.listeners)
>>
>> S2IntegrationTenantActivationListener.java
>>
>> (org.wso2.carbon.appfactory.s2.listeners)
>>
>> S2IntegrationTenantActivationListener.java
>>
>> private-paas
>>
>> (org.apache.stratos.theme.mgt.util)
>>
>> ThemeLoadingListener.java
>>
>> On Fri, Jan 9, 2015 at 8:47 PM, Shashika Karunatilaka > > wrote:
>>
>>> Hi all,
>>>
>>> I will include newly added method to all respective repositories of
>>> *TenantMgtListener* interface, and also will create necessary JIRAs
>>>
>>> Thank you
>>>
>>> On Fri, Jan 9, 2015 at 1:02 PM, Lakshman Udayakantha >> > wrote:
>>>
 [fowarding to dev]

 Since new method introduced in *TenantMgtListener *interface, There
 may be build failures after committing this. how should we proceed
 with that?


 Hi Carbon team,

 Please review and merge the pull requests [1] and [2] that is include
 the changes in tenant deletion support.

 [1] https://github.com/wso2-dev/carbon4-kernel/pull/134
 [2] https://github.com/wso2-dev/carbon-multitenancy/pull/15

 Thanks
 --
 Lakshman Udayakantha
 WSO2 Inc. www.wso2.com
 lean.enterprise.middleware
 Mobile: *0711241005*




 --
 Lakshman Udayakantha
 WSO2 Inc. www.wso2.com
 lean.enterprise.middleware
 Mobile: *0711241005*


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


>>>
>>>
>>> --
>>> Shashika Prabath Karunatilaka,
>>> Software Engineer,
>>> WSO2, Inc: http://wso2.com/
>>> mobile : +94 77 7487792
>>>
>>
>>
>>
>> --
>> Shashika Prabath Karunatilaka,
>> Software Engineer,
>> WSO2, Inc: http://wso2.com/
>> mobile : +94 77 7487792
>>
>
>
>
> --
> Shashika Prabath Karunatilaka,
> Software Engineer,
> WSO2, Inc: http://wso2.com/
> mobile : +94 77 7487792
>



-- 

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

Re: [Dev] [EMM] Automated Testing of Email Sending Functionality of EMM

2015-01-14 Thread Waruna Perera
HI Dilan,

You Can use email server util for sending mails. SMTP port is 3025 and
domain will be localhost.com. But I am not sure it will fulfill your exact
requirement.

Thanks,

On Wed, Jan 14, 2015 at 2:04 PM, Saneth Dharmakeerthi 
wrote:

> Hi Dilan,
>
> 1) If this test is done manually what is the  way to verify this?
> 2) Are you still have the problem in capturing the status message of a
> dialog popup?
>
> Thanks and Best Regards,
>
> Saneth Dharmakeerthi
> Senior Software Engineer
> WSO2, Inc.
> Mobile: +94772325511
>
> On Wed, Jan 14, 2015 at 1:59 PM, Irham Iqbal  wrote:
>
>> Hi Dilan,
>>
>> Can't you use an API to make sure the email has received to user's email
>> account at the end to make the test pass.
>>
>> Thanks,
>> Iqbal
>>
>> On Wed, Jan 14, 2015 at 12:17 PM, Dilan Udara Ariyaratne > > wrote:
>>
>>> Hi Krishantha,
>>>
>>> There is a problem on testing this email sending functionality using the
>>> UI and Selenium.
>>> This is because any error that occurs at the email sending level is not
>>> reflected at the UI level.
>>>
>>> What do you think?
>>>
>>> Regards,
>>> Dilan.
>>>
>>>
>>> *Dilan U. Ariyaratne*
>>> Software Engineer
>>> WSO2 Inc. 
>>> Mobile: +94775149066
>>> lean . enterprise . middleware
>>>
>>> On Tue, Jan 13, 2015 at 6:08 PM, Dilan Udara Ariyaratne >> > wrote:
>>>
 Hi Krisantha,

 Following are the manual steps of sending a mail to a user.

 [1] Fill email configuration details (SMTP Mail Server Settings) under
 the settings tab of admin console.
 [2] Add a new user to the system which will send an invitation email to
 the provided email address of the user.

 Herewith I am also attaching the screen-shots...

 Thanks.



 *Dilan U. Ariyaratne*
 Software Engineer
 WSO2 Inc. 
 Mobile: +94775149066
 lean . enterprise . middleware

 On Tue, Jan 13, 2015 at 2:48 PM, Krishantha Samaraweera <
 krishan...@wso2.com> wrote:

> Can you list the steps required to manually verify the scenario. We
> have recently implemented GreenMail sever utility for test framework. We
> can propose how to automate based on the manual steps.
>
> Thanks,
> Krishantha.
>
> On Tue, Jan 13, 2015 at 9:14 AM, Inosh Perera  wrote:
>
>> Hi Krishantha,
>> EMM 1.1.0 uses, require('email') available in Jaggery to send email.
>> The configurations are stored in the registry. So it is not necessary to
>> configure mail transport AFAIK.
>> Adding the mobile team.
>>
>> Regards,
>> Inosh
>>
>>
>> On Mon, Jan 12, 2015 at 6:09 PM, Krishantha Samaraweera <
>> krishan...@wso2.com> wrote:
>>
>>> Do you need to configure mail transport in this case ? if yes, in
>>> which file ?
>>>
>>> Thanks,
>>> Krishantha
>>>
>>> On Mon, Jan 12, 2015 at 3:40 PM, Dilan Udara Ariyaratne <
>>> dil...@wso2.com> wrote:
>>>
 Hi Folks,

 I am checking the feasibility of writing an automated test case for
 the email
 sending functionality of emm.

 When a user is created, an invitation email is sent to the
 corresponding
 user to register the device.

 sendEmail() is currently a jaggery function and is executed via a
 non-exposed api to the outside
 within EMM Jaggery web application.

 What is the best possible way to test this functionality?
 Is there a recommended SMTP mail server to use?

 If I am using Selenium, to verify "success", I need to capture the
 status message
 of a dialog popup. How can I do this using Selenium?

 Appreciate any feedback on this.

 Thanks.

 *Dilan U. Ariyaratne*
 Software Engineer
 WSO2 Inc. 
 Mobile: +94775149066
 lean . enterprise . middleware

>>>
>>>
>>>
>>> --
>>> Krishantha Samaraweera
>>> Senior Technical Lead - Test Automation
>>> Mobile: +94 77 7759918
>>> WSO2, Inc.; http://wso2.com/
>>> lean . enterprise . middlewear.
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Inosh Perera
>> Software Engineer, WSO2 Inc.
>> Tel: 0785293686
>>
>
>
>
> --
> Krishantha Samaraweera
> Senior Technical Lead - Test Automation
> Mobile: +94 77 7759918
> WSO2, Inc.; http://wso2.com/
> lean . enterprise . middlewear.
>


>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Irham Iqbal
>> Software Engineer - Test Automation
>>  WSO2, Inc.: http

Re: [Dev] [EMM] Automated Testing of Email Sending Functionality of EMM

2015-01-14 Thread Dilan Udara Ariyaratne
Hi Saneth & Iqbal,

To manually verify the email functionality, I can look at the terminal or
server log for any exceptions
and if there aren't any exceptions, I can look into the provided user's
email account to check the incoming message.

The problem with a Selenium test is that the success or failure of sending
an email is not reflected at the UI level.

@Iqbal
I have not gone through such APIs yet. Will have a look.

Thanks.


*Dilan U. Ariyaratne*
Software Engineer
WSO2 Inc. 
Mobile: +94775149066
lean . enterprise . middleware

On Wed, Jan 14, 2015 at 2:04 PM, Saneth Dharmakeerthi 
wrote:

> Hi Dilan,
>
> 1) If this test is done manually what is the  way to verify this?
> 2) Are you still have the problem in capturing the status message of a
> dialog popup?
>
> Thanks and Best Regards,
>
> Saneth Dharmakeerthi
> Senior Software Engineer
> WSO2, Inc.
> Mobile: +94772325511
>
> On Wed, Jan 14, 2015 at 1:59 PM, Irham Iqbal  wrote:
>
>> Hi Dilan,
>>
>> Can't you use an API to make sure the email has received to user's email
>> account at the end to make the test pass.
>>
>> Thanks,
>> Iqbal
>>
>> On Wed, Jan 14, 2015 at 12:17 PM, Dilan Udara Ariyaratne > > wrote:
>>
>>> Hi Krishantha,
>>>
>>> There is a problem on testing this email sending functionality using the
>>> UI and Selenium.
>>> This is because any error that occurs at the email sending level is not
>>> reflected at the UI level.
>>>
>>> What do you think?
>>>
>>> Regards,
>>> Dilan.
>>>
>>>
>>> *Dilan U. Ariyaratne*
>>> Software Engineer
>>> WSO2 Inc. 
>>> Mobile: +94775149066
>>> lean . enterprise . middleware
>>>
>>> On Tue, Jan 13, 2015 at 6:08 PM, Dilan Udara Ariyaratne >> > wrote:
>>>
 Hi Krisantha,

 Following are the manual steps of sending a mail to a user.

 [1] Fill email configuration details (SMTP Mail Server Settings) under
 the settings tab of admin console.
 [2] Add a new user to the system which will send an invitation email to
 the provided email address of the user.

 Herewith I am also attaching the screen-shots...

 Thanks.



 *Dilan U. Ariyaratne*
 Software Engineer
 WSO2 Inc. 
 Mobile: +94775149066
 lean . enterprise . middleware

 On Tue, Jan 13, 2015 at 2:48 PM, Krishantha Samaraweera <
 krishan...@wso2.com> wrote:

> Can you list the steps required to manually verify the scenario. We
> have recently implemented GreenMail sever utility for test framework. We
> can propose how to automate based on the manual steps.
>
> Thanks,
> Krishantha.
>
> On Tue, Jan 13, 2015 at 9:14 AM, Inosh Perera  wrote:
>
>> Hi Krishantha,
>> EMM 1.1.0 uses, require('email') available in Jaggery to send email.
>> The configurations are stored in the registry. So it is not necessary to
>> configure mail transport AFAIK.
>> Adding the mobile team.
>>
>> Regards,
>> Inosh
>>
>>
>> On Mon, Jan 12, 2015 at 6:09 PM, Krishantha Samaraweera <
>> krishan...@wso2.com> wrote:
>>
>>> Do you need to configure mail transport in this case ? if yes, in
>>> which file ?
>>>
>>> Thanks,
>>> Krishantha
>>>
>>> On Mon, Jan 12, 2015 at 3:40 PM, Dilan Udara Ariyaratne <
>>> dil...@wso2.com> wrote:
>>>
 Hi Folks,

 I am checking the feasibility of writing an automated test case for
 the email
 sending functionality of emm.

 When a user is created, an invitation email is sent to the
 corresponding
 user to register the device.

 sendEmail() is currently a jaggery function and is executed via a
 non-exposed api to the outside
 within EMM Jaggery web application.

 What is the best possible way to test this functionality?
 Is there a recommended SMTP mail server to use?

 If I am using Selenium, to verify "success", I need to capture the
 status message
 of a dialog popup. How can I do this using Selenium?

 Appreciate any feedback on this.

 Thanks.

 *Dilan U. Ariyaratne*
 Software Engineer
 WSO2 Inc. 
 Mobile: +94775149066
 lean . enterprise . middleware

>>>
>>>
>>>
>>> --
>>> Krishantha Samaraweera
>>> Senior Technical Lead - Test Automation
>>> Mobile: +94 77 7759918
>>> WSO2, Inc.; http://wso2.com/
>>> lean . enterprise . middlewear.
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Inosh Perera
>> Software Engineer, WSO2 Inc.
>> Tel: 0785293686
>>
>
>
>
> --
> Krishantha Samaraweera
> Senior Technical 

Re: [Dev] [EMM] Automated Testing of Email Sending Functionality of EMM

2015-01-14 Thread Irham Iqbal
Hi Dilan ,

You can find this blog post[1] about Java Mail API to access gmail account.

[1] https://irhamiqbal.wordpress.com/java-mail-api/

Thanks,
Iqbal

On Wed, Jan 14, 2015 at 3:17 PM, Dilan Udara Ariyaratne 
wrote:

> Hi Saneth & Iqbal,
>
> To manually verify the email functionality, I can look at the terminal or
> server log for any exceptions
> and if there aren't any exceptions, I can look into the provided user's
> email account to check the incoming message.
>
> The problem with a Selenium test is that the success or failure of sending
> an email is not reflected at the UI level.
>
> @Iqbal
> I have not gone through such APIs yet. Will have a look.
>
> Thanks.
>
>
> *Dilan U. Ariyaratne*
> Software Engineer
> WSO2 Inc. 
> Mobile: +94775149066
> lean . enterprise . middleware
>
> On Wed, Jan 14, 2015 at 2:04 PM, Saneth Dharmakeerthi 
> wrote:
>
>> Hi Dilan,
>>
>> 1) If this test is done manually what is the  way to verify this?
>> 2) Are you still have the problem in capturing the status message of a
>> dialog popup?
>>
>> Thanks and Best Regards,
>>
>> Saneth Dharmakeerthi
>> Senior Software Engineer
>> WSO2, Inc.
>> Mobile: +94772325511
>>
>> On Wed, Jan 14, 2015 at 1:59 PM, Irham Iqbal  wrote:
>>
>>> Hi Dilan,
>>>
>>> Can't you use an API to make sure the email has received to user's email
>>> account at the end to make the test pass.
>>>
>>> Thanks,
>>> Iqbal
>>>
>>> On Wed, Jan 14, 2015 at 12:17 PM, Dilan Udara Ariyaratne <
>>> dil...@wso2.com> wrote:
>>>
 Hi Krishantha,

 There is a problem on testing this email sending functionality using
 the UI and Selenium.
 This is because any error that occurs at the email sending level is not
 reflected at the UI level.

 What do you think?

 Regards,
 Dilan.


 *Dilan U. Ariyaratne*
 Software Engineer
 WSO2 Inc. 
 Mobile: +94775149066
 lean . enterprise . middleware

 On Tue, Jan 13, 2015 at 6:08 PM, Dilan Udara Ariyaratne <
 dil...@wso2.com> wrote:

> Hi Krisantha,
>
> Following are the manual steps of sending a mail to a user.
>
> [1] Fill email configuration details (SMTP Mail Server Settings) under
> the settings tab of admin console.
> [2] Add a new user to the system which will send an invitation email
> to the provided email address of the user.
>
> Herewith I am also attaching the screen-shots...
>
> Thanks.
>
>
>
> *Dilan U. Ariyaratne*
> Software Engineer
> WSO2 Inc. 
> Mobile: +94775149066
> lean . enterprise . middleware
>
> On Tue, Jan 13, 2015 at 2:48 PM, Krishantha Samaraweera <
> krishan...@wso2.com> wrote:
>
>> Can you list the steps required to manually verify the scenario. We
>> have recently implemented GreenMail sever utility for test framework. We
>> can propose how to automate based on the manual steps.
>>
>> Thanks,
>> Krishantha.
>>
>> On Tue, Jan 13, 2015 at 9:14 AM, Inosh Perera 
>> wrote:
>>
>>> Hi Krishantha,
>>> EMM 1.1.0 uses, require('email') available in Jaggery to send
>>> email. The configurations are stored in the registry. So it is not
>>> necessary to configure mail transport AFAIK.
>>> Adding the mobile team.
>>>
>>> Regards,
>>> Inosh
>>>
>>>
>>> On Mon, Jan 12, 2015 at 6:09 PM, Krishantha Samaraweera <
>>> krishan...@wso2.com> wrote:
>>>
 Do you need to configure mail transport in this case ? if yes, in
 which file ?

 Thanks,
 Krishantha

 On Mon, Jan 12, 2015 at 3:40 PM, Dilan Udara Ariyaratne <
 dil...@wso2.com> wrote:

> Hi Folks,
>
> I am checking the feasibility of writing an automated test case
> for the email
> sending functionality of emm.
>
> When a user is created, an invitation email is sent to the
> corresponding
> user to register the device.
>
> sendEmail() is currently a jaggery function and is executed via a
> non-exposed api to the outside
> within EMM Jaggery web application.
>
> What is the best possible way to test this functionality?
> Is there a recommended SMTP mail server to use?
>
> If I am using Selenium, to verify "success", I need to capture the
> status message
> of a dialog popup. How can I do this using Selenium?
>
> Appreciate any feedback on this.
>
> Thanks.
>
> *Dilan U. Ariyaratne*
> Software Engineer
> WSO2 Inc. 
> Mobile: +94775149066
> lean . enterprise . middleware
>



 --
 Krishantha Samaraweera
 Senior Technical Lead - Test Automation
 Mobile: +94 77 77599

Re: [Dev] [EMM] Automated Testing of Email Sending Functionality of EMM

2015-01-14 Thread Saneth Dharmakeerthi
Hi All,

If the success or failure of sending an email is not reflected at the UI
level,  as you mentioned only way to verify is using  the  server log and
receivers inbox.
But in this UI test, you are trying to verify some thing that the end user
never experienced. I have doubt in how far that is valid in UI Test.


Thanks and Best Regards,

Saneth Dharmakeerthi
Senior Software Engineer
WSO2, Inc.
Mobile: +94772325511

On Wed, Jan 14, 2015 at 3:33 PM, Irham Iqbal  wrote:

> Hi Dilan ,
>
> You can find this blog post[1] about Java Mail API to access gmail account.
>
> [1] https://irhamiqbal.wordpress.com/java-mail-api/
>
> Thanks,
> Iqbal
>
> On Wed, Jan 14, 2015 at 3:17 PM, Dilan Udara Ariyaratne 
> wrote:
>
>> Hi Saneth & Iqbal,
>>
>> To manually verify the email functionality, I can look at the terminal or
>> server log for any exceptions
>> and if there aren't any exceptions, I can look into the provided user's
>> email account to check the incoming message.
>>
>> The problem with a Selenium test is that the success or failure of
>> sending an email is not reflected at the UI level.
>>
>> @Iqbal
>> I have not gone through such APIs yet. Will have a look.
>>
>> Thanks.
>>
>>
>> *Dilan U. Ariyaratne*
>> Software Engineer
>> WSO2 Inc. 
>> Mobile: +94775149066
>> lean . enterprise . middleware
>>
>> On Wed, Jan 14, 2015 at 2:04 PM, Saneth Dharmakeerthi 
>> wrote:
>>
>>> Hi Dilan,
>>>
>>> 1) If this test is done manually what is the  way to verify this?
>>> 2) Are you still have the problem in capturing the status message of a
>>> dialog popup?
>>>
>>> Thanks and Best Regards,
>>>
>>> Saneth Dharmakeerthi
>>> Senior Software Engineer
>>> WSO2, Inc.
>>> Mobile: +94772325511
>>>
>>> On Wed, Jan 14, 2015 at 1:59 PM, Irham Iqbal  wrote:
>>>
 Hi Dilan,

 Can't you use an API to make sure the email has received to user's
 email account at the end to make the test pass.

 Thanks,
 Iqbal

 On Wed, Jan 14, 2015 at 12:17 PM, Dilan Udara Ariyaratne <
 dil...@wso2.com> wrote:

> Hi Krishantha,
>
> There is a problem on testing this email sending functionality using
> the UI and Selenium.
> This is because any error that occurs at the email sending level is
> not reflected at the UI level.
>
> What do you think?
>
> Regards,
> Dilan.
>
>
> *Dilan U. Ariyaratne*
> Software Engineer
> WSO2 Inc. 
> Mobile: +94775149066
> lean . enterprise . middleware
>
> On Tue, Jan 13, 2015 at 6:08 PM, Dilan Udara Ariyaratne <
> dil...@wso2.com> wrote:
>
>> Hi Krisantha,
>>
>> Following are the manual steps of sending a mail to a user.
>>
>> [1] Fill email configuration details (SMTP Mail Server Settings)
>> under the settings tab of admin console.
>> [2] Add a new user to the system which will send an invitation email
>> to the provided email address of the user.
>>
>> Herewith I am also attaching the screen-shots...
>>
>> Thanks.
>>
>>
>>
>> *Dilan U. Ariyaratne*
>> Software Engineer
>> WSO2 Inc. 
>> Mobile: +94775149066
>> lean . enterprise . middleware
>>
>> On Tue, Jan 13, 2015 at 2:48 PM, Krishantha Samaraweera <
>> krishan...@wso2.com> wrote:
>>
>>> Can you list the steps required to manually verify the scenario. We
>>> have recently implemented GreenMail sever utility for test framework. We
>>> can propose how to automate based on the manual steps.
>>>
>>> Thanks,
>>> Krishantha.
>>>
>>> On Tue, Jan 13, 2015 at 9:14 AM, Inosh Perera 
>>> wrote:
>>>
 Hi Krishantha,
 EMM 1.1.0 uses, require('email') available in Jaggery to send
 email. The configurations are stored in the registry. So it is not
 necessary to configure mail transport AFAIK.
 Adding the mobile team.

 Regards,
 Inosh


 On Mon, Jan 12, 2015 at 6:09 PM, Krishantha Samaraweera <
 krishan...@wso2.com> wrote:

> Do you need to configure mail transport in this case ? if yes, in
> which file ?
>
> Thanks,
> Krishantha
>
> On Mon, Jan 12, 2015 at 3:40 PM, Dilan Udara Ariyaratne <
> dil...@wso2.com> wrote:
>
>> Hi Folks,
>>
>> I am checking the feasibility of writing an automated test case
>> for the email
>> sending functionality of emm.
>>
>> When a user is created, an invitation email is sent to the
>> corresponding
>> user to register the device.
>>
>> sendEmail() is currently a jaggery function and is executed via a
>> non-exposed api to the outside
>> within EMM Jaggery web application.
>>
>> What is the best possible way to test this functionality?
>> Is

[Dev] APIM 1.8.0 skips the user consent page by default ?

2015-01-14 Thread Asela Pathberiya
Hi APIM Team,

I just tried with APIM 1.8.0 fresh pack.  It seems to be that it skips
the user consent page by default.  Is there any reason for making it
as default behavior ?

We need to configure  following in identity.xml file to populate the
user consent page. Did we just miss to ship this configuration in
identity.xml file?

  
   false


Thanks,
Asela.

-- 
Thanks & Regards,
Asela

ATL
Mobile : +94 777 625 933
 +358 449 228 979
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Merge the pull request

2015-01-14 Thread Maheshika Goonetilleke
Hi Malaka

The deployment was successful.

On Wed, Jan 14, 2015 at 9:16 AM, Malaka Silva  wrote:

> Hi Maheshika,
>
> Thx Sameera.
>
> Can you please release this orbit bundle?
>
>
> On Wed, Jan 14, 2015 at 8:58 AM, Sameera Jayasoma 
> wrote:
>
>> Done
>>
>> On Wed, Jan 14, 2015 at 6:14 AM, Malaka Silva  wrote:
>>
>>> Hi Sameera,
>>>
>>> We will go ahead with 3.0.0.wso2v5.
>>>
>>> Please check and merge
>>>
>>> On Mon, Jan 12, 2015 at 12:29 PM, Sameera Jayasoma 
>>> wrote:
>>>
 I just noticed we are packaging bsf 3.0-beta3 are 3.0.0.wso2v5. Is this
 correct?  Shouldn't it be 3.0.0.beta3-wso2v5

 On Mon, Jan 12, 2015 at 12:14 PM, Malaka Silva  wrote:

> Hi Sameera,
>
> It's done. Please check now.
>
> On Mon, Jan 12, 2015 at 11:57 AM, Sameera Jayasoma 
> wrote:
>
>> Hi Malaka,
>>
>> I can't merge this automatically for some reason. Can you remove the
>> entry from the parent pom and see?
>>
>> Thanks,
>> Sameera.
>>
>> On Mon, Jan 12, 2015 at 11:30 AM, Malaka Silva 
>> wrote:
>>
>>> Hi Sameera,
>>>
>>> I have removed the parent pom and created a new version.
>>>
>>> Please check and merge.
>>>
>>> [1] https://github.com/wso2/orbit/pull/50
>>>
>>> On Mon, Jan 12, 2015 at 10:23 AM, Malaka Silva 
>>> wrote:
>>>
 Hi,

 Last build was Success since I have reverted the fix.

 I will remove the parent and send a new version of BSF.

 On Sun, Jan 11, 2015 at 2:39 PM, Maheshika Goonetilleke <
 mahesh...@wso2.com> wrote:

> Hi Malaka
>
> The latest build is successful[1].
>
> As explained by Manoj you will require removing the 'parent' from
> the pom since we don't use it anymore.
>
> [1] https://wso2.org/jenkins-pr-builder/job/carbon-mediation/180/
>
> On Sun, Jan 11, 2015 at 1:49 PM, Manoj Kumara 
> wrote:
>
>> Hi Malaka,
>>
>> You need to remove the parent entry from your orbit bundle.
>>
>> Thanks,
>> Manoj
>>
>>
>> *Manoj Kumara*
>> Software Engineer
>> WSO2 Inc. http://wso2.com/
>> *lean.enterprise.middleware*
>> Mobile: +94713448188
>>
>> On Sun, Jan 11, 2015 at 2:07 AM, Malaka Silva 
>> wrote:
>>
>>> Hi Sameera,
>>>
>>> This works fine locally. Issue is with the Jenkins builder. [1]
>>>
>>> What is the way forward?
>>>
>>> 1) Can we get orbit pom released to nexus?
>>> 2) Remove the parent from [2]?
>>>
>>> [1]
>>> https://wso2.org/jenkins-pr-builder/job/carbon-mediation/179/consoleText
>>> [2]
>>> https://github.com/wso2/orbit/blob/master/bsf/3.0.0.wso2v4/pom.xml
>>>
>>> On Sun, Jan 11, 2015 at 8:42 AM, Sameera Jayasoma <
>>> same...@wso2.com> wrote:
>>>
 You've specified orbit pom as the parent pom of the orbit
 bundle. But we've not released this orbit pom to nexus.

 Can you remove all modules in the orbit pom and build it
 locally? Then try to build bsf bundle.

 Thanks,
 Sameera.

 On Sat, Jan 10, 2015 at 3:43 PM, Malaka Silva 
 wrote:

> Hi Sameera,
>
> I am getting the following after upgrading the feature to
> bsf-all:jar:3.0.0.wso2v4 any idea?
>
> [ERROR] Failed to execute goal on project
> org.wso2.carbon.mediators.server.feature: Could not resolve 
> dependencies
> for project
> org.wso2.carbon:org.wso2.carbon.mediators.server.feature:pom:4.3.0-SNAPSHOT:
> Failed to collect dependencies for
> [org.wso2.carbon:org.wso2.carbon.mediator.clazz.services:jar:4.3.0-SNAPSHOT
> (compile),
> org.wso2.carbon:org.wso2.carbon.mediator.command.services:jar:4.3.0-SNAPSHOT
> (compile),
> org.wso2.carbon:org.wso2.carbon.mediator.router.impl:jar:4.3.0-SNAPSHOT
> (compile),
> org.wso2.carbon:org.wso2.carbon.mediator.fastXSLT:jar:4.3.0-SNAPSHOT
> (compile), org.wso2.carbon:org.wso2.carbon.ec2-client:jar:4.2.0 
> (compile),
> org.apache.bsf.wso2:bsf-all:jar:3.0.0.wso2v4 (compile),
> rhino.wso2:js:jar:1.7.0.R4.wso2v1 (compile),
> org.wso2.carbon:org.wso2.carbon.mediator.event:jar:4.3.0-SNAPSHOT
> (compile)]: Failed to read artifact descriptor for
> org.apache.bsf.wso2:bsf-all:jar:3.0.0.wso2v4: Failure to find
> org.wso2.carbon:orbit-parent:pom:4.3.0-SNAPSHOT in
> http://maven.wso2.org/nexus/cont

[Dev] [Greg] Please merge the pull request - Changed test.framework.version in product-greg

2015-01-14 Thread Prasanna Dangalla
Hi,

Please merge the pull request [1]

[1] - https://github.com/wso2/product-greg/pull/14

Thanks
-- 
Prasanna Dangalla
Software Engineer, WSO2, Inc.; http://wso2.com/
lean.enterprise.middleware

cell: +94 777 55 80 30 | +94 718 11 27 51
twitter: @prasa77
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Greg] Please merge the pull request - Changed test.framework.version in product-greg

2015-01-14 Thread Prasanna Dangalla
On Wed, Jan 14, 2015 at 4:36 PM, Prasanna Dangalla 
wrote:

> Hi,
>
> Please merge the pull request [1]
>
> [1] - https://github.com/wso2/product-greg/pull/14
>

JIRA - https://wso2.org/jira/browse/REGISTRY-2380


> Thanks
> --
> Prasanna Dangalla
> Software Engineer, WSO2, Inc.; http://wso2.com/
> lean.enterprise.middleware
>
> cell: +94 777 55 80 30 | +94 718 11 27 51
> twitter: @prasa77
>



-- 
Prasanna Dangalla
Software Engineer, WSO2, Inc.; http://wso2.com/
lean.enterprise.middleware

cell: +94 777 55 80 30 | +94 718 11 27 51
twitter: @prasa77
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Greg] Please merge the pull request - Changed test.framework.version in product-greg

2015-01-14 Thread Pulasthi Supun
Done

On Wed, Jan 14, 2015 at 4:38 PM, Prasanna Dangalla 
wrote:

>
>
> On Wed, Jan 14, 2015 at 4:36 PM, Prasanna Dangalla 
> wrote:
>
>> Hi,
>>
>> Please merge the pull request [1]
>>
>> [1] - https://github.com/wso2/product-greg/pull/14
>>
>
> JIRA - https://wso2.org/jira/browse/REGISTRY-2380
>
>
>> Thanks
>> --
>> Prasanna Dangalla
>> Software Engineer, WSO2, Inc.; http://wso2.com/
>> lean.enterprise.middleware
>>
>> cell: +94 777 55 80 30 | +94 718 11 27 51
>> twitter: @prasa77
>>
>
>
>
> --
> Prasanna Dangalla
> Software Engineer, WSO2, Inc.; http://wso2.com/
> lean.enterprise.middleware
>
> cell: +94 777 55 80 30 | +94 718 11 27 51
> twitter: @prasa77
>



-- 
--
Pulasthi Supun
Software Engineer; WSO2 Inc.; http://wso2.com,
Email: pulas...@wso2.com
Mobile: +94 (71) 9258281
Blog : http://pulasthisupun.blogspot.com/
Git hub profile: https://github.com/pulasthi
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to find the coordinator node of a cluster using hazelcast agent.

2015-01-14 Thread Hemika Kodikara
Hi Azeez,

Again wont that give the socket address if the current node is the
coordinator ?

For a scenario, lets say that there are 4 node as n1, n2, n3 and n4. Lets
also say that n1 is the coordinator node. The problem is that from n2 node,
how to know which one is the coordinator node ? and its socket address ?.

I can only check whether that n2 is the coordinator node or not. In the UI
of the n2 node, I need to show the coordinator node's(n1) socket address.
But how to to get that ?

Hope my clarification will help.

Thanks,
Hemika

Hemika Kodikara
Software Engineer
WSO2 Inc.
lean . enterprise . middleware
http://wso2.com

Mobile : +9477762

On Tue, Jan 13, 2015 at 3:10 PM, Afkham Azeez  wrote:

> if(hazelcastClusteringAgent.isCoordinator()){
> primaryHazelcastInstance.getCluster().getLocalMember().
> getSocketAddress()
> }
>
> On Tue, Jan 13, 2015 at 3:04 PM, Sajini De Silva  wrote:
>
>> Hi Azeez,
>>
>> primaryHazelcastInstance.getCluster().getLocalMember().getSocketAddress()
>> will give the socket address of the node which this method is calling.
>>
>> Is there a way to get the coordinator node's IP address and port for the
>> nodes other than the coordinator? In my knowledge currently this feature is
>> not supported by kernel.
>>
>> Thank you,
>> Sajini
>>
>> On Tue, Jan 13, 2015 at 2:44 PM, Afkham Azeez  wrote:
>>
>>>
>>> primaryHazelcastInstance.getCluster().getLocalMember().getSocketAddress()
>>>
>>>
>>> On Tue, Jan 13, 2015 at 1:40 PM, Hemika Kodikara 
>>> wrote:
>>>
 Hi Azeez,

 Yes, HazelcastInstance is there. But it doesn't provide a method to get
 the coordinator node IP address and so.

 Thanks,
 Hemika

 Hemika Kodikara
 Software Engineer
 WSO2 Inc.
 lean . enterprise . middleware
 http://wso2.com

 Mobile : +9477762

 On Tue, Jan 13, 2015 at 1:30 PM, Afkham Azeez  wrote:

> Yes, get the HazelcastInstance OSGi service, and then using Hazelcast
> APIs you should be able to get the required information.
>
> Azeez
>
> On Tue, Jan 13, 2015 at 1:25 PM, Hemika Kodikara 
> wrote:
>
>> Looping in Azeez, Sameera and Kishanthan.
>>
>> Hemika Kodikara
>> Software Engineer
>> WSO2 Inc.
>> lean . enterprise . middleware
>> http://wso2.com
>>
>> Mobile : +9477762
>>
>> On Tue, Jan 13, 2015 at 12:35 PM, Hemika Kodikara 
>> wrote:
>>
>>> Hi All,
>>>
>>> I have a requirement to show the IP addresses and ports of the nodes
>>> in a cluster on a UI page. But I also have to indicate which node is the
>>> coordinator node. Currently I am only able to to find whether the 
>>> current
>>> node is the coordinator node or not using the "isCoordinator" method in
>>> "HazelcastClusteringAgent" class.
>>>
>>> Is there way to find the coordinator node's IP address and port of
>>> the cluster?
>>>
>>> Regards,
>>> Hemika
>>>
>>> Hemika Kodikara
>>> Software Engineer
>>> WSO2 Inc.
>>> lean . enterprise . middleware
>>> http://wso2.com
>>>
>>> Mobile : +9477762
>>>
>>
>>
>
>
> --
> *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*
>


>>>
>>>
>>> --
>>> *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*
>>>
>>
>>
>>
>> --
>> Sajini De SIlva
>> Software Engineer; WSO2 Inc.; http://wso2.com ,
>> Email: saj...@wso2.com
>> Blog: http://sajinid.blogspot.com/
>> Git hub profile: https://github.com/sajinidesilva
>>
>> Phone: +94 712797729
>>
>>
>
>
> --
> *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

Re: [Dev] How to find the coordinator node of a cluster using hazelcast agent.

2015-01-14 Thread Gayashan Amarasinghe
Hi Hemika,

Perhaps you can use a CoordinatedActivity [1] to publish the coordinator
information which can be used by your component. WDYT? AFAIK
CorrdinatedActivities are executed by a node (and only by the current
coordinator) after it becomes a coordinator.

[1]
https://github.com/wso2/carbon4-kernel/blob/master/core/org.wso2.carbon.core/src/main/java/org/wso2/carbon/core/clustering/api/CoordinatedActivity.java

Thanks.
/Gayashan

On Wed, Jan 14, 2015 at 5:04 PM, Hemika Kodikara  wrote:

> Hi Azeez,
>
> Again wont that give the socket address if the current node is the
> coordinator ?
>
> For a scenario, lets say that there are 4 node as n1, n2, n3 and n4. Lets
> also say that n1 is the coordinator node. The problem is that from n2 node,
> how to know which one is the coordinator node ? and its socket address ?.
>
> I can only check whether that n2 is the coordinator node or not. In the UI
> of the n2 node, I need to show the coordinator node's(n1) socket address.
> But how to to get that ?
>
> Hope my clarification will help.
>
> Thanks,
> Hemika
>
> Hemika Kodikara
> Software Engineer
> WSO2 Inc.
> lean . enterprise . middleware
> http://wso2.com
>
> Mobile : +9477762
>
> On Tue, Jan 13, 2015 at 3:10 PM, Afkham Azeez  wrote:
>
>> if(hazelcastClusteringAgent.isCoordinator()){
>> primaryHazelcastInstance.getCluster().getLocalMember().
>> getSocketAddress()
>> }
>>
>> On Tue, Jan 13, 2015 at 3:04 PM, Sajini De Silva  wrote:
>>
>>> Hi Azeez,
>>>
>>> primaryHazelcastInstance.getCluster().getLocalMember().getSocketAddress()
>>> will give the socket address of the node which this method is calling.
>>>
>>> Is there a way to get the coordinator node's IP address and port for the
>>> nodes other than the coordinator? In my knowledge currently this feature is
>>> not supported by kernel.
>>>
>>> Thank you,
>>> Sajini
>>>
>>> On Tue, Jan 13, 2015 at 2:44 PM, Afkham Azeez  wrote:
>>>

 primaryHazelcastInstance.getCluster().getLocalMember().getSocketAddress()


 On Tue, Jan 13, 2015 at 1:40 PM, Hemika Kodikara 
 wrote:

> Hi Azeez,
>
> Yes, HazelcastInstance is there. But it doesn't provide a method to
> get the coordinator node IP address and so.
>
> Thanks,
> Hemika
>
> Hemika Kodikara
> Software Engineer
> WSO2 Inc.
> lean . enterprise . middleware
> http://wso2.com
>
> Mobile : +9477762
>
> On Tue, Jan 13, 2015 at 1:30 PM, Afkham Azeez  wrote:
>
>> Yes, get the HazelcastInstance OSGi service, and then using Hazelcast
>> APIs you should be able to get the required information.
>>
>> Azeez
>>
>> On Tue, Jan 13, 2015 at 1:25 PM, Hemika Kodikara 
>> wrote:
>>
>>> Looping in Azeez, Sameera and Kishanthan.
>>>
>>> Hemika Kodikara
>>> Software Engineer
>>> WSO2 Inc.
>>> lean . enterprise . middleware
>>> http://wso2.com
>>>
>>> Mobile : +9477762
>>>
>>> On Tue, Jan 13, 2015 at 12:35 PM, Hemika Kodikara 
>>> wrote:
>>>
 Hi All,

 I have a requirement to show the IP addresses and ports of the
 nodes in a cluster on a UI page. But I also have to indicate which 
 node is
 the coordinator node. Currently I am only able to to find whether the
 current node is the coordinator node or not using the "isCoordinator"
 method in "HazelcastClusteringAgent" class.

 Is there way to find the coordinator node's IP address and port of
 the cluster?

 Regards,
 Hemika

 Hemika Kodikara
 Software Engineer
 WSO2 Inc.
 lean . enterprise . middleware
 http://wso2.com

 Mobile : +9477762

>>>
>>>
>>
>>
>> --
>> *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*
>>
>
>


 --
 *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
 *

 *Le

Re: [Dev] How to find the coordinator node of a cluster using hazelcast agent.

2015-01-14 Thread Hemika Kodikara
Hi Gayashan,

Yes, thats the implementation that is being carried out now. The
coordinator node's address will be stored in a hazelcast map so that they
can be accessed by any node.

Thanks,
Hemika

Hemika Kodikara
Software Engineer
WSO2 Inc.
lean . enterprise . middleware
http://wso2.com

Mobile : +9477762

On Wed, Jan 14, 2015 at 5:24 PM, Gayashan Amarasinghe 
wrote:

> Hi Hemika,
>
> Perhaps you can use a CoordinatedActivity [1] to publish the coordinator
> information which can be used by your component. WDYT? AFAIK
> CorrdinatedActivities are executed by a node (and only by the current
> coordinator) after it becomes a coordinator.
>
> [1]
> https://github.com/wso2/carbon4-kernel/blob/master/core/org.wso2.carbon.core/src/main/java/org/wso2/carbon/core/clustering/api/CoordinatedActivity.java
>
> Thanks.
> /Gayashan
>
> On Wed, Jan 14, 2015 at 5:04 PM, Hemika Kodikara  wrote:
>
>> Hi Azeez,
>>
>> Again wont that give the socket address if the current node is the
>> coordinator ?
>>
>> For a scenario, lets say that there are 4 node as n1, n2, n3 and n4. Lets
>> also say that n1 is the coordinator node. The problem is that from n2 node,
>> how to know which one is the coordinator node ? and its socket address ?.
>>
>> I can only check whether that n2 is the coordinator node or not. In the
>> UI of the n2 node, I need to show the coordinator node's(n1) socket
>> address. But how to to get that ?
>>
>> Hope my clarification will help.
>>
>> Thanks,
>> Hemika
>>
>> Hemika Kodikara
>> Software Engineer
>> WSO2 Inc.
>> lean . enterprise . middleware
>> http://wso2.com
>>
>> Mobile : +9477762
>>
>> On Tue, Jan 13, 2015 at 3:10 PM, Afkham Azeez  wrote:
>>
>>> if(hazelcastClusteringAgent.isCoordinator()){
>>> primaryHazelcastInstance.getCluster().getLocalMember().
>>> getSocketAddress()
>>> }
>>>
>>> On Tue, Jan 13, 2015 at 3:04 PM, Sajini De Silva 
>>> wrote:
>>>
 Hi Azeez,

 primaryHazelcastInstance.getCluster().getLocalMember().getSocketAddress()
 will give the socket address of the node which this method is calling.

 Is there a way to get the coordinator node's IP address and port for
 the nodes other than the coordinator? In my knowledge currently this
 feature is not supported by kernel.

 Thank you,
 Sajini

 On Tue, Jan 13, 2015 at 2:44 PM, Afkham Azeez  wrote:

>
> primaryHazelcastInstance.getCluster().getLocalMember().getSocketAddress()
>
>
> On Tue, Jan 13, 2015 at 1:40 PM, Hemika Kodikara 
> wrote:
>
>> Hi Azeez,
>>
>> Yes, HazelcastInstance is there. But it doesn't provide a method to
>> get the coordinator node IP address and so.
>>
>> Thanks,
>> Hemika
>>
>> Hemika Kodikara
>> Software Engineer
>> WSO2 Inc.
>> lean . enterprise . middleware
>> http://wso2.com
>>
>> Mobile : +9477762
>>
>> On Tue, Jan 13, 2015 at 1:30 PM, Afkham Azeez  wrote:
>>
>>> Yes, get the HazelcastInstance OSGi service, and then using
>>> Hazelcast APIs you should be able to get the required information.
>>>
>>> Azeez
>>>
>>> On Tue, Jan 13, 2015 at 1:25 PM, Hemika Kodikara 
>>> wrote:
>>>
 Looping in Azeez, Sameera and Kishanthan.

 Hemika Kodikara
 Software Engineer
 WSO2 Inc.
 lean . enterprise . middleware
 http://wso2.com

 Mobile : +9477762

 On Tue, Jan 13, 2015 at 12:35 PM, Hemika Kodikara 
 wrote:

> Hi All,
>
> I have a requirement to show the IP addresses and ports of the
> nodes in a cluster on a UI page. But I also have to indicate which 
> node is
> the coordinator node. Currently I am only able to to find whether the
> current node is the coordinator node or not using the "isCoordinator"
> method in "HazelcastClusteringAgent" class.
>
> Is there way to find the coordinator node's IP address and port of
> the cluster?
>
> Regards,
> Hemika
>
> Hemika Kodikara
> Software Engineer
> WSO2 Inc.
> lean . enterprise . middleware
> http://wso2.com
>
> Mobile : +9477762
>


>>>
>>>
>>> --
>>> *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*
>>>
>>
>>

Re: [Dev] [G-Reg ] Please review and merge the pull request - G-Reg Tagging Handle Sample

2015-01-14 Thread Sithumini Senevirathne
Hi,

Please review and merge the pull request for wso2/product-greg [1].

[1] https://github.com/wso2/product-greg/pull/15

Thanks,
Sithumini


On Tue, Jan 13, 2015 at 11:07 PM, Sithumini Senevirathne <
sithumi...@wso2.com> wrote:

> Hi,
>
> Please review and merge the pull request [1].
>
> [1] https://github.com/wso2-dev/product-greg/pull/63
>
> Jira : https://wso2.org/jira/browse/REGISTRY-2379
>
> Thanks,
> Sithumini
> --
> --
> Sithumini Senevirathne
> Software Engineer
> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>
> email: sithumi...@wso2.com,   mobile: +94 756977999
>



-- 
-- 
Sithumini Senevirathne
Software Engineer
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

email: sithumi...@wso2.com,   mobile: +94 756977999
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Calling a method from a java class in jaggery

2015-01-14 Thread Fathima Dilhasha
I have the following java class (Templateaccessor) which I need to call
from a jaggery file. For that I created a jar and accessed it. But it gives
an error when I try to access the getTemplateDomain() method.

I can access simple methods as in
http://madhukaudantha.blogspot.com/2014/02/using-java-method-from-jaggery-file.html

I figured that it is due to the use of imports. Can someone suggest me a
way to resolve the imports in the jar file?

*M.N.F. Dilhasha*
Software Engineering Intern | *WSO2 Lanka*

email   :
*dilha...@wso2.com *mobile : +94 77 8449321
package org.wso2.cep;

import javax.xml.bind.JAXBElement;
import javax.xml.bind.JAXBException;
import javax.xml.bind.JAXBContext;
import javax.xml.bind.Unmarshaller;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import org.wso2.cep.templating.*;

/**
 * Created by dilhasha on 1/14/15.
 */
public class templateaccessor {

private static Log log = LogFactory.getLog(templateaccessor.class);
TemplateDomain templateDomain;

public TemplateDomain getTemplateDomain(){
try {
String path="org/wso2/cep/templating/TemperatureAnalysis.xml";
//create JAXContext instance
JAXBContext jaxbContext = JAXBContext.newInstance(ObjectFactory.class);

//JAXBContext instance to create the Unmarshaller.
Unmarshaller unmarshaller = jaxbContext.createUnmarshaller();

//Unmarshaller to unmarshal the XML document to get an instance of JAXBElement.
JAXBElement unmarshalledObject =
((JAXBElement) unmarshaller.unmarshal(ClassLoader.getSystemResourceAsStream(path)));

//Get the instance of the required JAXB Root Class from the JAXBElement.
templateDomain = unmarshalledObject.getValue();
}
catch(JAXBException e)
{
log.error("JAXBException occured", e);
}
return templateDomain;
}
}
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Please merge the pull request - Resource(WSDL/WADL/Schema/Policy) upload path change

2015-01-14 Thread Thushara Ranawaka
Hi,

Please merge the PR[1] which addresses [2][3][4] jiras.

[1] - https://github.com/wso2/carbon-registry/pull/25
[2] - https://wso2.org/jira/browse/REGISTRY-2375
[3] - https://wso2.org/jira/browse/REGISTRY-2373
[4] - https://wso2.org/jira/browse/REGISTRY-2374

Thanks,

-- 
Thushara Kasun Ranawaka
Software Engineer
WSO2 Inc.; 
lean.enterprise.middleware
Mobile : *+94 (0) 773438949*
*thusha...@wso2.com *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Calling a method from a java class in jaggery

2015-01-14 Thread Udara Rathnayake
How you packaged this jar file? I tried similar scenario with a maven
project.
After creating the jar file I placed that within the lib directory and use
the following Jaggery snippet to get the session cookie.

 <%
 var class = org.wso2.carbon.relying.party.adder.RelyingPartyAdder;
 var RelyingPartyAdder = new class();
 var sessionCookie = RelyingPartyAdder.login('admin', 'admin');
 print(sessionCookie);
 %>



On Wed, Jan 14, 2015 at 5:50 PM, Fathima Dilhasha  wrote:

> I have the following java class (Templateaccessor) which I need to call
> from a jaggery file. For that I created a jar and accessed it. But it gives
> an error when I try to access the getTemplateDomain() method.
>
> I can access simple methods as in
>
> http://madhukaudantha.blogspot.com/2014/02/using-java-method-from-jaggery-file.html
>
> I figured that it is due to the use of imports. Can someone suggest me a
> way to resolve the imports in the jar file?
>
> *M.N.F. Dilhasha*
> Software Engineering Intern | *WSO2 Lanka*
>
> email   :
> *dilha...@wso2.com *mobile : +94 77 8449321
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Udara Rathnayake*
Software Engineer
WSO2 Inc. : http://wso2.com

Mobile : 1 4087864651 | 94 772207239
Twitter : http://twitter.com/udarakr
Blog: http://udarakr.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] GSOC 2015

2015-01-14 Thread navya sri nizamkari
Hello,

I am Navya Sri ,an undergraduate from BITS PILANI hyderabad ,currently
pursuing my B.E Hons in Computer Science.I would like to be contributor to
WSO2 and do my GSOC this year through it.I really liked the projects from
last year.I am adept at java,C and have done a  project on cloud computing
on"ensuring data security using erasure model". Is there a way I could
contribute to it or any other bugs that can be fixed to help me get started
?

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


[Dev] [Urgent] [Greg] - Error when server start up

2015-01-14 Thread Prasanna Dangalla
Hi All,

We are getting this error in Greg server start-up. This is blocking the
Greg-M1 release due on 19th Jan.

[2015-01-14 23:09:59,315]  INFO
{org.springframework.beans.factory.xml.XmlBeanDefinitionReader} -  Loading
XML bean definitions from class path resource [META-INF/cxf/cxf.xml]
[2015-01-14 23:09:59,352]  INFO
{org.springframework.beans.factory.xml.XmlBeanDefinitionReader} -  Loading
XML bean definitions from URL
[jndi:/localhost/oauth2/WEB-INF/cxf-servlet.xml]
[2015-01-14 23:09:59,438]  INFO
{org.springframework.beans.factory.support.DefaultListableBeanFactory} -
Pre-instantiating singletons in
org.springframework.beans.factory.support.DefaultListableBeanFactory@5c22251d:
defining beans
[cxf,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,tokEP,authzEndpointBean,tokenEndpointBean,revokeEndpointBean,userinfoEndpointBean];
root of factory hierarchy
[2015-01-14 23:09:59,615]  INFO
{org.springframework.beans.factory.support.DefaultListableBeanFactory} -
Destroying singletons in
org.springframework.beans.factory.support.DefaultListableBeanFactory@5c22251d:
defining beans
[cxf,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,tokEP,authzEndpointBean,tokenEndpointBean,revokeEndpointBean,userinfoEndpointBean];
root of factory hierarchy
[2015-01-14 23:09:59,616] ERROR
{org.apache.catalina.core.ApplicationContext} -  StandardWrapper.Throwable
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'tokEP': Cannot resolve reference to bean
'authzEndpointBean' while setting bean property 'serviceBeans' with key
[0]; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'authzEndpointBean' defined in URL
[jndi:/localhost/oauth2/WEB-INF/cxf-servlet.xml]: Instantiation of bean
failed; nested exception is java.lang.NoClassDefFoundError:
org/wso2/carbon/identity/oauth/cache/CacheKey
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:353)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:153)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1327)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1085)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:516)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)
at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
at
org.apache.cxf.transport.servlet.CXFServlet.createSpringContext(CXFServlet.java:160)
at
org.apache.cxf.transport.servlet.CXFServlet.loadBus(CXFServlet.java:74)
at
org.apache.cxf.transport.servlet.CXFNonSpringServlet.init(CXFNonSpringServlet.java:71)
at
org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1279)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1192)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1087)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5210)
at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5493)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at
org.apache.catalina.core.ContainerBase.addChi

[Dev] Demote action is visible for Uploadable apps - APPFAC-2702

2015-01-14 Thread Danushka Fernando
Hi all
[1] is fixed by having a check in ui to check whether its an uploadable
application. But currently we have a different lifecycle for uploadable
applications. So shouldn't we fix this by changing something in lifecycle.
Since we are moving towards lifecycle per app type, I prefer fixing this by
looking at the lifecycle. WDYT?


[1] https://wso2.org/jira/browse/APPFAC-2702


Thanks & Regards
Danushka Fernando
Software Engineer
WSO2 inc. http://wso2.com/
Mobile : +94716332729
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] JSON Payloads with Spaces in Attribute Names

2015-01-14 Thread Maz Lakadia
I am having some trouble with WSO2AM-1.7. When I try to GET a resource such as:

{  "hello there" : "world"}

The mediation step does not work, because of the space in "hello there". I know 
XML element types cannot contain spaces in their names, and the error I'm 
getting suggests that's precisely what the program is trying to do. This must 
mean that the data is implicitly changed to XML, even though all my data is 
supposed to stay in JSON. 
I am using the messagebuilder and formatters:


Is there another message builder or formatter I should be using instead?

Thanks,

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


Re: [Dev] [ES] Build fails giving compilation errors.

2015-01-14 Thread Shazni Nazeer
Hi Ayesha,

Refer the pull request at [1]. Please review and commit it to the
product-es.

[1] https://github.com/wso2-dev/product-es/pull/54

regards

Shazni Nazeer

Senior Software Engineer

Mob : +94 37331
LinkedIn : http://lk.linkedin.com/in/shazninazeer
Blog : http://shazninazeer.blogspot.com

On Tue, Jan 13, 2015 at 11:58 PM, Ayesha Dissanayaka 
wrote:

> Hi all,
>
> ES local build also fails giving below compilation errors. It should be
> after the changes made to carbon-governance in [1].
>
> @Shazni: Can you please send a pull request to *wso2-dev.product-es* repo
> adding necessory changes to ES source or advice how resolve those
> compilation errors.
>
> [1]
> https://github.com/wso2-dev/carbon-governance/commit/3a3d244e9a67d6aaa7c027b8bd18f02f05905326
>
> Thanks!
> - Ayesha
>
> -- Forwarded message --
> From: 
> Date: Wed, Jan 14, 2015 at 10:19 AM
> Subject: Build failed in Jenkins: product-es ยป jaggery-scxml-executors
> #4848
> To: buil...@wso2.org, ruch...@wso2.com, m...@wso2.com, ta...@wso2.com,
> uda...@wso2.com, samee...@wso2.com, samee...@wso2.com, aye...@wso2.com,
> man...@wso2.com
>
>
> See <
> https://wso2.org/jenkins/job/product-es/org.wso2.store$jaggery-scxml-executors/4848/
> >
>
> --
> [...truncated 23 lines...]
> Downloading:
> http://maven.wso2.org/nexus/content/repositories/releases/org/wso2/carbon/carbon-parent/4.3.0-SNAPSHOT/maven-metadata.xml
> Downloading:
> http://maven.wso2.org/nexus/content/repositories/snapshots/org/wso2/carbon/carbon-parent/4.3.0-SNAPSHOT/maven-metadata.xml
> Downloading:
> http://maven.wso2.org/nexus/content/repositories/releases/org/wso2/carbon/org.wso2.carbon.ndatasource.common/4.3.0-SNAPSHOT/maven-metadata.xml
> Downloading:
> http://maven.wso2.org/nexus/content/groups/wso2-public/org/wso2/carbon/org.wso2.carbon.ndatasource.common/4.3.0-SNAPSHOT/maven-metadata.xml
> Downloading:
> http://maven.wso2.org/nexus/content/repositories/snapshots/org/wso2/carbon/org.wso2.carbon.ndatasource.common/4.3.0-SNAPSHOT/maven-metadata.xml
> Downloading:
> http://maven.wso2.org/nexus/content/repositories/releases/org/wso2/carbon/org.wso2.carbon.utils/4.3.0-SNAPSHOT/maven-metadata.xml
> Downloading:
> http://maven.wso2.org/nexus/content/repositories/snapshots/org/wso2/carbon/org.wso2.carbon.utils/4.3.0-SNAPSHOT/maven-metadata.xml
> Downloading:
> http://maven.wso2.org/nexus/content/groups/wso2-public/org/wso2/carbon/org.wso2.carbon.utils/4.3.0-SNAPSHOT/maven-metadata.xml
> Downloading:
> http://maven.wso2.org/nexus/content/repositories/releases/org/wso2/carbon/org.wso2.carbon.user.api/4.3.0-SNAPSHOT/maven-metadata.xml
> Downloading:
> http://maven.wso2.org/nexus/content/groups/wso2-public/org/wso2/carbon/org.wso2.carbon.user.api/4.3.0-SNAPSHOT/maven-metadata.xml
> Downloading:
> http://maven.wso2.org/nexus/content/repositories/snapshots/org/wso2/carbon/org.wso2.carbon.user.api/4.3.0-SNAPSHOT/maven-metadata.xml
> Downloading:
> http://maven.wso2.org/nexus/content/groups/wso2-public/org/wso2/carbon/org.wso2.carbon.base/4.3.0-SNAPSHOT/maven-metadata.xml
> Downloading:
> http://maven.wso2.org/nexus/content/repositories/snapshots/org/wso2/carbon/org.wso2.carbon.base/4.3.0-SNAPSHOT/maven-metadata.xml
> Downloading:
> http://maven.wso2.org/nexus/content/repositories/releases/org/wso2/carbon/org.wso2.carbon.base/4.3.0-SNAPSHOT/maven-metadata.xml
> Downloading:
> http://maven.wso2.org/nexus/content/repositories/snapshots/org/wso2/carbon/org.wso2.carbon.logging/4.3.0-SNAPSHOT/maven-metadata.xml
> Downloading:
> http://maven.wso2.org/nexus/content/repositories/releases/org/wso2/carbon/org.wso2.carbon.logging/4.3.0-SNAPSHOT/maven-metadata.xml
> Downloading:
> http://maven.wso2.org/nexus/content/groups/wso2-public/org/wso2/carbon/org.wso2.carbon.logging/4.3.0-SNAPSHOT/maven-metadata.xml
> Downloading:
> http://maven.wso2.org/nexus/content/repositories/releases/org/wso2/carbon/org.wso2.carbon.bootstrap/4.3.0-SNAPSHOT/maven-metadata.xml
> Downloading:
> http://maven.wso2.org/nexus/content/groups/wso2-public/org/wso2/carbon/org.wso2.carbon.bootstrap/4.3.0-SNAPSHOT/maven-metadata.xml
> Downloading:
> http://maven.wso2.org/nexus/content/repositories/snapshots/org/wso2/carbon/org.wso2.carbon.bootstrap/4.3.0-SNAPSHOT/maven-metadata.xml
> Downloading:
> http://maven.wso2.org/nexus/content/groups/wso2-public/org/wso2/carbon/org.wso2.carbon.queuing/4.3.0-SNAPSHOT/maven-metadata.xml
> Downloading:
> http://maven.wso2.org/nexus/content/repositories/snapshots/org/wso2/carbon/org.wso2.carbon.queuing/4.3.0-SNAPSHOT/maven-metadata.xml
> Downloading:
> http://maven.wso2.org/nexus/content/repositories/releases/org/wso2/carbon/org.wso2.carbon.queuing/4.3.0-SNAPSHOT/maven-metadata.xml
> Downloading:
> http://maven.wso2.org/nexus/content/groups/wso2-public/org/wso2/carbon/org.wso2.carbon.securevault/4.3.0-SNAPSHOT/maven-metadata.xml
> Downloading:
> http://maven.wso2.org/nexus/content/repositories/snapshots/org/wso2/carbon/org.wso2.carbon.sec

Re: [Dev] SFTP server backend for ESB integration tests

2015-01-14 Thread Dimuthu De Lanerolle
Hi Krishantha,

This is fixed now. SFTP server implementation and a sample test case is
completed.
Sorry for the delayed response.

Regards

On Wed, Jan 14, 2015 at 11:50 AM, Krishantha Samaraweera <
krishan...@wso2.com> wrote:

> Hi DimuthuD,
>
> On Wed, Jan 14, 2015 at 10:23 AM, Dimuthu De Lanerolle 
> wrote:
>
>> We are keeping track of this issue and currently on-hold due to build
>> failures in the ESB and will resume once the build is stabilized.
>>
>
> Can't we go ahead with older ESB pack and verify the scenario until ESB
> team fix the build, What is the exact issue from test side ?
>
> Thanks,
> Krishantha.
>
>>
>> Regards
>>
>>
>> On Wed, Jan 14, 2015 at 9:22 AM, Krishantha Samaraweera <
>> krishan...@wso2.com> wrote:
>>
>>> Hi Dimuthu,
>>>
>>> Were you able to resolved the issue with SFTP server implementation.
>>>
>>> Can you please update up on progress made so far.
>>>
>>> Thanks,
>>> Krishantha.
>>>
>>>
>>> On Tue, Dec 23, 2014 at 5:23 PM, Dimuthu De Lanerolle >> > wrote:
>>>
 Hi ,

 We are working on the $Subject.

 We have completed the implementation of the SFTP server and have added
 a sample test case scenario using VFS transport to test the SFTP server
 feasibility. We noted that when both ESB and SFTP server instances are
 running separately Test case scenario works as expected,  however when we
 run the SFTP server instance through TAF , ESB fails to perform the VFS
 file transfer scenario. We are currently working on solving this issue.

 Regards
 --
 Dimuthu De Lanerolle
 Software Engineer
 WSO2 Inc.
 lean . enterprise . middlewear.
 http://wso2.com/
 Tel. : +94 11 2145345  Fax : +94 11 2145300  email : dimut...@wso2.com


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


>>>
>>>
>>> --
>>> Krishantha Samaraweera
>>> Senior Technical Lead - Test Automation
>>> Mobile: +94 77 7759918
>>> WSO2, Inc.; http://wso2.com/
>>> lean . enterprise . middlewear.
>>>
>>
>>
>>
>> --
>> Dimuthu De Lanerolle
>> Software Engineer
>> WSO2 Inc.
>> lean . enterprise . middlewear.
>> http://wso2.com/
>> Tel. : +94 11 2145345  Fax : +94 11 2145300  email : dimut...@wso2.com
>>
>>
>
>
> --
> Krishantha Samaraweera
> Senior Technical Lead - Test Automation
> Mobile: +94 77 7759918
> WSO2, Inc.; http://wso2.com/
> lean . enterprise . middlewear.
>



-- 
Dimuthu De Lanerolle
Software Engineer
WSO2 Inc.
lean . enterprise . middlewear.
http://wso2.com/
Tel. : +94 11 2145345  Fax : +94 11 2145300  email : dimut...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [EMM] Automated Testing of Email Sending Functionality of EMM

2015-01-14 Thread Dimuthu De Lanerolle
This is an example usage of GreenMail server [1] & [2] which might help you.

[1]
https://github.com/wso2-dev/jaggery/blob/master/server/integration/src/test/java/org/wso2/jaggery/integration/tests/hostObjects/community/EmailHostObjectTestCase.java
[2] http://www.icegreen.com/greenmail/#examples

Regards

On Wed, Jan 14, 2015 at 3:41 PM, Saneth Dharmakeerthi 
wrote:

> Hi All,
>
> If the success or failure of sending an email is not reflected at the UI
> level,  as you mentioned only way to verify is using  the  server log and
> receivers inbox.
> But in this UI test, you are trying to verify some thing that the end user
> never experienced. I have doubt in how far that is valid in UI Test.
>
>
> Thanks and Best Regards,
>
> Saneth Dharmakeerthi
> Senior Software Engineer
> WSO2, Inc.
> Mobile: +94772325511
>
> On Wed, Jan 14, 2015 at 3:33 PM, Irham Iqbal  wrote:
>
>> Hi Dilan ,
>>
>> You can find this blog post[1] about Java Mail API to access gmail
>> account.
>>
>> [1] https://irhamiqbal.wordpress.com/java-mail-api/
>>
>> Thanks,
>> Iqbal
>>
>> On Wed, Jan 14, 2015 at 3:17 PM, Dilan Udara Ariyaratne 
>> wrote:
>>
>>> Hi Saneth & Iqbal,
>>>
>>> To manually verify the email functionality, I can look at the terminal
>>> or server log for any exceptions
>>> and if there aren't any exceptions, I can look into the provided user's
>>> email account to check the incoming message.
>>>
>>> The problem with a Selenium test is that the success or failure of
>>> sending an email is not reflected at the UI level.
>>>
>>> @Iqbal
>>> I have not gone through such APIs yet. Will have a look.
>>>
>>> Thanks.
>>>
>>>
>>> *Dilan U. Ariyaratne*
>>> Software Engineer
>>> WSO2 Inc. 
>>> Mobile: +94775149066
>>> lean . enterprise . middleware
>>>
>>> On Wed, Jan 14, 2015 at 2:04 PM, Saneth Dharmakeerthi 
>>> wrote:
>>>
 Hi Dilan,

 1) If this test is done manually what is the  way to verify this?
 2) Are you still have the problem in capturing the status message of a
 dialog popup?

 Thanks and Best Regards,

 Saneth Dharmakeerthi
 Senior Software Engineer
 WSO2, Inc.
 Mobile: +94772325511

 On Wed, Jan 14, 2015 at 1:59 PM, Irham Iqbal  wrote:

> Hi Dilan,
>
> Can't you use an API to make sure the email has received to user's
> email account at the end to make the test pass.
>
> Thanks,
> Iqbal
>
> On Wed, Jan 14, 2015 at 12:17 PM, Dilan Udara Ariyaratne <
> dil...@wso2.com> wrote:
>
>> Hi Krishantha,
>>
>> There is a problem on testing this email sending functionality using
>> the UI and Selenium.
>> This is because any error that occurs at the email sending level is
>> not reflected at the UI level.
>>
>> What do you think?
>>
>> Regards,
>> Dilan.
>>
>>
>> *Dilan U. Ariyaratne*
>> Software Engineer
>> WSO2 Inc. 
>> Mobile: +94775149066
>> lean . enterprise . middleware
>>
>> On Tue, Jan 13, 2015 at 6:08 PM, Dilan Udara Ariyaratne <
>> dil...@wso2.com> wrote:
>>
>>> Hi Krisantha,
>>>
>>> Following are the manual steps of sending a mail to a user.
>>>
>>> [1] Fill email configuration details (SMTP Mail Server Settings)
>>> under the settings tab of admin console.
>>> [2] Add a new user to the system which will send an invitation email
>>> to the provided email address of the user.
>>>
>>> Herewith I am also attaching the screen-shots...
>>>
>>> Thanks.
>>>
>>>
>>>
>>> *Dilan U. Ariyaratne*
>>> Software Engineer
>>> WSO2 Inc. 
>>> Mobile: +94775149066
>>> lean . enterprise . middleware
>>>
>>> On Tue, Jan 13, 2015 at 2:48 PM, Krishantha Samaraweera <
>>> krishan...@wso2.com> wrote:
>>>
 Can you list the steps required to manually verify the scenario. We
 have recently implemented GreenMail sever utility for test framework. 
 We
 can propose how to automate based on the manual steps.

 Thanks,
 Krishantha.

 On Tue, Jan 13, 2015 at 9:14 AM, Inosh Perera 
 wrote:

> Hi Krishantha,
> EMM 1.1.0 uses, require('email') available in Jaggery to send
> email. The configurations are stored in the registry. So it is not
> necessary to configure mail transport AFAIK.
> Adding the mobile team.
>
> Regards,
> Inosh
>
>
> On Mon, Jan 12, 2015 at 6:09 PM, Krishantha Samaraweera <
> krishan...@wso2.com> wrote:
>
>> Do you need to configure mail transport in this case ? if yes, in
>> which file ?
>>
>> Thanks,
>> Krishantha
>>
>> On Mon, Jan 12, 2015 at 3:40 PM, Dilan Udara Ariyaratne <
>> dil...@wso2.com> wrote:
>>
>>> Hi Folks,
>>>
>

Re: [Dev] Demote action is visible for Uploadable apps - APPFAC-2702

2015-01-14 Thread Dimuthu Leelarathne
On Wed, Jan 14, 2015 at 11:57 PM, Danushka Fernando 
wrote:

> Hi all
> [1] is fixed by having a check in ui to check whether its an uploadable
> application. But currently we have a different lifecycle for uploadable
> applications. So shouldn't we fix this by changing something in lifecycle.
> Since we are moving towards lifecycle per app type, I prefer fixing this by
> looking at the lifecycle. WDYT?
>

Exactly correct!


>
>
> [1] https://wso2.org/jira/browse/APPFAC-2702
>
>
> Thanks & Regards
> Danushka Fernando
> Software Engineer
> WSO2 inc. http://wso2.com/
> Mobile : +94716332729
>



-- 
Dimuthu Leelarathne
Architect & Product Lead of App Factory

WSO2, Inc. (http://wso2.com)
email: dimut...@wso2.com
Mobile : 0773661935

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


Re: [Dev] WSO2 Committers += Inosh Perera

2015-01-14 Thread Dimuthu De Lanerolle
Congtraz Inosh. !!

On Wed, Jan 14, 2015 at 2:21 PM, Chaminda Jayawardena 
wrote:

> Congratz Inosh..!! :)
>
>
> On Mon, Jan 5, 2015 at 12:24 PM, Sameera Perera  wrote:
>
>> Hi devs,
>>
>> Its my pleasure to welcome Inosh Perera as a WSO2 Committer.
>>
>> Inosh, welcome aboard and keep up the good work.
>>
>> *Sameera Perera*
>> Director of Engineering
>> gtalk: samee...@wso2.com
>> Tel : 94 11 214 5345
>> Fax :94 11 2145300
>> *WSO2, Inc.* 
>> lean.enterprise.middleware
>>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Thanks & Regards
>
> *Chaminda Jayawardena*
> Senior Software Engineer - QA
> WSO2 Inc. - http://wso2.com
> +94-77-7725234
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Dimuthu De Lanerolle
Software Engineer
WSO2 Inc.
lean . enterprise . middlewear.
http://wso2.com/
Tel. : +94 11 2145345  Fax : +94 11 2145300  email : dimut...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to enable security for a proxy service in Dev Studio

2015-01-14 Thread Sohani Weerasinghe
Hi Niranjan,

The QoS feature is not supported with the current implementation of
Developer Studio but we are in a process of implementing the security for
services and most probably this feature will be available in the next
release of the Developer Studio. We'll update.

Thanks,
Sohani

Sohani Weerasinghe
Software Engineer
WSO2, Inc: http://wso2.com

Mobile  : +94 716439774
Blog :http://christinetechtips.blogspot.com/
Twitter  : https://twitter.com/sohanichristine

On Wed, Jan 14, 2015 at 9:46 AM, Niranjan Karunanandham 
wrote:

> Thanks Susinda..
>
> Regards,
> Nira
> On 13 Jan 2015 20:15, "Susinda Perera"  wrote:
>
>> Hi Niranjan
>>
>> Currently there is no such option to do the same as in ESB management
>> console. However you can achieve same by setting enableSec property to true
>> and setting policy key. [1]
>>
>> [1] - https://docs.wso2.com/display/DVS371/Applying+QoS+for+a+Service
>>
>> We are developing this feature and will update once completed.
>>
>> Thanks
>>
>>
>> On Wed, Jan 14, 2015 at 5:18 AM, Niranjan Karunanandham <
>> niran...@wso2.com> wrote:
>>
>>> Hi,
>>>
>>> Using the ESB console, we can create a simple unsecured proxy and enable
>>> security using the QOS. For example: in the ESB console, I created a Pass
>>> Through Proxy (say 'proxy1') and enabled "UsernameToken" security from
>>> the QOS. ESB automatically creates the policy for this and saves it to the
>>> registry at "
>>> conf:/repository/axis2/service-groups/proxy1/services/proxy1/policies/UTOverTransport".
>>>
>>> In Developer Studio, can we enable the security for a proxy service?
>>> i.e., is there an option where we can select the Security as 
>>> "UsernameToken",
>>> "Non-repudiation", etc... and the policy files are generated
>>> automatically as it is done in the ESB console?
>>>
>>> Regards,
>>> Nira
>>>
>>> --
>>>
>>> *Niranjan Karunanandham*
>>> WSO2 Inc.: http://www.wso2.com
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Susinda Perera*
>> Software Engineer
>> Mobile:(+94)716049075
>>
>> WSO2 Inc. http://wso2.com/
>> Tel : 94 11 214 5345 Fax :94 11 2145300
>>
>>
> ___
> 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] Calling a method from a java class in jaggery

2015-01-14 Thread Fathima Dilhasha
Thank you. I tried accessing the classes as in the following jaggery
snippet.

<%
var templateaccessor=Packages.org.wso2.cep.templateaccessor;
var templateAccessor=new templateaccessor();
var templatedomain=templateAccessor.getTemplateDomain();
%>

it gave an error at

*var templatedomain=templateAccessor.getTemplateDomain();*
I will try as you have suggested. Thank you.



*M.N.F. Dilhasha*
Software Engineering Intern | *WSO2 Lanka*

email   :
*dilha...@wso2.com *mobile : +94 77 8449321

On Wed, Jan 14, 2015 at 8:08 PM, Udara Rathnayake  wrote:

> How you packaged this jar file? I tried similar scenario with a maven
> project.
> After creating the jar file I placed that within the lib directory and use
> the following Jaggery snippet to get the session cookie.
>
>  <%
>  var class = org.wso2.carbon.relying.party.adder.RelyingPartyAdder;
>  var RelyingPartyAdder = new class();
>  var sessionCookie = RelyingPartyAdder.login('admin', 'admin');
>  print(sessionCookie);
>  %>
>
>
>
> On Wed, Jan 14, 2015 at 5:50 PM, Fathima Dilhasha 
> wrote:
>
>> I have the following java class (Templateaccessor) which I need to call
>> from a jaggery file. For that I created a jar and accessed it. But it gives
>> an error when I try to access the getTemplateDomain() method.
>>
>> I can access simple methods as in
>>
>> http://madhukaudantha.blogspot.com/2014/02/using-java-method-from-jaggery-file.html
>>
>> I figured that it is due to the use of imports. Can someone suggest me a
>> way to resolve the imports in the jar file?
>>
>> *M.N.F. Dilhasha*
>> Software Engineering Intern | *WSO2 Lanka*
>>
>> email   :
>> *dilha...@wso2.com *mobile : +94 77 8449321
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Udara Rathnayake*
> Software Engineer
> WSO2 Inc. : http://wso2.com
>
> Mobile : 1 4087864651 | 94 772207239
> Twitter : http://twitter.com/udarakr
> Blog: http://udarakr.blogspot.com
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev