Re: [Dev] [IS] Please review and mergr PR for IDENTITY-3028
Merged with 005b4592e46d2d95f7ab161cfe15362e4f0a3d97 On Sun, Mar 1, 2015 at 12:11 PM, Nuwandi Wickramasinghe nuwan...@wso2.com wrote: Changed accordingly. Find the PR in [1] [1] https://github.com/wso2/carbon-identity/pull/102 On Sat, Feb 28, 2015 at 8:06 PM, Johann Nallathamby joh...@wso2.com wrote: Please find comments on PR. On Fri, Feb 27, 2015 at 11:53 AM, Nuwandi Wickramasinghe nuwan...@wso2.com wrote: Please check updated PR in [1] [1] https://github.com/wso2/carbon-identity/pull/102 Thanks On Thu, Feb 26, 2015 at 2:40 PM, Nuwandi Wickramasinghe nuwan...@wso2.com wrote: Hi, Code review feedback can be found in [1] [1] https://docs.google.com/a/wso2.com/document/d/1KGYP_yX3gXe3HuZmnkjNfnaJCpHsW2bOFoFlnaFLDXE On Wed, Feb 25, 2015 at 4:46 PM, Nuwandi Wickramasinghe nuwan...@wso2.com wrote: Hi, Please find the fix for [1] in PR [2] Thanks [1] https://wso2.org/jira/browse/IDENTITY-3028 [2] https://github.com/wso2/carbon-identity/pull/102 -- Best Regards, Nuwandi Wickramasinghe Software Engineer WSO2 Inc. Web : http://wso2.com Mobile : 0719214873 -- Best Regards, Nuwandi Wickramasinghe Software Engineer WSO2 Inc. Web : http://wso2.com Mobile : 0719214873 -- Best Regards, Nuwandi Wickramasinghe Software Engineer WSO2 Inc. Web : http://wso2.com Mobile : 0719214873 -- Thanks Regards, *Johann Dilantha Nallathamby* Associate Technical Lead Product Lead of WSO2 Identity Server Integration Technologies Team WSO2, Inc. lean.enterprise.middleware Mobile - *+9476950* Blog - *http://nallaa.wordpress.com http://nallaa.wordpress.com* -- Best Regards, Nuwandi Wickramasinghe Software Engineer WSO2 Inc. Web : http://wso2.com Mobile : 0719214873 -- Thanks Regards, *Johann Dilantha Nallathamby* Associate Technical Lead Product Lead of WSO2 Identity Server Integration Technologies Team WSO2, Inc. lean.enterprise.middleware Mobile - *+9476950* Blog - *http://nallaa.wordpress.com http://nallaa.wordpress.com* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Best Way to find two files are equal in test cases.
Hi Tharindu Did you try to hash those files manually ? If not try to hash those files manually(i.e *md5sum file.txt) *and check hash values are same Thanks, Iqbal On Sun, Mar 1, 2015 at 12:30 PM, Tharindu Dharmarathna tharin...@wso2.com wrote: Hi all, I wrote test case on APIDocDownload for the API Manager .When I Run the tests It gives me two md5sums for equal files . here's the code sample I write to get md5 value from the files private String readMD5(InputStream inputStream) throws NoSuchAlgorithmException, IOException { MessageDigest md = MessageDigest.getInstance(MD5); byte[] dataBytes = new byte[1024]; int read; try { while ((read = inputStream.read(dataBytes)) != -1) { md.update(dataBytes, 0, read); } } catch (IOException e) { log.error(File couldn't found to read md5, e); throw e; } finally { inputStream.close(); } byte[] mdBytes = md.digest(); //convert the byte to hex format StringBuilder sb = new StringBuilder(); for (byte mdByte : mdBytes) { sb.append(Integer.toString((mdByte 0xff) + 0x100, 16).substring(1)); } return sb.toString(); } Is there any best way to get two files are identical ?. Thanks -- *Tharindu Dharmarathna*Associate Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware mobile: *+94779109091 %2B94779109091* ___ 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] Best Way to find two files are equal in test cases.
Hi Tharindu, I checked your `readMD5(InputStream inputStream)` method and it is working as expected. The problem is with the inputStream you are passing into the method. Please verify that you are not passing the *same inputStream* on the second time. Because once it is utilized pos has reached the end. So, the second time you are creating a hash of an empty stream. On Sun, Mar 1, 2015 at 1:41 PM, Irham Iqbal iq...@wso2.com wrote: Hi Tharindu Did you try to hash those files manually ? If not try to hash those files manually(i.e *md5sum file.txt) *and check hash values are same Thanks, Iqbal On Sun, Mar 1, 2015 at 12:30 PM, Tharindu Dharmarathna tharin...@wso2.com wrote: Hi all, I wrote test case on APIDocDownload for the API Manager .When I Run the tests It gives me two md5sums for equal files . here's the code sample I write to get md5 value from the files private String readMD5(InputStream inputStream) throws NoSuchAlgorithmException, IOException { MessageDigest md = MessageDigest.getInstance(MD5); byte[] dataBytes = new byte[1024]; int read; try { while ((read = inputStream.read(dataBytes)) != -1) { md.update(dataBytes, 0, read); } } catch (IOException e) { log.error(File couldn't found to read md5, e); throw e; } finally { inputStream.close(); } byte[] mdBytes = md.digest(); //convert the byte to hex format StringBuilder sb = new StringBuilder(); for (byte mdByte : mdBytes) { sb.append(Integer.toString((mdByte 0xff) + 0x100, 16).substring(1)); } return sb.toString(); } Is there any best way to get two files are identical ?. Thanks -- *Tharindu Dharmarathna*Associate Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware mobile: *+94779109091 %2B94779109091* ___ 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 -- With Regards, *Rasika Perera* Software Engineer M: +94 71 680 9060 E: rasi...@wso2.com LinkedIn: http://lk.linkedin.com/in/rasika90 WSO2 Inc. www.wso2.com lean.enterprise.middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Best Way to find two files are equal in test cases.
Hi Iqbal, I checked those two files manually I got same hash value to two files. This happens in random manner when running the tests On Sun, Mar 1, 2015 at 1:48 PM, Rasika Perera rasi...@wso2.com wrote: Hi Tharindu, I checked your `readMD5(InputStream inputStream)` method and it is working as expected. The problem is with the inputStream you are passing into the method. Please verify that you are not passing the *same inputStream* on the second time. Because once it is utilized pos has reached the end. So, the second time you are creating a hash of an empty stream. On Sun, Mar 1, 2015 at 1:41 PM, Irham Iqbal iq...@wso2.com wrote: Hi Tharindu Did you try to hash those files manually ? If not try to hash those files manually(i.e *md5sum file.txt) *and check hash values are same Thanks, Iqbal On Sun, Mar 1, 2015 at 12:30 PM, Tharindu Dharmarathna tharin...@wso2.com wrote: Hi all, I wrote test case on APIDocDownload for the API Manager .When I Run the tests It gives me two md5sums for equal files . here's the code sample I write to get md5 value from the files private String readMD5(InputStream inputStream) throws NoSuchAlgorithmException, IOException { MessageDigest md = MessageDigest.getInstance(MD5); byte[] dataBytes = new byte[1024]; int read; try { while ((read = inputStream.read(dataBytes)) != -1) { md.update(dataBytes, 0, read); } } catch (IOException e) { log.error(File couldn't found to read md5, e); throw e; } finally { inputStream.close(); } byte[] mdBytes = md.digest(); //convert the byte to hex format StringBuilder sb = new StringBuilder(); for (byte mdByte : mdBytes) { sb.append(Integer.toString((mdByte 0xff) + 0x100, 16).substring(1)); } return sb.toString(); } Is there any best way to get two files are identical ?. Thanks -- *Tharindu Dharmarathna*Associate Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware mobile: *+94779109091 %2B94779109091* ___ 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 -- With Regards, *Rasika Perera* Software Engineer M: +94 71 680 9060 E: rasi...@wso2.com LinkedIn: http://lk.linkedin.com/in/rasika90 WSO2 Inc. www.wso2.com lean.enterprise.middleware -- *Tharindu Dharmarathna*Associate Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware mobile: *+94779109091* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Problem while encrypting config file passwords using cipher-tool
Hi all, I found the problem with it. The ciphertool.sh comes with APIM has a known issue. We have to use [1] as the replacement for ciphertool.sh [1] - https://docs.wso2.com/download/attachments/41747153/ciphertool.sh?version=1modificationDate=1423230134000api=v2 For more read, https://docs.wso2.com/display/AM180/Encrypting+Passwords Thanks, On Mon, Feb 23, 2015 at 1:02 PM, Irham Iqbal iq...@wso2.com wrote: Hi Madusanka, I have written test cases[1] for encrypt H2DB password using ciphertool.sh on AS. I used the blog[2] which might help you to solve your issue. [1] https://github.com/wso2/product-as/blob/master/modules/integration/tests-integration/tests/src/test/java/org/wso2/appserver/integration/tests/ciphertool/H2DBPasswordEncryptionTestCase.java [2] http://charithaka.blogspot.com/2013/06/how-to-use-securevault-when-wso2-carbon.html Thanks, Iqbal On Mon, Feb 23, 2015 at 12:28 PM, Madusanka Premaratne madusan...@wso2.com wrote: Hi all, I tried to encrypt two passwords in api-manager.xml using the cipher-tool. But when I try with the command sh ciphertool.sh -Dconfigure, the entries in cipher-text.properties dissappers. I uncommented following two lines in cipher-tool.properties file, AuthManager.Password=api-manager.xml//APIManager/AuthManager/Password,true APIKeyManager.Password=api-manager.xml//APIManager/APIKeyManager/Password,true And added following two lines to the cipher-text.properties file, AuthManager.Password=[admin] APIKeyManager.Password=[admin] Also I changed EnableSecureVault to true in api-manager.xml Can anyone point out what I missed here? Thanks, -- *Madusanka Premaratne* | Associate Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 835 70 73| Work: +94 112 145 345 Email: madusan...@wso2.com | Web: www.wso2.com [image: Facebook] https://www.facebook.com/rmmpremaratne [image: Twitter] https://twitter.com/rmmpremaratne [image: Google Plus] https://plus.google.com/u/0/+MadusankaPremaratnemaduz/about/p/pub [image: Linkedin] http://lk.linkedin.com/in/madusanka/ [image: Instagram] http://instagram.com/madusankapremaratne [image: Skype] http://@rmmpremaratne ___ 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 -- *Madusanka Premaratne* | Associate Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 835 70 73| Work: +94 112 145 345 Email: madusan...@wso2.com | Web: www.wso2.com [image: Facebook] https://www.facebook.com/rmmpremaratne [image: Twitter] https://twitter.com/rmmpremaratne [image: Google Plus] https://plus.google.com/u/0/+MadusankaPremaratnemaduz/about/p/pub [image: Linkedin] http://lk.linkedin.com/in/madusanka/ [image: Instagram] http://instagram.com/madusankapremaratne [image: Skype] http://@rmmpremaratne ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Please review and merge PR for IDENTITY-3077
Sure. Will have a look On Sun, Mar 1, 2015 at 6:41 PM, Johann Nallathamby joh...@wso2.com wrote: Hi Malithi, There are merge conflicts in PR. Can you fix them ? Thanks. On Sun, Mar 1, 2015 at 6:32 PM, Malithi Edirisinghe malit...@wso2.com wrote: Hi, $subject please for JIRA [1]. [1] *https://wso2.org/jira/browse/IDENTITY-3077 https://wso2.org/jira/browse/IDENTITY-3077* Thanks, Malithi -- *Malithi Edirisinghe* Senior Software Engineer WSO2 Inc. Mobile : +94 (0) 718176807 malit...@wso2.com -- Thanks Regards, *Johann Dilantha Nallathamby* Associate Technical Lead Product Lead of WSO2 Identity Server Integration Technologies Team WSO2, Inc. lean.enterprise.middleware Mobile - *+9476950* Blog - *http://nallaa.wordpress.com http://nallaa.wordpress.com* -- *Malithi Edirisinghe* Senior Software Engineer WSO2 Inc. Mobile : +94 (0) 718176807 malit...@wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Obtain JMX Mbean statistics using test automation framework
Hi all, After creating an endpoint in the ESB, We should be able to view it's statistics via JMX using a JMX client like JConsole. I'm trying to write a test case for the above scenario. For that, Is the away to $Subject? If so, are there any sample test cases which i can refer to? Thank you. -- Vijitha Ekanayake Software Engineer*, *WSO2, Inc.; http://wso2.com/ Mobile : +94 777 24 73 39 | +94 718 74 44 08 lean.enterprise.middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Please review and merge PR for IDENTITY-3077
Hi Johann, Resolved the conflicts. Could you please have a look. Thanks, Malithi. On Sun, Mar 1, 2015 at 7:12 PM, Malithi Edirisinghe malit...@wso2.com wrote: Sure. Will have a look On Sun, Mar 1, 2015 at 6:41 PM, Johann Nallathamby joh...@wso2.com wrote: Hi Malithi, There are merge conflicts in PR. Can you fix them ? Thanks. On Sun, Mar 1, 2015 at 6:32 PM, Malithi Edirisinghe malit...@wso2.com wrote: Hi, $subject please for JIRA [1]. [1] *https://wso2.org/jira/browse/IDENTITY-3077 https://wso2.org/jira/browse/IDENTITY-3077* Thanks, Malithi -- *Malithi Edirisinghe* Senior Software Engineer WSO2 Inc. Mobile : +94 (0) 718176807 malit...@wso2.com -- Thanks Regards, *Johann Dilantha Nallathamby* Associate Technical Lead Product Lead of WSO2 Identity Server Integration Technologies Team WSO2, Inc. lean.enterprise.middleware Mobile - *+9476950* Blog - *http://nallaa.wordpress.com http://nallaa.wordpress.com* -- *Malithi Edirisinghe* Senior Software Engineer WSO2 Inc. Mobile : +94 (0) 718176807 malit...@wso2.com -- *Malithi Edirisinghe* Senior Software Engineer WSO2 Inc. Mobile : +94 (0) 718176807 malit...@wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [Automation] Could not copy the catalina-server.xml file
Hi Firzhan, Use following method and it will do the job. serverConfigurationManager.*applyConfigurationWithoutRestart*(sourceCatalinaFile, targetCatalinaFile,*true*); Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Sun, Mar 1, 2015 at 10:48 PM, Firzhan Naqash firz...@wso2.com wrote: Hi All, I am trying to write an automation test where I need to copy the modified catalina-server.xml file in to CARBON_HOME/repository/conf/tomcat folder. But always the catalina-server.xml file get copied in to CARBON_HOME/repository/conf/ folder. But on the other hand I could copy the axis.xml file without any issues. I am using following method to copy this. File sourceCatalinaFile = new File(ProductConstant.SYSTEM_TEST_RESOURCE_LOCATION + BPSTestConstants.DIR_ARTIFACTS + File.separator + BPSTestConstants.DIR_HTTPS_ONLY_TRANSPORT + File.separator + catalina-server.xml); File targetCatalinaFile = new File(CarbonUtils.getCarbonConfigDirPath() + File.separator + tomcat + File .separator + catalina-server.xml); serverConfigurationManager.applyConfiguration(sourceCatalinaFile, targetCatalinaFile); Any help is appreciated to sort out this issue. Regards, Firzhan ___ 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] WSO2 Committers += Aiyadurai Rajeevn
Congratulations! On Thu, Feb 26, 2015 at 6:08 PM, Harsha Kumara hars...@wso2.com wrote: Congratulations Rajeevan! On Thu, Feb 26, 2015 at 5:44 PM, Aiyadurai Rajeevan rajeev...@wso2.com wrote: Thanks folks for your wishes. Thanks Regards, S.A.Rajeevan Software Engineer WSO2 Inc E-Mail: rajeev...@wso2.com | Mobile : +94776411636 On Thu, Feb 26, 2015 at 4:46 PM, Roshan Deniyage rosh...@wso2.com wrote: congrats rajeevan! Roshan Deniyage Associate Technical Lead WSO2, Inc: http://wso2.com Mobile: +94 777636406 Twitter: *https://twitter.com/roshku https://twitter.com/roshku* LinkedIn : https://www.linkedin.com/in/roshandeniyage On Thu, Feb 26, 2015 at 2:26 PM, Sam Sivayogam s...@wso2.com wrote: Congrats Rajeevan !!! On Thu, Feb 26, 2015 at 11:12 AM, Kalpa Welivitigoda kal...@wso2.com wrote: Congratulations Rajeevan ! On Thu, Feb 26, 2015 at 10:23 AM, Ashan Dhananjaya ash...@wso2.com wrote: Congratulations :-) On Thu, Feb 26, 2015 at 10:21 AM, Manisha Gayathri mani...@wso2.com wrote: Congrats Rajeevan!!! On Thu, Feb 26, 2015 at 10:19 AM, Inshaf Mahath ins...@wso2.com wrote: Congrats Rajeevan On Thu, Feb 26, 2015 at 10:08 AM, Rajeevan Vimalanathan rajeev...@wso2.com wrote: Congrats Rajeevan...!!! On Thu, Feb 26, 2015 at 10:05 AM, Lahiru Cooray lahi...@wso2.com wrote: Congratz Rajeevan!!! On Thu, Feb 26, 2015 at 10:00 AM, Dimuthu Leelarathne dimut...@wso2.com wrote: Hi all, It is with great pleasure that WSO2 welcomes Aiyadurai Rajeevn as WSO2 committer! Congratulations! thanks, Dimuthu -- 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 -- *Lahiru Cooray* Software Engineer WSO2, Inc.;http://wso2.com/ lean.enterprise.middleware Mobile: +94 715 654154 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- 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 -- Inshaf Mahath Associate Software Engineer Mobile: +94775907181 WSO2 Inc. Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- ~Regards *Manisha Eleperuma* Software Engineer WSO2, Inc.: http://wso2.com lean.enterprise.middleware *blog: http://manisha-eleperuma.blogspot.com/ http://manisha-eleperuma.blogspot.com/* *mobile: +94 71 8279777 %2B94%2071%208279777* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Ashan Dhananjaya Kumara Trainee Software Engineer, WSO2 Inc. Inc: *WSO2 Inc. * Phone : +94715547461 Blog : http://ashandhananjaya.blogspot.com/ Twitter : https://twitter.com/Dhananjaya92 Say ello :https://ello.co/ashandk ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Best Regards, Kalpa Welivitigoda Software Engineer, WSO2 Inc. http://wso2.com Email: kal...@wso2.com Mobile: +94776509215 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Sam Sivayogam* Software Engineer Mobile : +94 772 906 439 Office : +94 112 145 345 *WSO2, Inc. :** wso2.com http://wso2.com/* lean.enterprise.middleware. ___ 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 -- Harsha Kumara Software Engineer, WSO2 Inc. Mobile: +94775505618 Blog:harshcreationz.blogspot.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Problem with sending Attachment in Gmail API
Then in that case we may need to use a class mediator do that part. Also we need to handle MTOM and Soap attachments separately i guess. On Mon, Mar 2, 2015 at 9:35 AM, Vanjikumaran Sivajothy va...@wso2.com wrote: Hi Sriashalaya, Isn't it possible to reuse the Gmail connector already there for this encoding concept ? On Mon, Mar 2, 2015 at 9:32 AM, Sriashalya Srivathsan asha...@wso2.com wrote: Hi Malaka, Gmail uploading is slightly different.we need to encode the entire message and pass it through the row parameter.But for message it is working, for attachment it fails.there's no correct format in the API.I found the concept in Stack overflow.I followed that way.But it didn't work. Rgds On Sat, Feb 28, 2015 at 10:47 PM, Malaka Silva mal...@wso2.com wrote: Hi Can we do similar approach to dropbox [1]? Here we are just passing the request MTOM attachment to api. [1] https://github.com/wso2/esb-connectors/blob/master/dropbox/dropbox-connector/dropbox-connector-1.0.0/org.wso2.carbon.connector/src/main/resources/operation/uploadFile.xml On Sat, Feb 28, 2015 at 1:06 PM, Sriashalya Srivathsan asha...@wso2.com wrote: Hi All, I'm working with Gmail API Connector. I'm struggling on send mail with attachment through REST.Can any one please help me to create a POST request with JSON payload for send attachment through REST client. Regards -- S.Sriashalya, Associate Software Engineer, WSO2. -- 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/ http://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. -- S.Sriashalya, Associate Software Engineer, WSO2. -- Sivajothy Vanjikumaran *Senior Software Engineer* *Integration Technologies Team* *WSO2 Inc. http://wso2.com http://wso2.com/* *Mobile:(+94)777219209* [image: Facebook] https://www.facebook.com/vanjikumaran [image: Twitter] https://twitter.com/vanjikumaran [image: LinkedIn] http://www.linkedin.com/pub/vanjikumaran-sivajothy/25/b31/293 [image: Blogger] http://vanjikumaran.blogspot.com/ [image: SlideShare] http://www.slideshare.net/vanjikumaran This communication may contain privileged or other confidential information and is intended exclusively for the addressee/s. If you are not the intended recipient/s, or believe that you may have received this communication in error, please reply to the sender indicating that fact and delete the copy you received and in addition, you should not print, copy, re-transmit, disseminate, or otherwise use the information contained in this communication. Internet communications cannot be guaranteed to be timely, secure, error or virus-free. The sender does not accept liability for any errors or omissions -- 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/ http://wso2.com/about/team/malaka-silva/ Save a tree -Conserve nature Save the world for your future. Print this email only if it is absolutely necessary. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Cross database pagination
Hi guys, I am working on creating a device listing API that supports pagination. In the SQL world, LIMIT and OFFSET seems to be the standard way of doing pagination in MySQL and PostgreSQL. Below is an example, SELECT Device.id, Device.name FROM Device LIMIT 10 OFFSET 10 But Oracle seems to be using rownum. What's the recommended approach in doing this? Cheers~ -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Middleware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165* * ~Website dulitha.me http://dulitha.me* * ~Twitter @dulitharw https://twitter.com/dulitharw* *~Github @dulichan https://github.com/dulichan* *~SO @chan http://stackoverflow.com/users/813471/chan* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Problem with sending Attachment in Gmail API
Hi Sriashalaya, Isn't it possible to reuse the Gmail connector already there for this encoding concept ? On Mon, Mar 2, 2015 at 9:32 AM, Sriashalya Srivathsan asha...@wso2.com wrote: Hi Malaka, Gmail uploading is slightly different.we need to encode the entire message and pass it through the row parameter.But for message it is working, for attachment it fails.there's no correct format in the API.I found the concept in Stack overflow.I followed that way.But it didn't work. Rgds On Sat, Feb 28, 2015 at 10:47 PM, Malaka Silva mal...@wso2.com wrote: Hi Can we do similar approach to dropbox [1]? Here we are just passing the request MTOM attachment to api. [1] https://github.com/wso2/esb-connectors/blob/master/dropbox/dropbox-connector/dropbox-connector-1.0.0/org.wso2.carbon.connector/src/main/resources/operation/uploadFile.xml On Sat, Feb 28, 2015 at 1:06 PM, Sriashalya Srivathsan asha...@wso2.com wrote: Hi All, I'm working with Gmail API Connector. I'm struggling on send mail with attachment through REST.Can any one please help me to create a POST request with JSON payload for send attachment through REST client. Regards -- S.Sriashalya, Associate Software Engineer, WSO2. -- 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/ http://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. -- S.Sriashalya, Associate Software Engineer, WSO2. -- Sivajothy Vanjikumaran *Senior Software Engineer* *Integration Technologies Team* *WSO2 Inc. http://wso2.com http://wso2.com/* *Mobile:(+94)777219209* [image: Facebook] https://www.facebook.com/vanjikumaran [image: Twitter] https://twitter.com/vanjikumaran [image: LinkedIn] http://www.linkedin.com/pub/vanjikumaran-sivajothy/25/b31/293 [image: Blogger] http://vanjikumaran.blogspot.com/ [image: SlideShare] http://www.slideshare.net/vanjikumaran This communication may contain privileged or other confidential information and is intended exclusively for the addressee/s. If you are not the intended recipient/s, or believe that you may have received this communication in error, please reply to the sender indicating that fact and delete the copy you received and in addition, you should not print, copy, re-transmit, disseminate, or otherwise use the information contained in this communication. Internet communications cannot be guaranteed to be timely, secure, error or virus-free. The sender does not accept liability for any errors or omissions ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] WSO2 Committers += Senduran Balasubramaniyam
Congratulations Senduran! On Fri, Feb 27, 2015 at 6:47 PM, Gimantha Bandara giman...@wso2.com wrote: Congratulations Senduran!! On Fri, Feb 27, 2015 at 2:39 PM, Keerthika Mahendralingam keerth...@wso2.com wrote: Congratulations Senduran! On Fri, Feb 27, 2015 at 2:36 PM, Kesavan Yogarajah kesav...@wso2.com wrote: Congratulations senduran ! Kesavan Yogarajah Associate Software Engineer WSO2 Inc. Mob: +94 779758021 On Fri, Feb 27, 2015 at 9:40 AM, Lasitha Wattaladeniya lasit...@wso2.com wrote: Congratulations ! On Fri, Feb 27, 2015 at 9:12 AM, Akalanka Pagoda Arachchi darsha...@wso2.com wrote: Congratz Sendu On Thu, Feb 26, 2015 at 11:20 PM, Kathees Rajendram kath...@wso2.com wrote: Congratulations Senduran! On Thu, Feb 19, 2015 at 10:32 AM, Niranda Perera nira...@wso2.com wrote: Congrats Senduran! On Thu, Feb 19, 2015 at 10:16 AM, Prasanna Dangalla prasa...@wso2.com wrote: Congratulations Senduran!!! On Thu, Feb 19, 2015 at 10:15 AM, Thanuja Jayasinghe than...@wso2.com wrote: Congratz Senduran.. On Thu, Feb 19, 2015 at 10:11 AM, Dilan Udara Ariyaratne dil...@wso2.com wrote: Congratulations, Senduran!!! *Dilan U. Ariyaratne* Software Engineer WSO2 Inc. http://wso2.com/ Mobile: +94775149066 lean . enterprise . middleware On Thu, Feb 19, 2015 at 12:05 AM, Roshan Deniyage rosh...@wso2.com wrote: congrats !!! Roshan Deniyage Associate Technical Lead WSO2, Inc: http://wso2.com Mobile: +94 777636406 Twitter: *https://twitter.com/roshku https://twitter.com/roshku* LinkedIn : https://www.linkedin.com/in/roshandeniyage On Wed, Feb 18, 2015 at 11:57 PM, Chanuka Dissanayake chan...@wso2.com wrote: Congratulations Senduran..! On Wed, Feb 18, 2015 at 11:36 PM, Samith Dassanayake sam...@wso2.com wrote: Congratz Senduran! On Wed, Feb 18, 2015 at 10:25 PM, Srisunmugaraja Paraparan parapa...@wso2.com wrote: Congratulations Senduran . On Wed, Feb 18, 2015 at 10:12 PM, Ravi Undupitiya r...@wso2.com wrote: Congratulations Senduran! On Wed, Feb 18, 2015 at 3:36 AM, Kasun Indrasiri ka...@wso2.com wrote: Hi devs, Its my pleasure to welcome Senduran Balasubramaniyam as a WSO2 Committer. Senduran, welcome aboard and keep up the good work! Thanks. -- Kasun Indrasiri Software Architect WSO2, Inc.; http://wso2.com lean.enterprise.middleware cell: +94 77 556 5206 Blog : http://kasunpanorama.blogspot.com/ -- *Ravi Undupitiya* Senior Software Engineer; WSO2 http://wso2.com *E-mail: r...@wso2.com http://wso2.com**M: **+94 772 930 712 %2B94%C2%A0772%20930%20712* Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Thanks Regards -- Srisunmugaraja Paraparan Software Engineer, WSO2 Inc. - lean . enterprise . middleware | wso2.com email : parapa...@wso2.com, mobile : +94 77 0362151 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Best Regards Samith Dassanayake Software Engineer | Cloud TG WSO2, Inc. | http://wso2.com lean. enterprise. middleware Mobile : +947 76207351 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Chanuka Dissanayake *Software Engineer | **WSO2 Inc.*; http://wso2.com Mobile: +94 71 33 63 596 Email: chan...@wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Thanuja Lakmal* Software Engineer WSO2 Inc. http://wso2.com/ *lean.enterprise.middleware* Mobile: +94715979891 +94758009992 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- 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 -- *Niranda Perera* Software Engineer, WSO2 Inc. Mobile: +94-71-554-8430 Twitter: @n1r44 https://twitter.com/N1R44 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Kathees Software Engineer, email: kath...@wso2.com mobile: +94772596173 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Darshana Akalanka Pagoda Arachchi,*
Re: [Dev] WSO2 Committers += Aiyadurai Rajeevn
Congratulations *Harsha Thirimanna* Senior Software Engineer; WSO2, Inc.; http://wso2.com * http://www.apache.org/* *email: **hars...@wso2.com* az...@wso2.com* cell: +94 71 5186770 , +94 * *774617784twitter: **http://twitter.com/ http://twitter.com/afkham_azeez* *harshathirimannlinked-in: **http: http://lk.linkedin.com/in/afkhamazeez**//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122 http://www.linkedin.com/pub/harsha-thirimanna/10/ab8/122* *Lean . Enterprise . Middleware* On Mon, Mar 2, 2015 at 10:01 AM, Vanii Thiyagarajah va...@wso2.com wrote: Congratulations! On Thu, Feb 26, 2015 at 6:08 PM, Harsha Kumara hars...@wso2.com wrote: Congratulations Rajeevan! On Thu, Feb 26, 2015 at 5:44 PM, Aiyadurai Rajeevan rajeev...@wso2.com wrote: Thanks folks for your wishes. Thanks Regards, S.A.Rajeevan Software Engineer WSO2 Inc E-Mail: rajeev...@wso2.com | Mobile : +94776411636 On Thu, Feb 26, 2015 at 4:46 PM, Roshan Deniyage rosh...@wso2.com wrote: congrats rajeevan! Roshan Deniyage Associate Technical Lead WSO2, Inc: http://wso2.com Mobile: +94 777636406 Twitter: *https://twitter.com/roshku https://twitter.com/roshku* LinkedIn : https://www.linkedin.com/in/roshandeniyage On Thu, Feb 26, 2015 at 2:26 PM, Sam Sivayogam s...@wso2.com wrote: Congrats Rajeevan !!! On Thu, Feb 26, 2015 at 11:12 AM, Kalpa Welivitigoda kal...@wso2.com wrote: Congratulations Rajeevan ! On Thu, Feb 26, 2015 at 10:23 AM, Ashan Dhananjaya ash...@wso2.com wrote: Congratulations :-) On Thu, Feb 26, 2015 at 10:21 AM, Manisha Gayathri mani...@wso2.com wrote: Congrats Rajeevan!!! On Thu, Feb 26, 2015 at 10:19 AM, Inshaf Mahath ins...@wso2.com wrote: Congrats Rajeevan On Thu, Feb 26, 2015 at 10:08 AM, Rajeevan Vimalanathan rajeev...@wso2.com wrote: Congrats Rajeevan...!!! On Thu, Feb 26, 2015 at 10:05 AM, Lahiru Cooray lahi...@wso2.com wrote: Congratz Rajeevan!!! On Thu, Feb 26, 2015 at 10:00 AM, Dimuthu Leelarathne dimut...@wso2.com wrote: Hi all, It is with great pleasure that WSO2 welcomes Aiyadurai Rajeevn as WSO2 committer! Congratulations! thanks, Dimuthu -- 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 -- *Lahiru Cooray* Software Engineer WSO2, Inc.;http://wso2.com/ lean.enterprise.middleware Mobile: +94 715 654154 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- 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 -- Inshaf Mahath Associate Software Engineer Mobile: +94775907181 WSO2 Inc. Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- ~Regards *Manisha Eleperuma* Software Engineer WSO2, Inc.: http://wso2.com lean.enterprise.middleware *blog: http://manisha-eleperuma.blogspot.com/ http://manisha-eleperuma.blogspot.com/* *mobile: +94 71 8279777 %2B94%2071%208279777* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Ashan Dhananjaya Kumara Trainee Software Engineer, WSO2 Inc. Inc: *WSO2 Inc. * Phone : +94715547461 Blog : http://ashandhananjaya.blogspot.com/ Twitter : https://twitter.com/Dhananjaya92 Say ello :https://ello.co/ashandk ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Best Regards, Kalpa Welivitigoda Software Engineer, WSO2 Inc. http://wso2.com Email: kal...@wso2.com Mobile: +94776509215 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Sam Sivayogam* Software Engineer Mobile : +94 772 906 439 Office : +94 112 145 345 *WSO2, Inc. :** wso2.com http://wso2.com/* lean.enterprise.middleware. ___ 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 -- Harsha Kumara Software Engineer, WSO2 Inc. Mobile: +94775505618 Blog:harshcreationz.blogspot.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev ___ Dev mailing
[Dev] [IS] Configure ApacheDS as the default LDAP using default configs
Hi all, I have a fresh apacheDS installation and I want to use it as the default LDAP for the IS 5.0.0. What are steps that I should follow to *configure apachDS* as the default LDAP for the IS, *using the default configs defined in the user-mgt.xml*.(Do I have to install any schemas, configure search bases in apacheDS etc...) Thanks, Samith -- Best Regards Samith Dassanayake Software Engineer | Cloud TG WSO2, Inc. | http://wso2.com lean. enterprise. middleware Mobile : +947 76207351 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Problem with sending Attachment in Gmail API
Hi Sriashalya, You can use a class mediator to get the attachment. This code is used to get the attachment and convert base64 encoding then assign to a property. The property can be used in the template. Before that you need identify the API support encoding. Sample code for the attachment public class Attachment extends AbstractMediator { private static final Log log = LogFactory.getLog(Attachment.class); public Attachment() { } public boolean mediate(MessageContext synCtx) { SynapseLog synLog = getLog(synCtx); if (synLog.isTraceOrDebugEnabled()) { synLog.traceOrDebug(Start : Sample attachment mediator); if (synLog.isTraceTraceEnabled()) { synLog.traceTrace(Message : + synCtx.getEnvelope()); } } try { String contentId = getCotentIds(synCtx)[1]; InputStream inputStream = getInputStream(synCtx, contentId); byte[] bytes = IOUtils.toByteArray(inputStream); String encodedString = Base64.encodeBytes(bytes); synCtx.setProperty(attachmentBody, encodedString); inputStream.close(); } catch (NumberFormatException nfe) { synLog.auditWarn(sample adaptor - invalid value returned : + nfe); } catch (Exception e) { synLog.error(sample adaptor - error generating the attachment payload : + e); } if (synLog.isTraceOrDebugEnabled()) { synLog.traceOrDebug(End : Sample Attachment mediator); String contentId = getCotentIds(synCtx)[1]; if (synLog.isTraceTraceEnabled()) { synLog.traceTrace(Message : + synCtx.getEnvelope()); } } return true; } //get the content Ids public String[] getCotentIds(MessageContext synCtx) { Axis2MessageContext axisMsglengthContext = (Axis2MessageContext) synCtx; org.apache.axis2.context.MessageContext msgContext = axisMsglengthContext .getAxis2MessageContext(); Attachments attachments = msgContext.getAttachmentMap(); return attachments.getAllContentIDs(); } // get the input stream attachment public InputStream getInputStream(MessageContext synCtx, String contentID) { Axis2MessageContext axisMsgContext = (Axis2MessageContext) synCtx; org.apache.axis2.context.MessageContext msgContext = axisMsgContext .getAxis2MessageContext(); Attachments attachments = msgContext.getAttachmentMap(); DataHandler dataHandler = attachments.getDataHandler(contentID); InputStream inputStream = null; try { inputStream = dataHandler.getInputStream(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } return inputStream; } } class name=org.wso2.carbon.connector.sample.Attachment / property name=attachmentBody expression=get-property('attachmentBody')/ Thanks, Kathees On Mon, Mar 2, 2015 at 9:39 AM, Malaka Silva mal...@wso2.com wrote: Then in that case we may need to use a class mediator do that part. Also we need to handle MTOM and Soap attachments separately i guess. On Mon, Mar 2, 2015 at 9:35 AM, Vanjikumaran Sivajothy va...@wso2.com wrote: Hi Sriashalaya, Isn't it possible to reuse the Gmail connector already there for this encoding concept ? On Mon, Mar 2, 2015 at 9:32 AM, Sriashalya Srivathsan asha...@wso2.com wrote: Hi Malaka, Gmail uploading is slightly different.we need to encode the entire message and pass it through the row parameter.But for message it is working, for attachment it fails.there's no correct format in the API.I found the concept in Stack overflow.I followed that way.But it didn't work. Rgds On Sat, Feb 28, 2015 at 10:47 PM, Malaka Silva mal...@wso2.com wrote: Hi Can we do similar approach to dropbox [1]? Here we are just passing the request MTOM attachment to api. [1] https://github.com/wso2/esb-connectors/blob/master/dropbox/dropbox-connector/dropbox-connector-1.0.0/org.wso2.carbon.connector/src/main/resources/operation/uploadFile.xml On Sat, Feb 28, 2015 at 1:06 PM, Sriashalya Srivathsan asha...@wso2.com wrote: Hi All, I'm working with Gmail API Connector. I'm struggling on send mail with attachment through REST.Can any one please help me to create a POST request with JSON payload for send attachment through REST client. Regards -- S.Sriashalya, Associate Software Engineer, WSO2. -- 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/
Re: [Dev] Release new tomcat orbits based on tomcat 7.0.59
Thanks Maheshika. @SameeraJ, I have upgraded carbon4-kernel (jdk8support branch) with these latest tomcat orbits. Fixed API changes involved. On Thu, Feb 26, 2015 at 9:47 AM, Maheshika Goonetilleke mahesh...@wso2.com wrote: Hi Kishanthan Deployed all bundles successfully. On Wed, Feb 25, 2015 at 7:34 PM, Kishanthan Thangarajah kishant...@wso2.com wrote: Hi Maheshika, Please release the following orbits. tomcat/7.0.59.wso2v1 tomcat-catalina-ha/7.0.59.wso2v1 tomcat-el-api/7.0.59.wso2v1 tomcat-jsp-api/7.0.59.wso2v1 tomcat-servlet-api/7.0.59.wso2v1 Thanks, Kishanthan. -- *Kishanthan Thangarajah* Senior Software Engineer, Platform Technologies Team, WSO2, Inc. lean.enterprise.middleware Mobile - +94773426635 Blog - *http://kishanthan.wordpress.com http://kishanthan.wordpress.com* Twitter - *http://twitter.com/kishanthan http://twitter.com/kishanthan* -- Thanks Best Regards, Maheshika Goonetilleke Engineering Process Coordinator *WSO2 Inc* *email : mahesh...@wso2.com mahesh...@wso2.com* *mobile : +94 773 596707 %2B94%20773%20596707* *www: :http://wso2.com http://wso2.com/*lean . enterprise . middleware -- *Kishanthan Thangarajah* Senior Software Engineer, Platform Technologies Team, WSO2, Inc. lean.enterprise.middleware Mobile - +94773426635 Blog - *http://kishanthan.wordpress.com http://kishanthan.wordpress.com* Twitter - *http://twitter.com/kishanthan http://twitter.com/kishanthan* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] subscribe
-- *Tharindu Munasinghe* Software Engineering Intern WSO2 Inc.(http://wso2.com) SRI LANKA Mobile: +94 77460887 E-Mail: tharin...@wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [IGVIZ.JS] : D3.js Based Interactive Generic Visualization Library
Hi all, Pubudu,Fawsan and Fasna has started this project as their training project and they did the implementations of table, single value , map , line charts . Me and Dunith have been continuing this project to make it a generic library so that any product can use it. So far igviz.js library supports bar charts ,scatter plots, tables , maps , single number graph , line and area charts with drill-downing options for hierarchical data sets . Please find the samples hosted at [1] and the implementation at [2]. Documentation for the configuration parameters can be found at [3] . [1] igviz.js samples http://dunithd.github.io/igviz/samples/ [2] igviz.js source code https://github.com/dunithd/igviz [3] GenericUIParameterNames https://docs.google.com/a/wso2.com/spreadsheets/d/1tCf3lTZ7kkEXdK7T75tKEXqm0QhsZZpiF47saKNMboc/edit#gid=0 Thanks, -- *Tharindu Munasinghe* Software Engineering Intern WSO2 Inc.(http://wso2.com) SRI LANKA Mobile: +94 77460887 E-Mail: tharin...@wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Best Way to find two files are equal in test cases.
Hi Tharindu, I think this is caused by chunking in input streams. It might happen because of HTTP protocol or a bug in Java, I'm not sure. As an alternative solution you can run the MD5 command and compare its output. Like this, public String getMd5Checksum(String filePath) throws IOException { final String md5Command = md5sum ; // Linux 'md5sum', MacOS 'md5' Process p = Runtime.getRuntime().exec(md5Command + filePath); Scanner scn = new Scanner(p.getInputStream()); String rv = scn.nextLine(); scn.close(); return rv; } On Sun, Mar 1, 2015 at 2:28 PM, Tharindu Dharmarathna tharin...@wso2.com wrote: Hi Iqbal, I checked those two files manually I got same hash value to two files. This happens in random manner when running the tests On Sun, Mar 1, 2015 at 1:48 PM, Rasika Perera rasi...@wso2.com wrote: Hi Tharindu, I checked your `readMD5(InputStream inputStream)` method and it is working as expected. The problem is with the inputStream you are passing into the method. Please verify that you are not passing the *same inputStream* on the second time. Because once it is utilized pos has reached the end. So, the second time you are creating a hash of an empty stream. On Sun, Mar 1, 2015 at 1:41 PM, Irham Iqbal iq...@wso2.com wrote: Hi Tharindu Did you try to hash those files manually ? If not try to hash those files manually(i.e *md5sum file.txt) *and check hash values are same Thanks, Iqbal On Sun, Mar 1, 2015 at 12:30 PM, Tharindu Dharmarathna tharin...@wso2.com wrote: Hi all, I wrote test case on APIDocDownload for the API Manager .When I Run the tests It gives me two md5sums for equal files . here's the code sample I write to get md5 value from the files private String readMD5(InputStream inputStream) throws NoSuchAlgorithmException, IOException { MessageDigest md = MessageDigest.getInstance(MD5); byte[] dataBytes = new byte[1024]; int read; try { while ((read = inputStream.read(dataBytes)) != -1) { md.update(dataBytes, 0, read); } } catch (IOException e) { log.error(File couldn't found to read md5, e); throw e; } finally { inputStream.close(); } byte[] mdBytes = md.digest(); //convert the byte to hex format StringBuilder sb = new StringBuilder(); for (byte mdByte : mdBytes) { sb.append(Integer.toString((mdByte 0xff) + 0x100, 16).substring(1)); } return sb.toString(); } Is there any best way to get two files are identical ?. Thanks -- *Tharindu Dharmarathna*Associate Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware mobile: *+94779109091 %2B94779109091* ___ 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 -- With Regards, *Rasika Perera* Software Engineer M: +94 71 680 9060 E: rasi...@wso2.com LinkedIn: http://lk.linkedin.com/in/rasika90 WSO2 Inc. www.wso2.com lean.enterprise.middleware -- *Tharindu Dharmarathna*Associate Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware mobile: *+94779109091 %2B94779109091* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Sajith Ariyarathna Software Engineer; WSO2, Inc.; http://wso2.com/ mobile: +94 77 6602284, +94 71 3951048 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [IS] Configure ApacheDS as the default LDAP using default configs
Hi Danushka, Yes I have provided those details when setting up the apachesDS and configured the user-mgt.xml and tenant-mgt.xml with those details, but it didn't work. Thanks, Samith On Mon, Mar 2, 2015 at 11:10 AM, Danushka Fernando danush...@wso2.com wrote: I guess when you install LDAP you should have given the parameters like rootDN, connection name, password kind of things. You need to set those in user-mgt.xml as well. If you have done those it should work I guess. Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Mon, Mar 2, 2015 at 10:13 AM, Samith Dassanayake sam...@wso2.com wrote: Hi all, I have a fresh apacheDS installation and I want to use it as the default LDAP for the IS 5.0.0. What are steps that I should follow to *configure apachDS* as the default LDAP for the IS, *using the default configs defined in the user-mgt.xml*.(Do I have to install any schemas, configure search bases in apacheDS etc...) Thanks, Samith -- Best Regards Samith Dassanayake Software Engineer | Cloud TG WSO2, Inc. | http://wso2.com lean. enterprise. middleware Mobile : +947 76207351 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Best Regards Samith Dassanayake Software Engineer | Cloud TG WSO2, Inc. | http://wso2.com lean. enterprise. middleware Mobile : +947 76207351 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Please review and merge PR for APIMANAGER-3283
Hi, $subject please for JIRA [1]. [1] https://wso2.org/jira/browse/APIMANAGER-3283 Thanks, Sam -- *Sam Sivayogam* Software Engineer Mobile : +94 772 906 439 Office : +94 112 145 345 *WSO2, Inc. :** wso2.com http://wso2.com/* lean.enterprise.middleware. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Best Way to find two files are equal in test cases.
Hi Sajith, Thank you for your response . As done offline chat with Rasika he come up with a good one without using md5sum we can do same thing from org.apache.commons.io.IOUtils class in apache, from there we can check two input streams are same by contentEquals method. Documentation for this class https://commons.apache.org/proper/commons-io/apidocs/org/apache/commons/io/IOUtils.html On Mon, Mar 2, 2015 at 11:08 AM, Sajith Ariyarathna sajit...@wso2.com wrote: Hi Tharindu, I think this is caused by chunking in input streams. It might happen because of HTTP protocol or a bug in Java, I'm not sure. As an alternative solution you can run the MD5 command and compare its output. Like this, public String getMd5Checksum(String filePath) throws IOException { final String md5Command = md5sum ; // Linux 'md5sum', MacOS 'md5' Process p = Runtime.getRuntime().exec(md5Command + filePath); Scanner scn = new Scanner(p.getInputStream()); String rv = scn.nextLine(); scn.close(); return rv; } On Sun, Mar 1, 2015 at 2:28 PM, Tharindu Dharmarathna tharin...@wso2.com wrote: Hi Iqbal, I checked those two files manually I got same hash value to two files. This happens in random manner when running the tests On Sun, Mar 1, 2015 at 1:48 PM, Rasika Perera rasi...@wso2.com wrote: Hi Tharindu, I checked your `readMD5(InputStream inputStream)` method and it is working as expected. The problem is with the inputStream you are passing into the method. Please verify that you are not passing the *same inputStream* on the second time. Because once it is utilized pos has reached the end. So, the second time you are creating a hash of an empty stream. On Sun, Mar 1, 2015 at 1:41 PM, Irham Iqbal iq...@wso2.com wrote: Hi Tharindu Did you try to hash those files manually ? If not try to hash those files manually(i.e *md5sum file.txt) *and check hash values are same Thanks, Iqbal On Sun, Mar 1, 2015 at 12:30 PM, Tharindu Dharmarathna tharin...@wso2.com wrote: Hi all, I wrote test case on APIDocDownload for the API Manager .When I Run the tests It gives me two md5sums for equal files . here's the code sample I write to get md5 value from the files private String readMD5(InputStream inputStream) throws NoSuchAlgorithmException, IOException { MessageDigest md = MessageDigest.getInstance(MD5); byte[] dataBytes = new byte[1024]; int read; try { while ((read = inputStream.read(dataBytes)) != -1) { md.update(dataBytes, 0, read); } } catch (IOException e) { log.error(File couldn't found to read md5, e); throw e; } finally { inputStream.close(); } byte[] mdBytes = md.digest(); //convert the byte to hex format StringBuilder sb = new StringBuilder(); for (byte mdByte : mdBytes) { sb.append(Integer.toString((mdByte 0xff) + 0x100, 16).substring(1)); } return sb.toString(); } Is there any best way to get two files are identical ?. Thanks -- *Tharindu Dharmarathna*Associate Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware mobile: *+94779109091 %2B94779109091* ___ 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 -- With Regards, *Rasika Perera* Software Engineer M: +94 71 680 9060 E: rasi...@wso2.com LinkedIn: http://lk.linkedin.com/in/rasika90 WSO2 Inc. www.wso2.com lean.enterprise.middleware -- *Tharindu Dharmarathna*Associate Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware mobile: *+94779109091 %2B94779109091* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Sajith Ariyarathna Software Engineer; WSO2, Inc.; http://wso2.com/ mobile: +94 77 6602284, +94 71 3951048 -- *Tharindu Dharmarathna*Associate Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware mobile: *+94779109091* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [Automation] Could not copy the catalina-server.xml file
Hi Firzhan, Reason why always the catalina-server.xml file get copied into CARBON_HOME/repository/conf/ folder when using *serverConfigurationManager.applyConfiguration(sourceCatalinaFile, targetCatalinaFile)* is because of the method implementation ignores the target file path and consider only the file name and all the activities are happening inside CARBON_HOME/repository/conf/. I have created a TA-JIRA [1] for this. *** *serverConfigurationManager.*applyConfigurationWithoutRestart*(sourceCatalinaFile, targetCatalinaFile,*true*) method can be used without any issue. [1]. https://wso2.org/jira/browse/TA-952 https://wso2.org/jira/browse/TA-952 Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Mon, Mar 2, 2015 at 8:47 AM, Saneth Dharmakeerthi sane...@wso2.com wrote: Hi Firzhan, Use following method and it will do the job. serverConfigurationManager.*applyConfigurationWithoutRestart*(sourceCatalinaFile, targetCatalinaFile,*true*); Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Sun, Mar 1, 2015 at 10:48 PM, Firzhan Naqash firz...@wso2.com wrote: Hi All, I am trying to write an automation test where I need to copy the modified catalina-server.xml file in to CARBON_HOME/repository/conf/tomcat folder. But always the catalina-server.xml file get copied in to CARBON_HOME/repository/conf/ folder. But on the other hand I could copy the axis.xml file without any issues. I am using following method to copy this. File sourceCatalinaFile = new File(ProductConstant.SYSTEM_TEST_RESOURCE_LOCATION + BPSTestConstants.DIR_ARTIFACTS + File.separator + BPSTestConstants.DIR_HTTPS_ONLY_TRANSPORT + File.separator + catalina-server.xml); File targetCatalinaFile = new File(CarbonUtils.getCarbonConfigDirPath() + File.separator + tomcat + File .separator + catalina-server.xml); serverConfigurationManager.applyConfiguration(sourceCatalinaFile, targetCatalinaFile); Any help is appreciated to sort out this issue. Regards, Firzhan ___ 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] Best Way to find two files are equal in test cases.
adding rasika. On Mon, Mar 2, 2015 at 11:21 AM, Tharindu Dharmarathna tharin...@wso2.com wrote: Hi Sajith, Thank you for your response . As done offline chat with Rasika he come up with a good one without using md5sum we can do same thing from org.apache.commons.io.IOUtils class in apache, from there we can check two input streams are same by contentEquals method. Documentation for this class https://commons.apache.org/proper/commons-io/apidocs/org/apache/commons/io/IOUtils.html On Mon, Mar 2, 2015 at 11:08 AM, Sajith Ariyarathna sajit...@wso2.com wrote: Hi Tharindu, I think this is caused by chunking in input streams. It might happen because of HTTP protocol or a bug in Java, I'm not sure. As an alternative solution you can run the MD5 command and compare its output. Like this, public String getMd5Checksum(String filePath) throws IOException { final String md5Command = md5sum ; // Linux 'md5sum', MacOS 'md5' Process p = Runtime.getRuntime().exec(md5Command + filePath); Scanner scn = new Scanner(p.getInputStream()); String rv = scn.nextLine(); scn.close(); return rv; } On Sun, Mar 1, 2015 at 2:28 PM, Tharindu Dharmarathna tharin...@wso2.com wrote: Hi Iqbal, I checked those two files manually I got same hash value to two files. This happens in random manner when running the tests On Sun, Mar 1, 2015 at 1:48 PM, Rasika Perera rasi...@wso2.com wrote: Hi Tharindu, I checked your `readMD5(InputStream inputStream)` method and it is working as expected. The problem is with the inputStream you are passing into the method. Please verify that you are not passing the *same inputStream* on the second time. Because once it is utilized pos has reached the end. So, the second time you are creating a hash of an empty stream. On Sun, Mar 1, 2015 at 1:41 PM, Irham Iqbal iq...@wso2.com wrote: Hi Tharindu Did you try to hash those files manually ? If not try to hash those files manually(i.e *md5sum file.txt) *and check hash values are same Thanks, Iqbal On Sun, Mar 1, 2015 at 12:30 PM, Tharindu Dharmarathna tharin...@wso2.com wrote: Hi all, I wrote test case on APIDocDownload for the API Manager .When I Run the tests It gives me two md5sums for equal files . here's the code sample I write to get md5 value from the files private String readMD5(InputStream inputStream) throws NoSuchAlgorithmException, IOException { MessageDigest md = MessageDigest.getInstance(MD5); byte[] dataBytes = new byte[1024]; int read; try { while ((read = inputStream.read(dataBytes)) != -1) { md.update(dataBytes, 0, read); } } catch (IOException e) { log.error(File couldn't found to read md5, e); throw e; } finally { inputStream.close(); } byte[] mdBytes = md.digest(); //convert the byte to hex format StringBuilder sb = new StringBuilder(); for (byte mdByte : mdBytes) { sb.append(Integer.toString((mdByte 0xff) + 0x100, 16).substring(1)); } return sb.toString(); } Is there any best way to get two files are identical ?. Thanks -- *Tharindu Dharmarathna*Associate Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware mobile: *+94779109091 %2B94779109091* ___ 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 -- With Regards, *Rasika Perera* Software Engineer M: +94 71 680 9060 E: rasi...@wso2.com LinkedIn: http://lk.linkedin.com/in/rasika90 WSO2 Inc. www.wso2.com lean.enterprise.middleware -- *Tharindu Dharmarathna*Associate Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware mobile: *+94779109091 %2B94779109091* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Sajith Ariyarathna Software Engineer; WSO2, Inc.; http://wso2.com/ mobile: +94 77 6602284, +94 71 3951048 -- *Tharindu Dharmarathna*Associate Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware mobile: *+94779109091 %2B94779109091* -- *Tharindu Dharmarathna*Associate Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware mobile: *+94779109091* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Problem with uploading API Image in 'Add API' Rest Resource
Hi, I am using Rest resources given in [1] to generate a sampleAPI ,if there is no APIs in the API Manger. I have used addAPI rest resource to add the sample API..But it did not upload the API image in to the registry and default image was set as the api image. Did anyone use those rest resources and get the same error ?? [1]-https://docs.wso2.com/display/AM180/Publisher+APIs Thanks, Nisala -- *Best Regards,Nisala Niroshana Nanayakkara,* *Bsc. Eng Undergraduate | Department of Computer Science Engineering | University of Moratuwa | Sri Lanka* *Intern Software Engineer | WSO2 Lanka(pvt) Ltd * *Director | Leo Club of University of Moratuwa.* *Mobile | +94717600022* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [IS] [Balana] Missing source files for Balana Sample
Source Files were missing for Balana Sample for hierarchical resources in the Balana git repo. I found them at [1] and added a pull request [2]. [1] https://svn.wso2.org/repos/wso2/trunk/commons/balana/modules/balana-samples/hierarchical-resource/ [2] https://github.com/wso2/balana/pull/9 -- *Farasath Ahamed* Software Engineering Intern WSO2 Inc.; http://wso2.com Mobile: +94 777 603 866 E-Mail: farasath http://goog_1999535192a...@wso2.com Blog: http://thepseudocode.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [IS] [Balana] Missing source files for Balana Sample
On Mon, Mar 2, 2015 at 11:44 AM, Farasath Ahamed farasa...@wso2.com wrote: Source Files were missing for Balana Sample for hierarchical resources in the Balana git repo. I found them at [1] and added a pull request [2]. [1] https://svn.wso2.org/repos/wso2/trunk/commons/balana/modules/balana-samples/hierarchical-resource/ [2] https://github.com/wso2/balana/pull/9 -- *Farasath Ahamed* Software Engineering Intern WSO2 Inc.; http://wso2.com Mobile: +94 777 603 866 E-Mail: farasath http://goog_1999535192a...@wso2.com Blog: http://thepseudocode.blogspot.com/ -- *Farasath Ahamed* Software Engineering Intern WSO2 Inc.; http://wso2.com Mobile: +94 777 603 866 E-Mail: farasath http://goog_1999535192a...@wso2.com Blog: http://thepseudocode.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] WSO2 Committers += Senduran Balasubramaniyam
Congratulations Senduran! On Mon, Mar 2, 2015 at 9:59 AM, Vanii Thiyagarajah va...@wso2.com wrote: Congratulations Senduran! On Fri, Feb 27, 2015 at 6:47 PM, Gimantha Bandara giman...@wso2.com wrote: Congratulations Senduran!! On Fri, Feb 27, 2015 at 2:39 PM, Keerthika Mahendralingam keerth...@wso2.com wrote: Congratulations Senduran! On Fri, Feb 27, 2015 at 2:36 PM, Kesavan Yogarajah kesav...@wso2.com wrote: Congratulations senduran ! Kesavan Yogarajah Associate Software Engineer WSO2 Inc. Mob: +94 779758021 On Fri, Feb 27, 2015 at 9:40 AM, Lasitha Wattaladeniya lasit...@wso2.com wrote: Congratulations ! On Fri, Feb 27, 2015 at 9:12 AM, Akalanka Pagoda Arachchi darsha...@wso2.com wrote: Congratz Sendu On Thu, Feb 26, 2015 at 11:20 PM, Kathees Rajendram kath...@wso2.com wrote: Congratulations Senduran! On Thu, Feb 19, 2015 at 10:32 AM, Niranda Perera nira...@wso2.com wrote: Congrats Senduran! On Thu, Feb 19, 2015 at 10:16 AM, Prasanna Dangalla prasa...@wso2.com wrote: Congratulations Senduran!!! On Thu, Feb 19, 2015 at 10:15 AM, Thanuja Jayasinghe than...@wso2.com wrote: Congratz Senduran.. On Thu, Feb 19, 2015 at 10:11 AM, Dilan Udara Ariyaratne dil...@wso2.com wrote: Congratulations, Senduran!!! *Dilan U. Ariyaratne* Software Engineer WSO2 Inc. http://wso2.com/ Mobile: +94775149066 lean . enterprise . middleware On Thu, Feb 19, 2015 at 12:05 AM, Roshan Deniyage rosh...@wso2.com wrote: congrats !!! Roshan Deniyage Associate Technical Lead WSO2, Inc: http://wso2.com Mobile: +94 777636406 Twitter: *https://twitter.com/roshku https://twitter.com/roshku* LinkedIn : https://www.linkedin.com/in/roshandeniyage On Wed, Feb 18, 2015 at 11:57 PM, Chanuka Dissanayake chan...@wso2.com wrote: Congratulations Senduran..! On Wed, Feb 18, 2015 at 11:36 PM, Samith Dassanayake sam...@wso2.com wrote: Congratz Senduran! On Wed, Feb 18, 2015 at 10:25 PM, Srisunmugaraja Paraparan parapa...@wso2.com wrote: Congratulations Senduran . On Wed, Feb 18, 2015 at 10:12 PM, Ravi Undupitiya r...@wso2.com wrote: Congratulations Senduran! On Wed, Feb 18, 2015 at 3:36 AM, Kasun Indrasiri ka...@wso2.com wrote: Hi devs, Its my pleasure to welcome Senduran Balasubramaniyam as a WSO2 Committer. Senduran, welcome aboard and keep up the good work! Thanks. -- Kasun Indrasiri Software Architect WSO2, Inc.; http://wso2.com lean.enterprise.middleware cell: +94 77 556 5206 Blog : http://kasunpanorama.blogspot.com/ -- *Ravi Undupitiya* Senior Software Engineer; WSO2 http://wso2.com *E-mail: r...@wso2.com http://wso2.com**M: **+94 772 930 712 %2B94%C2%A0772%20930%20712* Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Thanks Regards -- Srisunmugaraja Paraparan Software Engineer, WSO2 Inc. - lean . enterprise . middleware | wso2.com email : parapa...@wso2.com, mobile : +94 77 0362151 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Best Regards Samith Dassanayake Software Engineer | Cloud TG WSO2, Inc. | http://wso2.com lean. enterprise. middleware Mobile : +947 76207351 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Chanuka Dissanayake *Software Engineer | **WSO2 Inc.*; http://wso2.com Mobile: +94 71 33 63 596 Email: chan...@wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Thanuja Lakmal* Software Engineer WSO2 Inc. http://wso2.com/ *lean.enterprise.middleware* Mobile: +94715979891 +94758009992 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- 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 -- *Niranda Perera* Software Engineer, WSO2 Inc. Mobile: +94-71-554-8430 Twitter: @n1r44 https://twitter.com/N1R44 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Kathees Software Engineer, email: kath...@wso2.com mobile: +94772596173 ___ Dev mailing list
Re: [Dev] subscribe
Hi Tharindu I think you want to subscribe to the dev mail. If so send the email to dev-requ...@wso2.org Thanks /Thusitha On Mon, Mar 2, 2015 at 10:51 AM, Tharindu Munasinghe tharin...@wso2.com wrote: -- *Tharindu Munasinghe* Software Engineering Intern WSO2 Inc.(http://wso2.com) SRI LANKA Mobile: +94 77460887 E-Mail: tharin...@wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Thusitha Dayaratne Software Engineer | WSO2 Inc Emailthusit...@wso2.com Mobile +94712756809 Blog alokayasoya.blogspot.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [Automation] Could not copy the catalina-server.xml file
Hi Saneth, Thanks for the prompt response. The suggested method works fine. I found out another issue in the automation framework that when applying patches before server start up, patches have to be in proper order. For an example if the patches folder have patches up to patch0001-0005 and then wen you apply a patch with number patch1000, the framework looks for patch0006 and it fails. Regards, Firzhan On Mon, Mar 2, 2015 at 11:37 AM, Saneth Dharmakeerthi sane...@wso2.com wrote: Hi Firzhan, Reason why always the catalina-server.xml file get copied into CARBON_HOME/repository/conf/ folder when using *serverConfigurationManager.applyConfiguration(sourceCatalinaFile, targetCatalinaFile)* is because of the method implementation ignores the target file path and consider only the file name and all the activities are happening inside CARBON_HOME/repository/conf/. I have created a TA-JIRA [1] for this. *** *serverConfigurationManager.*applyConfigurationWithoutRestart*(sourceCatalinaFile, targetCatalinaFile,*true*) method can be used without any issue. [1]. https://wso2.org/jira/browse/TA-952 https://wso2.org/jira/browse/TA-952 Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Mon, Mar 2, 2015 at 8:47 AM, Saneth Dharmakeerthi sane...@wso2.com wrote: Hi Firzhan, Use following method and it will do the job. serverConfigurationManager.*applyConfigurationWithoutRestart*(sourceCatalinaFile, targetCatalinaFile,*true*); Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Sun, Mar 1, 2015 at 10:48 PM, Firzhan Naqash firz...@wso2.com wrote: Hi All, I am trying to write an automation test where I need to copy the modified catalina-server.xml file in to CARBON_HOME/repository/conf/tomcat folder. But always the catalina-server.xml file get copied in to CARBON_HOME/repository/conf/ folder. But on the other hand I could copy the axis.xml file without any issues. I am using following method to copy this. File sourceCatalinaFile = new File(ProductConstant.SYSTEM_TEST_RESOURCE_LOCATION + BPSTestConstants.DIR_ARTIFACTS + File.separator + BPSTestConstants.DIR_HTTPS_ONLY_TRANSPORT + File.separator + catalina-server.xml); File targetCatalinaFile = new File(CarbonUtils.getCarbonConfigDirPath() + File.separator + tomcat + File .separator + catalina-server.xml); serverConfigurationManager.applyConfiguration(sourceCatalinaFile, targetCatalinaFile); Any help is appreciated to sort out this issue. Regards, Firzhan ___ 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] [AF] Introducing a Service Stub for ApplicationUserManagementService
Hi, I am fixing [1] for AF RC1. For that during application deletion event, we need to delete the forked repos. To delete forked repos, we need to get the user list of the application and delete forks of each user if available for them. From RepositoryHandler's onDeletion method it selects the Repository provider and since this is for Gitblit, we can write the implementation logic in GITBlitBasedGITRepositoryProvider. We can get the users of the application by ApplicationUserManagementService. The more cleaner approach will be calling this service via a stub. There is no stub available for this as of now, hence, I will be introducing a stub for this particular service. [1]. https://wso2.org/jira/browse/APPFAC-2226 -- ~Regards *Manisha Eleperuma* Software Engineer WSO2, Inc.: http://wso2.com lean.enterprise.middleware *blog: http://manisha-eleperuma.blogspot.com/ http://manisha-eleperuma.blogspot.com/* *mobile: +94 71 8279777* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [AF] Introducing a Service Stub for ApplicationUserManagementService
Let me understand what you are trying to do. Are you trying to introduce a service call from AF to AF itself? I guess we are in a process of reducing the Service calls in AF. So can't we move the logic to some util method and call the util method from the repo provider. Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Mon, Mar 2, 2015 at 11:59 AM, Manisha Gayathri mani...@wso2.com wrote: Hi, I am fixing [1] for AF RC1. For that during application deletion event, we need to delete the forked repos. To delete forked repos, we need to get the user list of the application and delete forks of each user if available for them. From RepositoryHandler's onDeletion method it selects the Repository provider and since this is for Gitblit, we can write the implementation logic in GITBlitBasedGITRepositoryProvider. We can get the users of the application by ApplicationUserManagementService. The more cleaner approach will be calling this service via a stub. There is no stub available for this as of now, hence, I will be introducing a stub for this particular service. [1]. https://wso2.org/jira/browse/APPFAC-2226 -- ~Regards *Manisha Eleperuma* Software Engineer WSO2, Inc.: http://wso2.com lean.enterprise.middleware *blog: http://manisha-eleperuma.blogspot.com/ http://manisha-eleperuma.blogspot.com/* *mobile: +94 71 8279777 %2B94%2071%208279777* ___ 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] [Automation] Could not copy the catalina-server.xml file
Hi All, I am trying to write an automation test where I need to copy the modified catalina-server.xml file in to CARBON_HOME/repository/conf/tomcat folder. But always the catalina-server.xml file get copied in to CARBON_HOME/repository/conf/ folder. But on the other hand I could copy the axis.xml file without any issues. I am using following method to copy this. File sourceCatalinaFile = new File(ProductConstant.SYSTEM_TEST_RESOURCE_LOCATION + BPSTestConstants.DIR_ARTIFACTS + File.separator + BPSTestConstants.DIR_HTTPS_ONLY_TRANSPORT + File.separator + catalina-server.xml); File targetCatalinaFile = new File(CarbonUtils.getCarbonConfigDirPath() + File.separator + tomcat + File .separator + catalina-server.xml); serverConfigurationManager.applyConfiguration(sourceCatalinaFile, targetCatalinaFile); Any help is appreciated to sort out this issue. Regards, Firzhan ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Unsatisfied osgi component in the ESB 490 M7 pack
Hi All, Changes added to 'java8support' branch on Git. Should be able to resolve this with latest packs once its merged. Didn't merged the first request since both need to be merged on same time. [1] https://github.com/wso2/carbon-commons/pull/61 [2] https://github.com/wso2/carbon-registry/pull/33 Regards, Manoj *Manoj Kumara* Software Engineer WSO2 Inc. http://wso2.com/ *lean.enterprise.middleware* Mobile: +94713448188 On Fri, Feb 27, 2015 at 8:16 PM, Isuru Udana isu...@wso2.com wrote: Hi Chanaka, Please refer to the mail thread Deployment Synchronizer is not getting activated in ESB 4.9.0 pack dev@. Thanks. On Fri, Feb 27, 2015 at 6:34 PM, Chanaka Fernando chana...@wso2.com wrote: Here is the result of the ls -c command. osgi ls -c 161 Components in bundle org.wso2.carbon.deployment.synchronizer: IDComponent details 29Component[ name = org.wso2.carbon.deployment.synchronizer.XXX factory = null autoenable = true immediate = true implementation = org.wso2.carbon.deployment.synchronizer.internal.DeploymentSynchronizerComponent state = Unsatisfied properties = {service.pid=org.wso2.carbon.deployment.synchronizer.XXX} serviceFactory = false serviceInterface = null references = { Reference[name = configuration.context.service, interface = org.wso2.carbon.utils.ConfigurationContextService, policy = dynamic, cardinality = 1..1, target = null, bind = setConfigurationContextService, unbind = unsetConfigurationContextService] Reference[name = repository.reference.service, interface = org.wso2.carbon.deployment.synchronizer.ArtifactRepository, policy = dynamic, cardinality = 0..n, target = null, bind = addArtifactRepository, unbind = removeArtifactRepository] } located in bundle = org.wso2.carbon.deployment.synchronizer_4.3.5 [161] ] Dynamic information : The component is satisfied All component references are satisfied Component configurations : Configuration properties: service.pid = org.wso2.carbon.deployment.synchronizer.XXX component.name = org.wso2.carbon.deployment.synchronizer.XXX component.id = 28 Instances: No instances were created because: Can not activate instance of component org.wso2.carbon.deployment.synchronizer.internal.DeploymentSynchronizerComponent. The activation throws: java.lang.NullPointerException According to the results of the above command, there is some NPE when activating the service. Thanks, Chanaka On Fri, Feb 27, 2015 at 6:10 PM, Chanaka Fernando chana...@wso2.com wrote: Hi All, I am getting the below unsatisfied osgi component error in the latest ESB 490 M7 pack. We have an integration test to check the unsatisfied osgi components list and that test is failing due to this behavior. 29Unsatisfiedorg.wso2.carbon.deployment.synchronizer.XXX org.wso2.carbon.deployment.synchronizer(bid=161) when I run the diagnosis on this bundle, I am getting the following result osgi diag 29 reference:file:../plugins/commons-collections_3.2.0.wso2v1.jar [29] No unresolved constraints. What would be the reason for this behavior? Here is the location of the pack https://svn.wso2.org/repos/wso2/people/chanakaf/M7-packs/ Thanks, Chanaka -- -- Chanaka Fernando Technical Lead WSO2, Inc.; http://wso2.com lean.enterprise.middleware mobile: +94 773337238 Blog : http://soatutorials.blogspot.com LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0 Twitter:https://twitter.com/chanakaudaya Wordpress:http://chanakaudaya.wordpress.com -- -- Chanaka Fernando Technical Lead WSO2, Inc.; http://wso2.com lean.enterprise.middleware mobile: +94 773337238 Blog : http://soatutorials.blogspot.com LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0 Twitter:https://twitter.com/chanakaudaya Wordpress:http://chanakaudaya.wordpress.com -- *Isuru Udana* Senior *Software Engineer* WSO2 Inc.; http://wso2.com email: isu...@wso2.com cell: +94 77 3791887 blog: http://mytecheye.blogspot.com/ twitter: http://twitter.com/isudana ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Obtain JMX Mbean statistics using test automation framework
Hi Vijitha, You can refer the test case at https://github.com/wso2/product-dss/blob/master/modules/integration/tests/src/test/java/org/wso2/carbon/dss/jmx/statistics/test/JMXStatisticsTestCase.java JMXClient is also available in the same package. Thanks, Krishantha. On Sun, Mar 1, 2015 at 5:45 PM, Vijitha Ekanayake vijit...@wso2.com wrote: Hi all, After creating an endpoint in the ESB, We should be able to view it's statistics via JMX using a JMX client like JConsole. I'm trying to write a test case for the above scenario. For that, Is the away to $Subject? If so, are there any sample test cases which i can refer to? Thank you. -- Vijitha Ekanayake Software Engineer*, *WSO2, Inc.; http://wso2.com/ Mobile : +94 777 24 73 39 | +94 718 74 44 08 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
Re: [Dev] Obtain JMX Mbean statistics using test automation framework
adding dev On Sun, Mar 1, 2015 at 10:00 PM, Vijitha Ekanayake vijit...@wso2.com wrote: Hi Krishantha, Thank you very much for the given sample test case. I was tried searching it in ESB integrations tests. I'll go through it and complete the test case. Thanks. On Sun, Mar 1, 2015 at 9:50 PM, Krishantha Samaraweera krishan...@wso2.com wrote: Hi Vijitha, You can refer the test case at https://github.com/wso2/product-dss/blob/master/modules/integration/tests/src/test/java/org/wso2/carbon/dss/jmx/statistics/test/JMXStatisticsTestCase.java JMXClient is also available in the same package. Thanks, Krishantha. On Sun, Mar 1, 2015 at 5:45 PM, Vijitha Ekanayake vijit...@wso2.com wrote: Hi all, After creating an endpoint in the ESB, We should be able to view it's statistics via JMX using a JMX client like JConsole. I'm trying to write a test case for the above scenario. For that, Is the away to $Subject? If so, are there any sample test cases which i can refer to? Thank you. -- Vijitha Ekanayake Software Engineer*, *WSO2, Inc.; http://wso2.com/ Mobile : +94 777 24 73 39 | +94 718 74 44 08 lean.enterprise.middleware -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. -- Vijitha Ekanayake Software Engineer*, *WSO2, Inc.; http://wso2.com/ Mobile : +94 777 24 73 39 | +94 718 74 44 08 lean.enterprise.middleware -- Vijitha Ekanayake Software Engineer*, *WSO2, Inc.; http://wso2.com/ Mobile : +94 777 24 73 39 | +94 718 74 44 08 lean.enterprise.middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Please review and merge PR for IDENTITY-3077
Merged with f988bec6efccc2e8db754f03949a031115ec40d9 On Sun, Mar 1, 2015 at 8:28 PM, Malithi Edirisinghe malit...@wso2.com wrote: Hi Johann, Resolved the conflicts. Could you please have a look. Thanks, Malithi. On Sun, Mar 1, 2015 at 7:12 PM, Malithi Edirisinghe malit...@wso2.com wrote: Sure. Will have a look On Sun, Mar 1, 2015 at 6:41 PM, Johann Nallathamby joh...@wso2.com wrote: Hi Malithi, There are merge conflicts in PR. Can you fix them ? Thanks. On Sun, Mar 1, 2015 at 6:32 PM, Malithi Edirisinghe malit...@wso2.com wrote: Hi, $subject please for JIRA [1]. [1] *https://wso2.org/jira/browse/IDENTITY-3077 https://wso2.org/jira/browse/IDENTITY-3077* Thanks, Malithi -- *Malithi Edirisinghe* Senior Software Engineer WSO2 Inc. Mobile : +94 (0) 718176807 malit...@wso2.com -- Thanks Regards, *Johann Dilantha Nallathamby* Associate Technical Lead Product Lead of WSO2 Identity Server Integration Technologies Team WSO2, Inc. lean.enterprise.middleware Mobile - *+9476950* Blog - *http://nallaa.wordpress.com http://nallaa.wordpress.com* -- *Malithi Edirisinghe* Senior Software Engineer WSO2 Inc. Mobile : +94 (0) 718176807 malit...@wso2.com -- *Malithi Edirisinghe* Senior Software Engineer WSO2 Inc. Mobile : +94 (0) 718176807 malit...@wso2.com -- Thanks Regards, *Johann Dilantha Nallathamby* Associate Technical Lead Product Lead of WSO2 Identity Server Integration Technologies Team WSO2, Inc. lean.enterprise.middleware Mobile - *+9476950* Blog - *http://nallaa.wordpress.com http://nallaa.wordpress.com* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev