Re: [Dev] Importing users with attribute values into JDBC user store using Bulk Import Users feature in WSO2 identity server

2015-01-23 Thread Nuwan Wimalasekara
Thanks Ishara, Will check this

Thanks,
Nuwanw

On Fri, Jan 23, 2015 at 3:26 AM, Ishara Karunarathna isha...@wso2.com
wrote:

 Hi Nuwan,

 Using CVS file you cant set more user attributes other than user name.
 But you can get this done via SCIM bulk import support [1] here you will
 get more info on that.

 Thanks,
 Ishara

 [1]
 https://malalanayake.wordpress.com/2013/05/28/scim-bulk-endpoint-operations-in-wso2-identity-server/

 On Thu, Jan 22, 2015 at 4:48 PM, Nuwan Wimalasekara nuw...@wso2.com
 wrote:

 Hi IS Team,

 I want to import users which are in csv file into JDBC user store in IS.
 However in sample csv file I found only has two fields(username, password).
 But users have more attributes value with themselves. So any one aware of
 the csv file format with user attribute values and it is possible to import
 users with attribute values by the feature Bulk Import Users.


 Thanks,
 Nuwanw

 --
 Nuwan Wimalasekara
 Senior Software Engineer - Test Automation
 WSO2, Inc.: http://wso2.com
 lean. enterprise. middleware

 phone: +94 71 668 4620






 --
 Ishara Karunarathna
 Senior Software Engineer
 WSO2 Inc. - lean . enterprise . middleware |  wso2.com

 email: isha...@wso2.com,   blog: isharaaruna.blogspot.com,   mobile: +94
 718211678




-- 
Nuwan Wimalasekara
Senior Software Engineer - Test Automation
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware

phone: +94 71 668 4620
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] carbon.enable.saas not working in AS 5.2.1?

2015-01-23 Thread Supun Malinga
Yeah. I'll have a look and update.

thanks,

On Fri, Jan 23, 2015 at 1:08 PM, Afkham Azeez az...@wso2.com wrote:

 Supun was the last person to make changes to that code. Supun, can you
 look into this?

 On Thu, Jan 22, 2015 at 9:35 PM, Shvechkov, Alexey 
 alexey.shvech...@arcserve.com wrote:

  Hi All



 Is carbon carbon.enable.saas parameter still supported by AS 5.2.1?



 Spent quite some time trying to make it working with no success ...   I’m
 trying to share web app deployed in super user domain with other tenants.

 The app uses forms authentication .



 I tried adding carbon.enable.saas and carbon.saas.tenants   parameters
 into web.xml but tenants other than super user still cannot authenticate …

 This is an error that I typically get:



 [2015-01-22 11:59:10,175]  WARN
 {org.wso2.carbon.tomcat.ext.realms.CarbonTomcatRealm} -  Illegal access
 attempt by ad...@tenant2.com to secured resource hosted by tenant
 carbon.super



 From inside my app I can print out context parameters and I see that both
 carbon.enable.saas and carbon.saas.tenants are set ….



 Any thoughts on what else should we look at?



 Here is my web.xml  :
 http://stackoverflow.com/questions/27959210/cannot-enable-saas-mode-for-app-in-wso2as-5-2-1





 Here is a how I run the server (yep, Windows 8.1 + JDK 1.7) :



 C:\some_path\wso2as-5.2.1\binwso2server.bat

 JAVA_HOME environment variable is set to C:\Program Files\Java\jdk1.7.0_71

 CARBON_HOME environment variable is set to
 C:\DEVELO~1\arcserve\WSO2AS~1.1\WSO2AS~1.1\bin\..

 [2015-01-22 11:56:15,123]  INFO
 {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Starting WSO2
 Carbon...

 [2015-01-22 11:56:15,126]  INFO
 {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Operating System :
 Windows 8.1 6.3, amd64

 [2015-01-22 11:56:15,126]  INFO
 {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Java Home:
 C:\Program Files\Java\jdk1.7.0_71\jre

 [2015-01-22 11:56:15,126]  INFO
 {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Java Version :
 1.7.0_71

 [2015-01-22 11:56:15,126]  INFO
 {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Java VM  :
 Java HotSpot(TM) 64-Bit Server VM 24.71-b01,Oracle Corporation





 Thank you in advance,

 Alexey

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




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

 *Lean . Enterprise . Middleware*




-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com sup...@wso2.com
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Please merge the AS Integration test commit#37

2015-01-23 Thread KasunG Gajasinghe
Done.

On Fri, Jan 23, 2015 at 12:49 PM, Nuwan Wimalasekara nuw...@wso2.com
wrote:

 Hi AS Team,

 Please merge the pull request https://github.com/wso2/product-as/pull/37
 into wso2 repo.

 Thanks,
 Nuwanw

 --
 Nuwan Wimalasekara
 Senior Software Engineer - Test Automation
 WSO2, Inc.: http://wso2.com
 lean. enterprise. middleware

 phone: +94 71 668 4620






-- 

*Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
email: kasung AT spamfree wso2.com
linked-in: http://lk.linkedin.com/in/gajasinghe
blog: http://kasunbg.org
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Test Automation] Writing test-cases which connect to databases

2015-01-23 Thread Waruna Perera
https://github.com/warunap/product-esb/blob/master/modules/integration/tests-integration/tests-sample/src/test/java/org/wso2/carbon/esb/samples/test/mediation/db/Sample360TestCase.java

On Fri, Jan 23, 2015 at 5:42 PM, Buddhima Wijeweera buddh...@wso2.com
wrote:

 Hi,
 I need to write test-cases for a new feature which connects with a
 database (H2).
 Tests need to;
 * Create a new table.
 * Remove table.

 Is this possible with the Test-Framework?
 If so, please provide a sample test-case for that.

 Thank You!

 --
 Buddhima Wijeweera
 Software Engineer; WSO2 Inc.; http://wso2.com ,

 Mobile: +94 71 427 9966
 Email: buddh...@wso2.com
 Blog:   https://buddhimawijeweera.wordpress.com
 GitHub Profile: https://github.com/Buddhima

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




-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Please merge the AS Integration test commit#38

2015-01-23 Thread Irham Iqbal
Hi AS Team,

Please merge the pull request[1] into wso2 repo.

[1] https://github.com/wso2/product-as/pull/38
https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fwso2%2Fproduct-as%2Fpull%2F38sa=Dsntz=1usg=AFQjCNExJPmkej1AEpHgP3IU4dks7WhouA

Thanks,
Iqbal
-- 
Irham Iqbal
Software Engineer - Test Automation
 WSO2, Inc.: http://wso2.com
lean. enterprise. middleware
phone: +94 777888452
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Please review and merge the pull request

2015-01-23 Thread Vijitha Ekanayake
Hi,

Please merge the pull request [1] to remove duplicated handler in
axis2_nhttp.xml
https://github.com/VijithaEkanayake/product-esb/commit/6c8416b784536462b24683ccf41043499a11

[1]. https://github.com/wso2-dev/product-esb/pull/151
-- 
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


[Dev] New to wso2

2015-01-23 Thread navya sri nizamkari
Hi,
I have just started with wso2.Can somebody guide me to any introductory
bugs can I can fix?
Thanks,
Navya
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ES] Tenant couldn't login to publisher when SSO is enabled with IS

2015-01-23 Thread Ruchira Wageesha
On Fri, Jan 23, 2015 at 4:21 PM, Senduran Balasubramaniyam 
sendu...@wso2.com wrote:

 Hi,

 Even when I add the UseAuthenticatedUserDomainCrypto to true in IS, I am
 still getting the same exception.
 Is this because IS couldn't identify whether it is tenant or admin who has
 logged in ? as Malithi mentioned in [IS] [ES] Signature Validation fails
 when tenant logs into SSO enabled Publisher

Hm..I doubt how something like this could happen. If there is a logged in
session, that means there is an associated user who's tenant domain can be
determined. Relying on a passed tenant domain is never secure for
authenticated users.

Anyway, can you talk to me on Monday, so that we can have a look with the
property suggested by pushpalanka.

/Ruchira

-- 

*Ruchira Wageesha**Associate Technical Lead*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com http://wso2.com*

*email: ruch...@wso2.com ruch...@wso2.com,   blog:
ruchirawageesha.blogspot.com http://ruchirawageesha.blogspot.com,
mobile: +94 77 5493444*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Carbon HostName in a clustered environment.

2015-01-23 Thread Nirmal Fernando
HostName is not the machine name but the name you use to send the request
to. So, in your case, HostName's value should be apps.example.com

On Sat, Jan 24, 2015 at 6:45 AM, Thilina Piyasundara thili...@wso2.com
wrote:

 Hi all,

 I'm bit confused with this option in carbon.xml.

 !--
*Host name or IP address of the machine hosting this server*
e.g. www.wso2.org, 192.168.1.10
This is will become part of the End Point Reference of the
services deployed on this server instance.
 --
 !--HostNamewww.wso2.org/HostName--

 !--
 Host name to be used for the Carbon management console
 --
 !--MgtHostNamemgt.wso2.org/MgtHostName--


 Think I'm going to host a webapp on 2 wso2 appservers fronted by an nginx
 revers proxy. There are three servers;

 Nginx server
 54.23.12.34 apps.example.com(Public IP and Public DNS name)
 192.168.100.1 lb01.mydatacenter.local

 App servers 01
 192.168.100.21 as01.mydatacenter.local

 App servers 02
 192.168.100.22 as02.mydatacenter.local

 *According to the comment in the carbon.xml;*

 in AS01 I will use;
 HostName*as01.mydatacenter.local*/HostName

 and in AS02 I will use;
 HostName*as02.mydatacenter.local*/HostName

 I will forward http/s traffic for 'apps.example.com' to both AS01 and
 AS02 on 9443/9763.
 (With enabled 'proxyPort's options in catalina-server.xml too.)

 when I access 'apps.example.com/something' via a web browser sometime
 it redirects to URLs like;
 as01.mydatacenter.local/something or as02.mydatacenter.local/something
 randomly.

 1. Do we need this option? (By default its commented)
 2. If needed, what is the correct way of doing this?
 3. Any documentations on usage of this?

 Thanks and regards,

 Thilina Piyasundara
 Systems Engineer
 ​
 ​
 M: 071-775-0006
 ​
 ​
 Blog: thilina.piyasundara.org
 Linkedin: linkedin.com/in/thilinapiyasundara

 WSO2, Inc.
 ​
 ​ http://wso2.com/
 lean . enterprise . middleware
 https://cloud.wso2.com

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




-- 

Thanks  regards,
Nirmal

Senior Software Engineer- Platform Technologies Team, WSO2 Inc.
Mobile: +94715779733
Blog: http://nirmalfdo.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Carbon HostName in a clustered environment.

2015-01-23 Thread Thilina Piyasundara
Hi all,

I'm bit confused with this option in carbon.xml.

!--
   *Host name or IP address of the machine hosting this server*
   e.g. www.wso2.org, 192.168.1.10
   This is will become part of the End Point Reference of the
   services deployed on this server instance.
--
!--HostNamewww.wso2.org/HostName--

!--
Host name to be used for the Carbon management console
--
!--MgtHostNamemgt.wso2.org/MgtHostName--


Think I'm going to host a webapp on 2 wso2 appservers fronted by an nginx
revers proxy. There are three servers;

Nginx server
54.23.12.34 apps.example.com(Public IP and Public DNS name)
192.168.100.1 lb01.mydatacenter.local

App servers 01
192.168.100.21 as01.mydatacenter.local

App servers 02
192.168.100.22 as02.mydatacenter.local

*According to the comment in the carbon.xml;*

in AS01 I will use;
HostName*as01.mydatacenter.local*/HostName

and in AS02 I will use;
HostName*as02.mydatacenter.local*/HostName

I will forward http/s traffic for 'apps.example.com' to both AS01 and AS02
on 9443/9763.
(With enabled 'proxyPort's options in catalina-server.xml too.)

when I access 'apps.example.com/something' via a web browser sometime it
redirects to URLs like;
as01.mydatacenter.local/something or as02.mydatacenter.local/something
randomly.

1. Do we need this option? (By default its commented)
2. If needed, what is the correct way of doing this?
3. Any documentations on usage of this?

Thanks and regards,

Thilina Piyasundara
Systems Engineer
​
​
M: 071-775-0006
​
​
Blog: thilina.piyasundara.org
Linkedin: linkedin.com/in/thilinapiyasundara

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


Re: [Dev] Kernel commits required to patch0010

2015-01-23 Thread Afkham Azeez
+1 from me to adding this since like Dimuthu explained, this public method
should be called only from within registry code and not from bundles
outside registry.

On Fri, Jan 23, 2015 at 6:04 AM, Chandana Napagoda chand...@wso2.com
wrote:

 HI Sameera/Azeez,

 Can you please share your thought on this? We want to sort out this ASAP.

 Regards,
 Chandana

 On Wed, Jan 21, 2015 at 3:29 PM, Dimuthu Leelarathne dimut...@wso2.com
 wrote:

 Hi Manoj,

 The Mount bean is not an API. Mount bean is meant be used within registry
 itself. Nowhere else.

 thanks,
 dimuthu

 On Wed, Jan 21, 2015 at 3:08 PM, Chandana Napagoda chand...@wso2.com
 wrote:

 Hi Manoj,

 Yes, We have introduced a public getter method and a setter for Mount
 beans. It was not possible to use protected or private variables/methods to
 perform this operation, since RegistryConfigurationProcessor and
 RegistryUtils classes are in two different packages. Therefore we
 introduced these methods since newly added getter and setter methods are
 referred inside the same bundle only. So there will not be any impact on
 the existing code base.

 Regards,
 Chandana

 On Wed, Jan 21, 2015 at 12:59 PM, Manoj Kumara ma...@wso2.com wrote:

 Hi Chandana,

 Attached diff contain some public getter and setter additions. We don't
 allow API changes during kernel patches.

 Thanks,
 Manoj


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

 On Wed, Jan 21, 2015 at 10:25 AM, Chandana Napagoda chand...@wso2.com
 wrote:

 Hi Manoj,

 Please apply the patch attached to below JIRA [1].

 [1] https://wso2.org/jira/browse/REGISTRY-2391

 Regards,
 Chandana

 --
 *Chandana Napagoda*
 Senior Software Engineer
 WSO2 Inc. - http://wso2.org

 *Email  :  chand...@wso2.com chand...@wso2.com**Mobile :
 +94718169299 %2B94718169299*

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





 --
 *Chandana Napagoda*
 Senior Software Engineer
 WSO2 Inc. - http://wso2.org

 *Email  :  chand...@wso2.com chand...@wso2.com**Mobile : +94718169299
 %2B94718169299*

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




 --
 Dimuthu Leelarathne
 Architect  Product Lead of App Factory

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

 Lean . Enterprise . Middleware




 --
 *Chandana Napagoda*
 Senior Software Engineer
 WSO2 Inc. - http://wso2.org

 *Email  :  chand...@wso2.com chand...@wso2.com**Mobile : +94718169299
 %2B94718169299*

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




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

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


[Dev] Rule mediator component is missing in ESB 4.9.0 M4

2015-01-23 Thread Vijitha Ekanayake
Hi,

Currently released version of ESB 4.9.0 M4 doesn't contain the rule
mediator component. What is the location of the repository of rule mediator
and how can we proceed to integrate this component ESB?



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


[Dev] carbon-apimgt build fails with a compilation error

2015-01-23 Thread Denuwanthi De Silva
Hi,

wso2-dev/carbon-apimgt fails with the following compilation error.

---
[ERROR] COMPILATION ERROR :
[INFO] -
[ERROR]
/home/denuwanthi/G-reg/git-repos/tempapim/carbon-apimgt/components/apimgt/org.wso2.carbon.apimgt.keymgt/src/main/java/org/wso2/carbon/apimgt/keymgt/handlers/ExtendedAuthorizationCodeGrantHandler.java:[34,27]
unreported exception
org.wso2.carbon.identity.oauth2.InvalidRefreshTokenException; must be
caught or declared to be thrown
[INFO] 1 error




Thanks,
-- 
Denuwanthi De Silva
Software Engineer;
WSO2 Inc.; http://wso2.com,
Email: denuwan...@wso2.com
Blog: https://denuwanthi.wordpress.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Encrypting datasource configuration in ESB-4.0.3

2015-01-23 Thread Pirinthapan Mahendran
Hi all,

Are there any way to encrypt the datasource configurations, when we
creating the datasources through the management console in ESB-4.0.3 ?

Thanks.

Mahendran Pirinthapan
Software Engineer | WSO2 Inc.
Mobile +94772378732.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Test Automation] Writing test-cases which connect to databases

2015-01-23 Thread Buddhima Wijeweera
Hi,
I need to write test-cases for a new feature which connects with a database
(H2).
Tests need to;
* Create a new table.
* Remove table.

Is this possible with the Test-Framework?
If so, please provide a sample test-case for that.

Thank You!

-- 
Buddhima Wijeweera
Software Engineer; WSO2 Inc.; http://wso2.com ,

Mobile: +94 71 427 9966
Email: buddh...@wso2.com
Blog:   https://buddhimawijeweera.wordpress.com
GitHub Profile: https://github.com/Buddhima
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Please Review and Merge the pull request

2015-01-23 Thread Malaka Silva
Hi Ravindra,

There seems to be some formatting issues please fix. eg:- newCtx =
MessageHelper.cloneMessageContextForAggregateMediator(synCtx);- } catch (
AxisFault axisFault) {+ destinationStatRecord =+ (StatisticsRecord) newCtx.
getProperty(SynapseConstants.STATISTICS_STACK);+ if (destinationStatRecord
!= null 

On Sat, Jan 24, 2015 at 10:01 AM, Ravindra Ranwala ravin...@wso2.com
wrote:

 Hi ESBTeam,

 Please review and merge the pull request [1] to the issue [2].


 [1] https://github.com/wso2-dev/wso2-synapse/pull/207/
 [2] https://wso2.org/jira/browse/ESBJAVA-3498



 Thanks  Regards,

 --
 Ravindra Ranwala
 Software Engineer
 WSO2, Inc: http://wso2.com
 http://www.google.com/url?q=http%3A%2F%2Fwso2.comsa=Dsntz=1usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg
 Mobile: +94714198770




-- 

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


Re: [Dev] Please Review and Merge the pull request

2015-01-23 Thread Ravindra Ranwala
Hi Malaka,

I formatted the newly added code using the wso2 formatters [1]. But I am
confused why this pull request distorts that. In my source it shows inline
with the existing source.


[1]
https://sites.google.com/a/wso2.com/engineering/Home/eclipsecodeformattingtemplatesforwso2developers?pli=1


Thanks  Regards,

On Sat, Jan 24, 2015 at 10:47 AM, Malaka Silva mal...@wso2.com wrote:

 Hi Ravindra,

 There seems to be some formatting issues please fix. eg:- newCtx =
 MessageHelper.cloneMessageContextForAggregateMediator(synCtx);- } catch (
 AxisFault axisFault) {+ destinationStatRecord =+ (StatisticsRecord) newCtx
 .getProperty(SynapseConstants.STATISTICS_STACK);+ if
 (destinationStatRecord != null 

 On Sat, Jan 24, 2015 at 10:01 AM, Ravindra Ranwala ravin...@wso2.com
 wrote:

 Hi ESBTeam,

 Please review and merge the pull request [1] to the issue [2].


 [1] https://github.com/wso2-dev/wso2-synapse/pull/207/
 [2] https://wso2.org/jira/browse/ESBJAVA-3498



 Thanks  Regards,

 --
 Ravindra Ranwala
 Software Engineer
 WSO2, Inc: http://wso2.com
 http://www.google.com/url?q=http%3A%2F%2Fwso2.comsa=Dsntz=1usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg
 Mobile: +94714198770




 --

 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.




-- 
Ravindra Ranwala
Software Engineer
WSO2, Inc: http://wso2.com
http://www.google.com/url?q=http%3A%2F%2Fwso2.comsa=Dsntz=1usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg
Mobile: +94714198770
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Salesforce Connector Requirements for recipe

2015-01-23 Thread Malaka Silva
It's blocker for recipe. However can wait for scenarios.

@Buddima  Senduran

On Sat, Jan 24, 2015 at 11:48 AM, Vanjikumaran Sivajothy va...@wso2.com
wrote:

 Is it super urgent or is it possible to wait until scenario development is
 finish?


 On Saturday, January 24, 2015, Malaka Silva mal...@wso2.com wrote:

 Hi Guys,

 There is a requirement for the following functionality to be implemented
 for SFDC Connector.

 [1] Ability to work with tokens(Session Id) generated from OAUTH. -
 Currently log-in is implemented as a connector method. But if the user gets
 the access token with OAUTH there is not way to set it and use other
 methods.

 [2] Functionality to refresh the token once the access token is expired.
 Recipes will run as a scheduled task. Need this functionality to run
 without user interaction.

 Based on the availability can we get this improvement done?

 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.



 --
 Sent from Gmail Mobile




-- 

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


Re: [Dev] WSO2 Committers += Abimaran Kugathasan

2015-01-23 Thread Roshan Wijesena
Congratulations!! Abimaran.

On Sat, Jan 24, 2015 at 12:35 PM, Nuwan Dias nuw...@wso2.com wrote:

 Hi,

 Its with great pleasure we welcome Abimaran Kugathasan as a WSO2
 committer. @Abimaran, congratulations and keep up the good work!

 Thanks,
 NuwanD.

 --
 Nuwan Dias

 Associate Tech Lead - WSO2, Inc. http://wso2.com
 email : nuw...@wso2.com
 Phone : +94 777 775 729

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




-- 
Roshan Wijesena.
Senior Software Engineer-WSO2 Inc.
Mobile: *+94719154640*
Email: ros...@wso2.com
*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] Salesforce Connector Requirements for recipe

2015-01-23 Thread Vanjikumaran Sivajothy
Is it super urgent or is it possible to wait until scenario development is
finish?

On Saturday, January 24, 2015, Malaka Silva mal...@wso2.com wrote:

 Hi Guys,

 There is a requirement for the following functionality to be implemented
 for SFDC Connector.

 [1] Ability to work with tokens(Session Id) generated from OAUTH. -
 Currently log-in is implemented as a connector method. But if the user gets
 the access token with OAUTH there is not way to set it and use other
 methods.

 [2] Functionality to refresh the token once the access token is expired.
 Recipes will run as a scheduled task. Need this functionality to run
 without user interaction.

 Based on the availability can we get this improvement done?

 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.



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


[Dev] WSO2 Committers += Abimaran Kugathasan

2015-01-23 Thread Nuwan Dias
Hi,

Its with great pleasure we welcome Abimaran Kugathasan as a WSO2 committer.
@Abimaran, congratulations and keep up the good work!

Thanks,
NuwanD.

-- 
Nuwan Dias

Associate Tech Lead - WSO2, Inc. http://wso2.com
email : nuw...@wso2.com
Phone : +94 777 775 729
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Salesforce Connector Requirements for recipe

2015-01-23 Thread Malaka Silva
Hi Guys,

There is a requirement for the following functionality to be implemented
for SFDC Connector.

[1] Ability to work with tokens(Session Id) generated from OAUTH. -
Currently log-in is implemented as a connector method. But if the user gets
the access token with OAUTH there is not way to set it and use other
methods.

[2] Functionality to refresh the token once the access token is expired.
Recipes will run as a scheduled task. Need this functionality to run
without user interaction.

Based on the availability can we get this improvement done?

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


Re: [Dev] WSO2 Committers += Abimaran Kugathasan

2015-01-23 Thread Harsha Kumara
Congratulations Abimaran!

On Sat, Jan 24, 2015 at 12:40 PM, Roshan Wijesena ros...@wso2.com wrote:

 Congratulations!! Abimaran.

 On Sat, Jan 24, 2015 at 12:35 PM, Nuwan Dias nuw...@wso2.com wrote:

 Hi,

 Its with great pleasure we welcome Abimaran Kugathasan as a WSO2
 committer. @Abimaran, congratulations and keep up the good work!

 Thanks,
 NuwanD.

 --
 Nuwan Dias

 Associate Tech Lead - WSO2, Inc. http://wso2.com
 email : nuw...@wso2.com
 Phone : +94 777 775 729

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




 --
 Roshan Wijesena.
 Senior Software Engineer-WSO2 Inc.
 Mobile: *+94719154640 %2B94719154640*
 Email: ros...@wso2.com
 *WSO2, Inc. :** wso2.com http://wso2.com/*
 lean.enterprise.middleware.

 ___
 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


Re: [Dev] WSO2 Committers += Abimaran Kugathasan

2015-01-23 Thread Srisunmugaraja Paraparan
Congratulations Abimaran

On Sat, Jan 24, 2015 at 1:06 PM, Danesh Kuruppu dan...@wso2.com wrote:

 Congrats Abimaran!!!

 On Sat, Jan 24, 2015 at 12:42 PM, Harsha Kumara hars...@wso2.com wrote:

 Congratulations Abimaran!

 On Sat, Jan 24, 2015 at 12:40 PM, Roshan Wijesena ros...@wso2.com
 wrote:

 Congratulations!! Abimaran.

 On Sat, Jan 24, 2015 at 12:35 PM, Nuwan Dias nuw...@wso2.com wrote:

 Hi,

 Its with great pleasure we welcome Abimaran Kugathasan as a WSO2
 committer. @Abimaran, congratulations and keep up the good work!

 Thanks,
 NuwanD.

 --
 Nuwan Dias

 Associate Tech Lead - WSO2, Inc. http://wso2.com
 email : nuw...@wso2.com
 Phone : +94 777 775 729

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




 --
 Roshan Wijesena.
 Senior Software Engineer-WSO2 Inc.
 Mobile: *+94719154640 %2B94719154640*
 Email: ros...@wso2.com
 *WSO2, Inc. :** wso2.com http://wso2.com/*
 lean.enterprise.middleware.

 ___
 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




 --

 Danesh Kuruppu
 Software Engineer
 WSO2 Inc,
 Mobile: +94 (77) 1690552

 ___
 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


Re: [Dev] WSO2 Committers += Abimaran Kugathasan

2015-01-23 Thread Danesh Kuruppu
Congrats Abimaran!!!

On Sat, Jan 24, 2015 at 12:42 PM, Harsha Kumara hars...@wso2.com wrote:

 Congratulations Abimaran!

 On Sat, Jan 24, 2015 at 12:40 PM, Roshan Wijesena ros...@wso2.com wrote:

 Congratulations!! Abimaran.

 On Sat, Jan 24, 2015 at 12:35 PM, Nuwan Dias nuw...@wso2.com wrote:

 Hi,

 Its with great pleasure we welcome Abimaran Kugathasan as a WSO2
 committer. @Abimaran, congratulations and keep up the good work!

 Thanks,
 NuwanD.

 --
 Nuwan Dias

 Associate Tech Lead - WSO2, Inc. http://wso2.com
 email : nuw...@wso2.com
 Phone : +94 777 775 729

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




 --
 Roshan Wijesena.
 Senior Software Engineer-WSO2 Inc.
 Mobile: *+94719154640 %2B94719154640*
 Email: ros...@wso2.com
 *WSO2, Inc. :** wso2.com http://wso2.com/*
 lean.enterprise.middleware.

 ___
 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




-- 

Danesh Kuruppu
Software Engineer
WSO2 Inc,
Mobile: +94 (77) 1690552
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Rule mediator component is missing in ESB 4.9.0 M4

2015-01-23 Thread Nandika Jayawardana
Hi Kasun,

Rule mediator is at
https://github.com/wso2/carbon-rules/tree/master/components/rule

Regards
Nandika



On Fri, Jan 23, 2015 at 9:09 AM, Kasun Indrasiri ka...@wso2.com wrote:

 Hi BPS team,

 Is this available in git? If so please proceed with
 https://wso2.org/jira/browse/ESBJAVA-2506.

 On Fri, Jan 23, 2015 at 1:30 PM, Vijitha Ekanayake vijit...@wso2.com
 wrote:

 Hi,

 Currently released version of ESB 4.9.0 M4 doesn't contain the rule
 mediator component. What is the location of the repository of rule mediator
 and how can we proceed to integrate this component ESB?



 --
 Vijitha Ekanayake
 Software Engineer*, *WSO2, Inc.; http://wso2.com/
 Mobile : +94 777 24 73 39 | +94 718 74 44 08
 lean.enterprise.middleware




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

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




-- 
Nandika Jayawardana
Senior Technical Lead
WSO2 Inc ; http://wso2.com
lean.enterprise.middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ES] Tenant couldn't login to publisher when SSO is enabled with IS

2015-01-23 Thread Pushpalanka Jayawardhana
Hi Ruchira,

There is property introduced in IS 5.0.0 called 
UseAuthenticatedUserDomainCrypto to make it backward compatible.
Below link has a description of it's usage.

[1] - https://docs.wso2.com/display/IS500/Configuring+identity.xml

Thanks,
Pushpalanka.
-- 
Pushpalanka Jayawardhana, B.Sc.Eng.(Hons).
Software Engineer, WSO2 Lanka (pvt) Ltd;  wso2.com/
Mobile: +94779716248
Blog: pushpalankajaya.blogspot.com/ | LinkedIn:
lk.linkedin.com/in/pushpalanka/ | Twitter: @pushpalanka


On Fri, Jan 23, 2015 at 3:02 PM, Ruchira Wageesha ruch...@wso2.com wrote:

 Hi Kasun,

 I worked with Senduran and it seemed like a certificate mismatch. AFAICR,
 due to the latest changes in IS code base, the tenant key store is used
 during SSO. Hence, ES, which is based on newer IS code expects tenants
 certs to be used where IS 5.0 expects super-tenant certs to be used. AFAIK,
 I think, this should be the issue here.

 Hence, can somebody from IS team verify my doubt please?

 @Kasun/Senduran,

 If it is my doubt, then you will have to use it with an IS pack which has
 that change.

 On Fri, Jan 23, 2015 at 1:58 PM, Kasun Indrasiri ka...@wso2.com wrote:

 Hi ES team,

 We have spent quite a lot of time on this issue but haven't found a
 resolution yet. This will be a blocker for ES as well as iPaaS milestones.
  Can we get somebody from ES team to look in to this ASAP please?

 On Wed, Jan 21, 2015 at 8:39 AM, Senduran Balasubramaniyam 
 sendu...@wso2.com wrote:

 Hi Sameera,

 Unfortunately the exception is still there, I tried as you instructed.
 What I guess is if a tenant is logged in ES is trying to verify the
 signature against the tenant's specific keystore, while IS consider the
 wso2carbon keystore
 Is there any configuration in ES to check with the wso2carbon keystore
 even for the tenant ?

 Thank you
 Senduran

 On Tue, Jan 20, 2015 at 9:07 PM, Sameera Medagammaddegedara 
 samee...@wso2.com wrote:

 Hi Senduran,

 Can we try the following:

 Export the primary key of the IS:

 keytool -export -keystore wso2carbon.jks -alias wso2carbon -file
 wso2.cert

 Then import the certificate to the tenant's key store

 (Home  Configure  KeyStores  Import Certificates To)


 Thank You,
 Sameera


 On Tue, Jan 20, 2015 at 6:43 AM, Senduran Balasubramaniyam 
 sendu...@wso2.com wrote:

 Hi,

 I debugged the org.wso2.store.sso.common.util.Util
 (product-es/modules/components/sso-common). Also I attached
 xmltooling-1.3.1-sources.jar and xmlsec-1.5.5-sources.jar to get the
 complete executing code.

 I compared the signingCert  variable (in the
 org.wso2.store.sso.common.util.X509CredentialImpl) when I log in as a
 tenant
 If I log in to ES's management console the subject of the certificate
 is *CN=localhost, O=WSO2, L=Mountain View, ST=CA, C=US*
 but when I log in to the publisher as the same tenant the subject of
 the certificate is *C=None, O=None L=None, OU=None, CN=istenant.com
 http://istenant.com*

 Please note that in the above both scenarios I am logging as a Tenant
 and when I try to log in to publisher the signature is trying to validate
 against the tenant specific certificate,
 Is this causing the  org.opensaml.xml.validation.ValidationException:
 Signature did not validate against the credential's key exception ?

 Thanks
 Senduran

 On Mon, Jan 19, 2015 at 11:31 PM, Senduran Balasubramaniyam 
 sendu...@wso2.com wrote:

 Hi,

 Thanks Malithi for the response.
 I tried, un-checking the Enable Response Signing , but even when I
 login as admin I got the following exception
 java.lang.NullPointerException
 at
 org.opensaml.xml.signature.SignatureValidator.buildSignature(SignatureValidator.java:91)
 at
 org.opensaml.xml.signature.SignatureValidator.validate(SignatureValidator.java:55)
 at
 org.wso2.store.sso.common.util.Util.validateSignature(Util.java:290)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 .
 What I am missing here ?


 @ES Team, could you please help me on how to import the public
 certificate of a tenant to the publisher's key store. Where can I find 
 the
 tenant's public certificate

 Thank you
 Senduran



 On Mon, Jan 19, 2015 at 8:10 PM, Malithi Edirisinghe 
 malit...@wso2.com wrote:

 Hii Senduran,

 There's a separate primary keystore generated for the tenant. Since
 you have enabled response signing also, the service provider that you 
 have
 registered should know the public key of the IdP in order to validate.
 Hence, the service provider should have the public key of the IdP in
 it's keystore and validate the signature acquiring the respective 
 alias. So
 in this case I think that you should import the public cert of the
 respective tenant to your publisher's keystore.

 Thanks,
 Malithi.

 On Mon, Jan 19, 2015 at 12:35 PM, Senduran Balasubramaniyam 
 sendu...@wso2.com wrote:

 Hi,

 I am experiencing $subject, with ES 2.0.0 M5. Following are the
 changes I made to configure SSO.

- Shared registry and user database between ES and IS
- In ES's 

Re: [Dev] [ES] Tenant couldn't login to publisher when SSO is enabled with IS

2015-01-23 Thread Kasun Indrasiri
Hi ES team,

We have spent quite a lot of time on this issue but haven't found a
resolution yet. This will be a blocker for ES as well as iPaaS milestones.
 Can we get somebody from ES team to look in to this ASAP please?

On Wed, Jan 21, 2015 at 8:39 AM, Senduran Balasubramaniyam 
sendu...@wso2.com wrote:

 Hi Sameera,

 Unfortunately the exception is still there, I tried as you instructed.
 What I guess is if a tenant is logged in ES is trying to verify the
 signature against the tenant's specific keystore, while IS consider the
 wso2carbon keystore
 Is there any configuration in ES to check with the wso2carbon keystore
 even for the tenant ?

 Thank you
 Senduran

 On Tue, Jan 20, 2015 at 9:07 PM, Sameera Medagammaddegedara 
 samee...@wso2.com wrote:

 Hi Senduran,

 Can we try the following:

 Export the primary key of the IS:

 keytool -export -keystore wso2carbon.jks -alias wso2carbon -file
 wso2.cert

 Then import the certificate to the tenant's key store

 (Home  Configure  KeyStores  Import Certificates To)


 Thank You,
 Sameera


 On Tue, Jan 20, 2015 at 6:43 AM, Senduran Balasubramaniyam 
 sendu...@wso2.com wrote:

 Hi,

 I debugged the org.wso2.store.sso.common.util.Util
 (product-es/modules/components/sso-common). Also I attached
 xmltooling-1.3.1-sources.jar and xmlsec-1.5.5-sources.jar to get the
 complete executing code.

 I compared the signingCert  variable (in the
 org.wso2.store.sso.common.util.X509CredentialImpl) when I log in as a
 tenant
 If I log in to ES's management console the subject of the certificate is 
 *CN=localhost,
 O=WSO2, L=Mountain View, ST=CA, C=US*
 but when I log in to the publisher as the same tenant the subject of the
 certificate is *C=None, O=None L=None, OU=None, CN=istenant.com
 http://istenant.com*

 Please note that in the above both scenarios I am logging as a Tenant
 and when I try to log in to publisher the signature is trying to validate
 against the tenant specific certificate,
 Is this causing the  org.opensaml.xml.validation.ValidationException:
 Signature did not validate against the credential's key exception ?

 Thanks
 Senduran

 On Mon, Jan 19, 2015 at 11:31 PM, Senduran Balasubramaniyam 
 sendu...@wso2.com wrote:

 Hi,

 Thanks Malithi for the response.
 I tried, un-checking the Enable Response Signing , but even when I
 login as admin I got the following exception
 java.lang.NullPointerException
 at
 org.opensaml.xml.signature.SignatureValidator.buildSignature(SignatureValidator.java:91)
 at
 org.opensaml.xml.signature.SignatureValidator.validate(SignatureValidator.java:55)
 at org.wso2.store.sso.common.util.Util.validateSignature(Util.java:290)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 .
 What I am missing here ?


 @ES Team, could you please help me on how to import the public
 certificate of a tenant to the publisher's key store. Where can I find the
 tenant's public certificate

 Thank you
 Senduran



 On Mon, Jan 19, 2015 at 8:10 PM, Malithi Edirisinghe malit...@wso2.com
  wrote:

 Hii Senduran,

 There's a separate primary keystore generated for the tenant. Since
 you have enabled response signing also, the service provider that you have
 registered should know the public key of the IdP in order to validate.
 Hence, the service provider should have the public key of the IdP in
 it's keystore and validate the signature acquiring the respective alias. 
 So
 in this case I think that you should import the public cert of the
 respective tenant to your publisher's keystore.

 Thanks,
 Malithi.

 On Mon, Jan 19, 2015 at 12:35 PM, Senduran Balasubramaniyam 
 sendu...@wso2.com wrote:

 Hi,

 I am experiencing $subject, with ES 2.0.0 M5. Following are the
 changes I made to configure SSO.

- Shared registry and user database between ES and IS
- In ES's user-mgt.xml, pointed the UserStoreManager to IS's
embedded LDAP
- Modified as following in publisher, store json

 identityProviderURL: https://localhost:IS-Port/samlsso


- Created a Service provider for publisher and store in IS as
follows

  SP for publisher

 Issuer: publisher

 Assertion Consumer URL: https://localhost:ES-Port/publisher/acs

 Use fully qualified username in the NameID

 Enable Response Signing

 Enable Assertion Signing

 Enable Single Logout


 SP for store

 Issuer: store

 Assertion Consumer URL: https://localhost:ES-Port/store/acs

 Use fully qualified username in the NameID

 Enable Response Signing

 Enable Assertion Signing

 Enable Single Logout


 When admin login the publisher behaviors as expected. (i.e page is
 redirected to IS login and redirected to publisher, if already a sso
 session is available directly goes to  publisher)\
 But when I log in  as a tenant, the browser is redirected to
 https://localhost:9443/publisher/acs and following exception is
 shown in the console

  INFO {JAGGERY.controllers.login:jag} -  Login URL:
 https://localhost:9447/samlsso
 

Re: [Dev] [ES] Tenant couldn't login to publisher when SSO is enabled with IS

2015-01-23 Thread Ruchira Wageesha
Hi Kasun,

I worked with Senduran and it seemed like a certificate mismatch. AFAICR,
due to the latest changes in IS code base, the tenant key store is used
during SSO. Hence, ES, which is based on newer IS code expects tenants
certs to be used where IS 5.0 expects super-tenant certs to be used. AFAIK,
I think, this should be the issue here.

Hence, can somebody from IS team verify my doubt please?

@Kasun/Senduran,

If it is my doubt, then you will have to use it with an IS pack which has
that change.

On Fri, Jan 23, 2015 at 1:58 PM, Kasun Indrasiri ka...@wso2.com wrote:

 Hi ES team,

 We have spent quite a lot of time on this issue but haven't found a
 resolution yet. This will be a blocker for ES as well as iPaaS milestones.
  Can we get somebody from ES team to look in to this ASAP please?

 On Wed, Jan 21, 2015 at 8:39 AM, Senduran Balasubramaniyam 
 sendu...@wso2.com wrote:

 Hi Sameera,

 Unfortunately the exception is still there, I tried as you instructed.
 What I guess is if a tenant is logged in ES is trying to verify the
 signature against the tenant's specific keystore, while IS consider the
 wso2carbon keystore
 Is there any configuration in ES to check with the wso2carbon keystore
 even for the tenant ?

 Thank you
 Senduran

 On Tue, Jan 20, 2015 at 9:07 PM, Sameera Medagammaddegedara 
 samee...@wso2.com wrote:

 Hi Senduran,

 Can we try the following:

 Export the primary key of the IS:

 keytool -export -keystore wso2carbon.jks -alias wso2carbon -file
 wso2.cert

 Then import the certificate to the tenant's key store

 (Home  Configure  KeyStores  Import Certificates To)


 Thank You,
 Sameera


 On Tue, Jan 20, 2015 at 6:43 AM, Senduran Balasubramaniyam 
 sendu...@wso2.com wrote:

 Hi,

 I debugged the org.wso2.store.sso.common.util.Util
 (product-es/modules/components/sso-common). Also I attached
 xmltooling-1.3.1-sources.jar and xmlsec-1.5.5-sources.jar to get the
 complete executing code.

 I compared the signingCert  variable (in the
 org.wso2.store.sso.common.util.X509CredentialImpl) when I log in as a
 tenant
 If I log in to ES's management console the subject of the certificate
 is *CN=localhost, O=WSO2, L=Mountain View, ST=CA, C=US*
 but when I log in to the publisher as the same tenant the subject of
 the certificate is *C=None, O=None L=None, OU=None, CN=istenant.com
 http://istenant.com*

 Please note that in the above both scenarios I am logging as a Tenant
 and when I try to log in to publisher the signature is trying to validate
 against the tenant specific certificate,
 Is this causing the  org.opensaml.xml.validation.ValidationException:
 Signature did not validate against the credential's key exception ?

 Thanks
 Senduran

 On Mon, Jan 19, 2015 at 11:31 PM, Senduran Balasubramaniyam 
 sendu...@wso2.com wrote:

 Hi,

 Thanks Malithi for the response.
 I tried, un-checking the Enable Response Signing , but even when I
 login as admin I got the following exception
 java.lang.NullPointerException
 at
 org.opensaml.xml.signature.SignatureValidator.buildSignature(SignatureValidator.java:91)
 at
 org.opensaml.xml.signature.SignatureValidator.validate(SignatureValidator.java:55)
 at org.wso2.store.sso.common.util.Util.validateSignature(Util.java:290)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 .
 What I am missing here ?


 @ES Team, could you please help me on how to import the public
 certificate of a tenant to the publisher's key store. Where can I find the
 tenant's public certificate

 Thank you
 Senduran



 On Mon, Jan 19, 2015 at 8:10 PM, Malithi Edirisinghe 
 malit...@wso2.com wrote:

 Hii Senduran,

 There's a separate primary keystore generated for the tenant. Since
 you have enabled response signing also, the service provider that you 
 have
 registered should know the public key of the IdP in order to validate.
 Hence, the service provider should have the public key of the IdP in
 it's keystore and validate the signature acquiring the respective alias. 
 So
 in this case I think that you should import the public cert of the
 respective tenant to your publisher's keystore.

 Thanks,
 Malithi.

 On Mon, Jan 19, 2015 at 12:35 PM, Senduran Balasubramaniyam 
 sendu...@wso2.com wrote:

 Hi,

 I am experiencing $subject, with ES 2.0.0 M5. Following are the
 changes I made to configure SSO.

- Shared registry and user database between ES and IS
- In ES's user-mgt.xml, pointed the UserStoreManager to IS's
embedded LDAP
- Modified as following in publisher, store json

 identityProviderURL: https://localhost:IS-Port/samlsso


- Created a Service provider for publisher and store in IS as
follows

  SP for publisher

 Issuer: publisher

 Assertion Consumer URL: https://localhost:ES-Port/publisher/acs

 Use fully qualified username in the NameID

 Enable Response Signing

 Enable Assertion Signing

 Enable Single Logout


 SP for store

 Issuer: store

 Assertion Consumer URL: https://localhost:ES-Port/store/acs

 Use 

[Dev] Please review and merge the pull request

2015-01-23 Thread Vijitha Ekanayake
Hi,

Please merge the pull request [1] for
https://wso2.org/jira/browse/ESBJAVA-3440

[1]. https://github.com/wso2-dev/product-esb/pull/149


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


[Dev] Upgrading jsch to the latest version

2015-01-23 Thread Sandamal Weerasinghe
Hi all,

At the moment org.wso2.carbon.deployment.synchronizer is using
version 0.1.49 of the above jar that was released in October 2012. The
latest version of that jar is 0.1.51 (released in March 2014). Since the
current version that is used in our products is fairly old I think it
should be updated if possible. Version 0.1.51 is already in Orbit
http://maven.wso2.org/nexus/content/groups/wso2-public/com/jcraft/jsch/.

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


[Dev] Response not receiving when payloadfactory media type is json

2015-01-23 Thread Udara Liyanage
Hi,

I tried below sequence to get a JSON response back. However no response
received to the client. I tried having Respond mediator instead of Send in
out sequence. What is missing which prevents response is being received.


   1. sequence name=main
   2.   in
   3.  log level=custom
   4. property name=text value=**inside main **/
   5.  /log
   6.  payloadFactory media-type=xml
   7. format
   8.m:getQuote xmlns:m=http://services.samples;
   9.   m:request
   10.  m:symbolIBM/m:symbol
   11.   /m:request
   12./m:getQuote
   13. /format
   14. args/
   15.  /payloadFactory
   16.  send
   17. endpoint name=secure   address uri=
   http://localhost:9000/axis2/services/SecureStockQuoteService/
   18. /endpoint
   19.  /send
   20.   /in
   21.   out
   22.  log level=custom
   23. property name=text value=**inside out **/
   24.  /log
   25.  payloadFactory media-type=xml
   26. format
   27.m:getQuote xmlns:m=http://services.samples;
   28.   m:request
   29.  m:symbol$/m:symbol
   30.   /m:request
   31./m:getQuote
   32. /format
   33. args
   34.arg xmlns:m0=http://services.samples;
   35.evaluator=xml
   36.expression=//m0:Code/
   37. /args
   38.  /payloadFactory
   39.  payloadFactory media-type=json
   40. format
   41. {
   42. coordinates: null,
   43. created_at: Fri Jun 24 17:43:26 + 2011,
   44. truncated: false,
   45. favorited: false,
   46.
   47. entities: {
   48. urls: [
   49.
   50. ],
   51. hashtags: [
   52. {
   53. indices: [
   54. 35,
   55. 45
   56. ]
   57. }
   58. ],
   59. user_mentions: [
   60. ]
   61. }
   62. }
   63. /format
   64. args/
   65.  /payloadFactory  property name=messageType value=
   application/json scope=axis2/
   66.  send/
   67.   /out


-- 

Udara Liyanage
Software Engineer
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware

web: http://udaraliyanage.wordpress.com
phone: +94 71 443 6897
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Importing users with attribute values into JDBC user store using Bulk Import Users feature in WSO2 identity server

2015-01-23 Thread Ishara Karunarathna
Hi Nuwan,

Using CVS file you cant set more user attributes other than user name.
But you can get this done via SCIM bulk import support [1] here you will
get more info on that.

Thanks,
Ishara

[1]
https://malalanayake.wordpress.com/2013/05/28/scim-bulk-endpoint-operations-in-wso2-identity-server/

On Thu, Jan 22, 2015 at 4:48 PM, Nuwan Wimalasekara nuw...@wso2.com wrote:

 Hi IS Team,

 I want to import users which are in csv file into JDBC user store in IS.
 However in sample csv file I found only has two fields(username, password).
 But users have more attributes value with themselves. So any one aware of
 the csv file format with user attribute values and it is possible to import
 users with attribute values by the feature Bulk Import Users.


 Thanks,
 Nuwanw

 --
 Nuwan Wimalasekara
 Senior Software Engineer - Test Automation
 WSO2, Inc.: http://wso2.com
 lean. enterprise. middleware

 phone: +94 71 668 4620






-- 
Ishara Karunarathna
Senior Software Engineer
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

email: isha...@wso2.com,   blog: isharaaruna.blogspot.com,   mobile: +94
718211678
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Kernel commits required to patch0010

2015-01-23 Thread Sagara Gunathunga
On Fri, Jan 23, 2015 at 1:37 PM, Afkham Azeez az...@wso2.com wrote:

 +1 from me to adding this since like Dimuthu explained, this public method
 should be called only from within registry code and not from bundles
 outside registry.


+1

Even within the registry code Mount bean is only used to read mount
configuration from registry.xml file, other than that there is no any
 other use cases.

Thanks !


 On Fri, Jan 23, 2015 at 6:04 AM, Chandana Napagoda chand...@wso2.com
 wrote:

 HI Sameera/Azeez,

 Can you please share your thought on this? We want to sort out this ASAP.

 Regards,
 Chandana

 On Wed, Jan 21, 2015 at 3:29 PM, Dimuthu Leelarathne dimut...@wso2.com
 wrote:

 Hi Manoj,

 The Mount bean is not an API. Mount bean is meant be used within
 registry itself. Nowhere else.

 thanks,
 dimuthu

 On Wed, Jan 21, 2015 at 3:08 PM, Chandana Napagoda chand...@wso2.com
 wrote:

 Hi Manoj,

 Yes, We have introduced a public getter method and a setter for Mount
 beans. It was not possible to use protected or private variables/methods to
 perform this operation, since RegistryConfigurationProcessor and
 RegistryUtils classes are in two different packages. Therefore we
 introduced these methods since newly added getter and setter methods are
 referred inside the same bundle only. So there will not be any impact on
 the existing code base.

 Regards,
 Chandana

 On Wed, Jan 21, 2015 at 12:59 PM, Manoj Kumara ma...@wso2.com wrote:

 Hi Chandana,

 Attached diff contain some public getter and setter additions. We
 don't allow API changes during kernel patches.

 Thanks,
 Manoj


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

 On Wed, Jan 21, 2015 at 10:25 AM, Chandana Napagoda chand...@wso2.com
  wrote:

 Hi Manoj,

 Please apply the patch attached to below JIRA [1].

 [1] https://wso2.org/jira/browse/REGISTRY-2391

 Regards,
 Chandana

 --
 *Chandana Napagoda*
 Senior Software Engineer
 WSO2 Inc. - http://wso2.org

 *Email  :  chand...@wso2.com chand...@wso2.com**Mobile :
 +94718169299 %2B94718169299*

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





 --
 *Chandana Napagoda*
 Senior Software Engineer
 WSO2 Inc. - http://wso2.org

 *Email  :  chand...@wso2.com chand...@wso2.com**Mobile :
 +94718169299 %2B94718169299*

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




 --
 Dimuthu Leelarathne
 Architect  Product Lead of App Factory

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

 Lean . Enterprise . Middleware




 --
 *Chandana Napagoda*
 Senior Software Engineer
 WSO2 Inc. - http://wso2.org

 *Email  :  chand...@wso2.com chand...@wso2.com**Mobile : +94718169299
 %2B94718169299*

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




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

 *Lean . Enterprise . Middleware*




-- 
Sagara Gunathunga

Senior Technical Lead; WSO2, Inc.;  http://wso2.com
V.P Apache Web Services;http://ws.apache.org/
Linkedin; http://www.linkedin.com/in/ssagara
Blog ;  http://ssagara.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Please review and merge the pull request : MQTT Connector

2015-01-23 Thread Vanjikumaran Sivajothy
Some xml files does not contain the Licences

On Fri, Jan 23, 2015 at 4:22 AM, Eranda Rajapakshe eran...@wso2.com wrote:

 Thanks for the response! I will add test cases too.
 And what you mean by reviewing the headers of the xml files? Is it adding
 more description on XML tags?

 On Thu, Jan 22, 2015 at 8:40 PM, Vanjikumaran Sivajothy va...@wso2.com
 wrote:

 Hi Earanda,

 Did not you write any test cases for the connector ?
 can you please review the headers for the xml files too?

 On Thu, Jan 22, 2015 at 3:40 PM, Eranda Rajapakshe eran...@wso2.com
 wrote:

 Hi,

 Please merge the pull request [1] for MQTT connector.

 [1] https://github.com/wso2-dev/esb-connectors/pull/164

 Thanks!
 --
 *Eranda Rajapakshe*
 Software Engineering intern
 WSO2 Inc. www.wso2.com
 Tel : +94784822608
 Email : eran...@wso2.com

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




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




 --
 *Eranda Rajapakshe*
 Software Engineering intern
 WSO2 Inc. www.wso2.com

 *B. Sc. Eng. (Hons) Undergraduate*
 *Dept. of Computer Science and Engineering*
 *University of Moratuwa, Sri Lanka*
 Tel : +94784822608
 Email : eran...@wso2.com




-- 
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] [ES] Tenant couldn't login to publisher when SSO is enabled with IS

2015-01-23 Thread Ruchira Wageesha
Hi Pushpalanka,

Is Using tenant keystore the deprecated way or the recommended way?
According to the doc, it seems the older approach, but I was under the
impression it is the recommended way.

On Fri, Jan 23, 2015 at 3:19 PM, Pushpalanka Jayawardhana la...@wso2.com
wrote:

 Hi Ruchira,

 There is property introduced in IS 5.0.0 called 
 UseAuthenticatedUserDomainCrypto to make it backward compatible.
 Below link has a description of it's usage.

 [1] - https://docs.wso2.com/display/IS500/Configuring+identity.xml

 Thanks,
 Pushpalanka.
 --
 Pushpalanka Jayawardhana, B.Sc.Eng.(Hons).
 Software Engineer, WSO2 Lanka (pvt) Ltd;  wso2.com/
 Mobile: +94779716248
 Blog: pushpalankajaya.blogspot.com/ | LinkedIn:
 lk.linkedin.com/in/pushpalanka/ | Twitter: @pushpalanka


 On Fri, Jan 23, 2015 at 3:02 PM, Ruchira Wageesha ruch...@wso2.com
 wrote:

 Hi Kasun,

 I worked with Senduran and it seemed like a certificate mismatch. AFAICR,
 due to the latest changes in IS code base, the tenant key store is used
 during SSO. Hence, ES, which is based on newer IS code expects tenants
 certs to be used where IS 5.0 expects super-tenant certs to be used. AFAIK,
 I think, this should be the issue here.

 Hence, can somebody from IS team verify my doubt please?

 @Kasun/Senduran,

 If it is my doubt, then you will have to use it with an IS pack which has
 that change.

 On Fri, Jan 23, 2015 at 1:58 PM, Kasun Indrasiri ka...@wso2.com wrote:

 Hi ES team,

 We have spent quite a lot of time on this issue but haven't found a
 resolution yet. This will be a blocker for ES as well as iPaaS milestones.
  Can we get somebody from ES team to look in to this ASAP please?

 On Wed, Jan 21, 2015 at 8:39 AM, Senduran Balasubramaniyam 
 sendu...@wso2.com wrote:

 Hi Sameera,

 Unfortunately the exception is still there, I tried as you instructed.
 What I guess is if a tenant is logged in ES is trying to verify the
 signature against the tenant's specific keystore, while IS consider the
 wso2carbon keystore
 Is there any configuration in ES to check with the wso2carbon keystore
 even for the tenant ?

 Thank you
 Senduran

 On Tue, Jan 20, 2015 at 9:07 PM, Sameera Medagammaddegedara 
 samee...@wso2.com wrote:

 Hi Senduran,

 Can we try the following:

 Export the primary key of the IS:

 keytool -export -keystore wso2carbon.jks -alias wso2carbon -file
 wso2.cert

 Then import the certificate to the tenant's key store

 (Home  Configure  KeyStores  Import Certificates To)


 Thank You,
 Sameera


 On Tue, Jan 20, 2015 at 6:43 AM, Senduran Balasubramaniyam 
 sendu...@wso2.com wrote:

 Hi,

 I debugged the org.wso2.store.sso.common.util.Util
 (product-es/modules/components/sso-common). Also I attached
 xmltooling-1.3.1-sources.jar and xmlsec-1.5.5-sources.jar to get the
 complete executing code.

 I compared the signingCert  variable (in the
 org.wso2.store.sso.common.util.X509CredentialImpl) when I log in as a
 tenant
 If I log in to ES's management console the subject of the certificate
 is *CN=localhost, O=WSO2, L=Mountain View, ST=CA, C=US*
 but when I log in to the publisher as the same tenant the subject of
 the certificate is *C=None, O=None L=None, OU=None,
 CN=istenant.com http://istenant.com*

 Please note that in the above both scenarios I am logging as a Tenant
 and when I try to log in to publisher the signature is trying to validate
 against the tenant specific certificate,
 Is this causing the  org.opensaml.xml.validation.ValidationException:
 Signature did not validate against the credential's key exception ?

 Thanks
 Senduran

 On Mon, Jan 19, 2015 at 11:31 PM, Senduran Balasubramaniyam 
 sendu...@wso2.com wrote:

 Hi,

 Thanks Malithi for the response.
 I tried, un-checking the Enable Response Signing , but even when I
 login as admin I got the following exception
 java.lang.NullPointerException
 at
 org.opensaml.xml.signature.SignatureValidator.buildSignature(SignatureValidator.java:91)
 at
 org.opensaml.xml.signature.SignatureValidator.validate(SignatureValidator.java:55)
 at
 org.wso2.store.sso.common.util.Util.validateSignature(Util.java:290)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 .
 What I am missing here ?


 @ES Team, could you please help me on how to import the public
 certificate of a tenant to the publisher's key store. Where can I find 
 the
 tenant's public certificate

 Thank you
 Senduran



 On Mon, Jan 19, 2015 at 8:10 PM, Malithi Edirisinghe 
 malit...@wso2.com wrote:

 Hii Senduran,

 There's a separate primary keystore generated for the tenant. Since
 you have enabled response signing also, the service provider that you 
 have
 registered should know the public key of the IdP in order to validate.
 Hence, the service provider should have the public key of the IdP
 in it's keystore and validate the signature acquiring the respective 
 alias.
 So in this case I think that you should import the public cert of the
 respective tenant to your publisher's keystore.

 

Re: [Dev] [ES] Tenant couldn't login to publisher when SSO is enabled with IS

2015-01-23 Thread Senduran Balasubramaniyam
Hi,

Even when I add the UseAuthenticatedUserDomainCrypto to true in IS, I am
still getting the same exception.
Is this because IS couldn't identify whether it is tenant or admin who has
logged in ? as Malithi mentioned in [IS] [ES] Signature Validation fails
when tenant logs into SSO enabled Publisher

Regards
Senduran

On Fri, Jan 23, 2015 at 3:19 PM, Pushpalanka Jayawardhana la...@wso2.com
wrote:

 Hi Ruchira,

 There is property introduced in IS 5.0.0 called 
 UseAuthenticatedUserDomainCrypto to make it backward compatible.
 Below link has a description of it's usage.

 [1] - https://docs.wso2.com/display/IS500/Configuring+identity.xml

 Thanks,
 Pushpalanka.
 --
 Pushpalanka Jayawardhana, B.Sc.Eng.(Hons).
 Software Engineer, WSO2 Lanka (pvt) Ltd;  wso2.com/
 Mobile: +94779716248
 Blog: pushpalankajaya.blogspot.com/ | LinkedIn:
 lk.linkedin.com/in/pushpalanka/ | Twitter: @pushpalanka


 On Fri, Jan 23, 2015 at 3:02 PM, Ruchira Wageesha ruch...@wso2.com
 wrote:

 Hi Kasun,

 I worked with Senduran and it seemed like a certificate mismatch. AFAICR,
 due to the latest changes in IS code base, the tenant key store is used
 during SSO. Hence, ES, which is based on newer IS code expects tenants
 certs to be used where IS 5.0 expects super-tenant certs to be used. AFAIK,
 I think, this should be the issue here.

 Hence, can somebody from IS team verify my doubt please?

 @Kasun/Senduran,

 If it is my doubt, then you will have to use it with an IS pack which has
 that change.

 On Fri, Jan 23, 2015 at 1:58 PM, Kasun Indrasiri ka...@wso2.com wrote:

 Hi ES team,

 We have spent quite a lot of time on this issue but haven't found a
 resolution yet. This will be a blocker for ES as well as iPaaS milestones.
  Can we get somebody from ES team to look in to this ASAP please?

 On Wed, Jan 21, 2015 at 8:39 AM, Senduran Balasubramaniyam 
 sendu...@wso2.com wrote:

 Hi Sameera,

 Unfortunately the exception is still there, I tried as you instructed.
 What I guess is if a tenant is logged in ES is trying to verify the
 signature against the tenant's specific keystore, while IS consider the
 wso2carbon keystore
 Is there any configuration in ES to check with the wso2carbon keystore
 even for the tenant ?

 Thank you
 Senduran

 On Tue, Jan 20, 2015 at 9:07 PM, Sameera Medagammaddegedara 
 samee...@wso2.com wrote:

 Hi Senduran,

 Can we try the following:

 Export the primary key of the IS:

 keytool -export -keystore wso2carbon.jks -alias wso2carbon -file
 wso2.cert

 Then import the certificate to the tenant's key store

 (Home  Configure  KeyStores  Import Certificates To)


 Thank You,
 Sameera


 On Tue, Jan 20, 2015 at 6:43 AM, Senduran Balasubramaniyam 
 sendu...@wso2.com wrote:

 Hi,

 I debugged the org.wso2.store.sso.common.util.Util
 (product-es/modules/components/sso-common). Also I attached
 xmltooling-1.3.1-sources.jar and xmlsec-1.5.5-sources.jar to get the
 complete executing code.

 I compared the signingCert  variable (in the
 org.wso2.store.sso.common.util.X509CredentialImpl) when I log in as a
 tenant
 If I log in to ES's management console the subject of the certificate
 is *CN=localhost, O=WSO2, L=Mountain View, ST=CA, C=US*
 but when I log in to the publisher as the same tenant the subject of
 the certificate is *C=None, O=None L=None, OU=None,
 CN=istenant.com http://istenant.com*

 Please note that in the above both scenarios I am logging as a Tenant
 and when I try to log in to publisher the signature is trying to validate
 against the tenant specific certificate,
 Is this causing the  org.opensaml.xml.validation.ValidationException:
 Signature did not validate against the credential's key exception ?

 Thanks
 Senduran

 On Mon, Jan 19, 2015 at 11:31 PM, Senduran Balasubramaniyam 
 sendu...@wso2.com wrote:

 Hi,

 Thanks Malithi for the response.
 I tried, un-checking the Enable Response Signing , but even when I
 login as admin I got the following exception
 java.lang.NullPointerException
 at
 org.opensaml.xml.signature.SignatureValidator.buildSignature(SignatureValidator.java:91)
 at
 org.opensaml.xml.signature.SignatureValidator.validate(SignatureValidator.java:55)
 at
 org.wso2.store.sso.common.util.Util.validateSignature(Util.java:290)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 .
 What I am missing here ?


 @ES Team, could you please help me on how to import the public
 certificate of a tenant to the publisher's key store. Where can I find 
 the
 tenant's public certificate

 Thank you
 Senduran



 On Mon, Jan 19, 2015 at 8:10 PM, Malithi Edirisinghe 
 malit...@wso2.com wrote:

 Hii Senduran,

 There's a separate primary keystore generated for the tenant. Since
 you have enabled response signing also, the service provider that you 
 have
 registered should know the public key of the IdP in order to validate.
 Hence, the service provider should have the public key of the IdP
 in it's keystore and validate the signature acquiring the respective 
 alias.

Re: [Dev] [Test Automation] Writing test-cases which connect to databases

2015-01-23 Thread Buddhima Wijeweera
Hi,

Thank you Irham  Waruna for the quick responses.

I would also like to know is there a way to query records in a table.

Thanks!

On Fri, Jan 23, 2015 at 6:15 PM, Waruna Perera waru...@wso2.com wrote:


 https://github.com/warunap/product-esb/blob/master/modules/integration/tests-integration/tests-sample/src/test/java/org/wso2/carbon/esb/samples/test/mediation/db/Sample360TestCase.java

 On Fri, Jan 23, 2015 at 5:42 PM, Buddhima Wijeweera buddh...@wso2.com
 wrote:

 Hi,
 I need to write test-cases for a new feature which connects with a
 database (H2).
 Tests need to;
 * Create a new table.
 * Remove table.

 Is this possible with the Test-Framework?
 If so, please provide a sample test-case for that.

 Thank You!

 --
 Buddhima Wijeweera
 Software Engineer; WSO2 Inc.; http://wso2.com ,

 Mobile: +94 71 427 9966
 Email: buddh...@wso2.com
 Blog:   https://buddhimawijeweera.wordpress.com
 GitHub Profile: https://github.com/Buddhima

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




 --
 Waruna Perera
 Senior Software Engineer - Test Automation
 Mobile: +94 77 3867037
 WSO2, Inc.; http://wso2.com/
 lean . enterprise . middlewear.




-- 
Buddhima Wijeweera
Software Engineer; WSO2 Inc.; http://wso2.com ,

Mobile: +94 71 427 9966
Email: buddh...@wso2.com
Blog:   https://buddhimawijeweera.wordpress.com
GitHub Profile: https://github.com/Buddhima
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Test Automation] Writing test-cases which connect to databases

2015-01-23 Thread Irham Iqbal
Hi ,

The test case i sent you earlier using the class[1] if you see the class
it's running some queries

[1]
https://github.com/wso2-dev/product-dss/blob/master/modules/integration/tests-common/integration-test-utils/src/main/java/org/wso2/dss/integration/common/utils/SqlDataSourceUtil.java

Thanks,
Iqbal

On Fri, Jan 23, 2015 at 6:49 PM, Buddhima Wijeweera buddh...@wso2.com
wrote:

 Hi,

 Thank you Irham  Waruna for the quick responses.

 I would also like to know is there a way to query records in a table.

 Thanks!

 On Fri, Jan 23, 2015 at 6:15 PM, Waruna Perera waru...@wso2.com wrote:


 https://github.com/warunap/product-esb/blob/master/modules/integration/tests-integration/tests-sample/src/test/java/org/wso2/carbon/esb/samples/test/mediation/db/Sample360TestCase.java

 On Fri, Jan 23, 2015 at 5:42 PM, Buddhima Wijeweera buddh...@wso2.com
 wrote:

 Hi,
 I need to write test-cases for a new feature which connects with a
 database (H2).
 Tests need to;
 * Create a new table.
 * Remove table.

 Is this possible with the Test-Framework?
 If so, please provide a sample test-case for that.

 Thank You!

 --
 Buddhima Wijeweera
 Software Engineer; WSO2 Inc.; http://wso2.com ,

 Mobile: +94 71 427 9966
 Email: buddh...@wso2.com
 Blog:   https://buddhimawijeweera.wordpress.com
 GitHub Profile: https://github.com/Buddhima

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




 --
 Waruna Perera
 Senior Software Engineer - Test Automation
 Mobile: +94 77 3867037
 WSO2, Inc.; http://wso2.com/
 lean . enterprise . middlewear.




 --
 Buddhima Wijeweera
 Software Engineer; WSO2 Inc.; http://wso2.com ,

 Mobile: +94 71 427 9966
 Email: buddh...@wso2.com
 Blog:   https://buddhimawijeweera.wordpress.com
 GitHub Profile: https://github.com/Buddhima




-- 
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] [Test Automation] Writing test-cases which connect to databases

2015-01-23 Thread Damith Wickramasinghe
Hi,

If you retrieve the DataSource and the connection object you can create a
PreparedStatement using the connection object and query the records.

Regards,
Damith.

On Fri, Jan 23, 2015 at 6:49 PM, Buddhima Wijeweera buddh...@wso2.com
wrote:

 Hi,

 Thank you Irham  Waruna for the quick responses.

 I would also like to know is there a way to query records in a table.

 Thanks!

 On Fri, Jan 23, 2015 at 6:15 PM, Waruna Perera waru...@wso2.com wrote:


 https://github.com/warunap/product-esb/blob/master/modules/integration/tests-integration/tests-sample/src/test/java/org/wso2/carbon/esb/samples/test/mediation/db/Sample360TestCase.java

 On Fri, Jan 23, 2015 at 5:42 PM, Buddhima Wijeweera buddh...@wso2.com
 wrote:

 Hi,
 I need to write test-cases for a new feature which connects with a
 database (H2).
 Tests need to;
 * Create a new table.
 * Remove table.

 Is this possible with the Test-Framework?
 If so, please provide a sample test-case for that.

 Thank You!

 --
 Buddhima Wijeweera
 Software Engineer; WSO2 Inc.; http://wso2.com ,

 Mobile: +94 71 427 9966
 Email: buddh...@wso2.com
 Blog:   https://buddhimawijeweera.wordpress.com
 GitHub Profile: https://github.com/Buddhima

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




 --
 Waruna Perera
 Senior Software Engineer - Test Automation
 Mobile: +94 77 3867037
 WSO2, Inc.; http://wso2.com/
 lean . enterprise . middlewear.




 --
 Buddhima Wijeweera
 Software Engineer; WSO2 Inc.; http://wso2.com ,

 Mobile: +94 71 427 9966
 Email: buddh...@wso2.com
 Blog:   https://buddhimawijeweera.wordpress.com
 GitHub Profile: https://github.com/Buddhima

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




-- 
Software Engineer
WSO2 Inc.; http://wso2.com
http://www.google.com/url?q=http%3A%2F%2Fwso2.comsa=Dsntz=1usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg
lean.enterprise.middleware

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


Re: [Dev] Rule mediator component is missing in ESB 4.9.0 M4

2015-01-23 Thread Kasun Indrasiri
Hi BPS team,

Is this available in git? If so please proceed with
https://wso2.org/jira/browse/ESBJAVA-2506.

On Fri, Jan 23, 2015 at 1:30 PM, Vijitha Ekanayake vijit...@wso2.com
wrote:

 Hi,

 Currently released version of ESB 4.9.0 M4 doesn't contain the rule
 mediator component. What is the location of the repository of rule mediator
 and how can we proceed to integrate this component ESB?



 --
 Vijitha Ekanayake
 Software Engineer*, *WSO2, Inc.; http://wso2.com/
 Mobile : +94 777 24 73 39 | +94 718 74 44 08
 lean.enterprise.middleware




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

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


Re: [Dev] carbon4-kernel tests migration - to be compatible with TAF 4.3.1

2015-01-23 Thread Dimuthu De Lanerolle
Hi Kishanthan,

Yes,  we have the updated PR [1] which is compatible with the master branch
to-date. Pls merge.

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

Regards

On Thu, Jan 22, 2015 at 11:09 PM, Kishanthan Thangarajah 
kishant...@wso2.com wrote:

 Great. Thanks Dimuthu and Krishantha. So we just have to remove the old
 framework from code base right? Also can we get the updated PR on this
 migration sent to master branch, if not already done?

 On Wed, Jan 21, 2015 at 11:57 PM, Krishantha Samaraweera 
 krishan...@wso2.com wrote:

 Hi Dimuthu,

 Thanks for attending to this.

 We need to remove the old test framework in kernel and test suite.

 Thanks,
 Krishantha.

 On Wed, Jan 21, 2015 at 8:24 PM, Dimuthu De Lanerolle dimut...@wso2.com
 wrote:

 This is completed.  Please find the test result for carbon-kernel4
 tests-integration module.

 Test results
 SuitePassedFailedSkippedtestng.xml*Total**24**0**0*
 carbon-server-startup http://carbon-server-startup/index.html2400Link
 http://carbon-server-startup/testng.xml.html


 Regards


 On Tue, Jan 20, 2015 at 3:07 PM, Dimuthu De Lanerolle dimut...@wso2.com
  wrote:

 I have started migrating carbon4-kernel tests inside [1] tests module
 to tests-integration module which is going to be compatible with new TAF
 4.3.1 framework. Will update progress soon.

 [1]
 https://github.com/buddhics/carbon4-kernel/tree/master/distribution/integration


 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




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




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




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


[Dev] We have to implement caching in addApplication and addVersion to get the desired outcome from getBranchCount cache

2015-01-23 Thread Aiyadurai Rajeevan
Hi All,

Since I have been working on refactoring DAO level cache and implementing
the cache for getBranchCount in AppFactory [1], While implementing it,
Found out if we need to enable caching for getBranchCount method first we
have to implement cache for addApplication and addVersion methods, because
getBranchCount is only count the number of branches available for a given
appkey. Hence, we have to implement the cache in addApplication method to
create cache for applications which are newly created and invalidate older
cache and add new branch count inside addVersion method.

As of now getBranchCount is not cache enabled hence its always querying it
from DB and gets correct branch count.

Please correct me if i'm wrong in this context.

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

Thanks  Regards,
S.A.Rajeevan
Software Engineer WSO2 Inc
E-Mail: rajeev...@wso2.com | Mobile : +94776411636
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Please merge the AS Integration test commit#38

2015-01-23 Thread KasunG Gajasinghe
Merged the PR since this has already gone through the code review process.

On Fri, Jan 23, 2015 at 6:20 PM, Irham Iqbal iq...@wso2.com wrote:

 Hi AS Team,

 Please merge the pull request[1] into wso2 repo.

 [1] https://github.com/wso2/product-as/pull/38
 https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fwso2%2Fproduct-as%2Fpull%2F38sa=Dsntz=1usg=AFQjCNExJPmkej1AEpHgP3IU4dks7WhouA

 Thanks,
 Iqbal
 --
 Irham Iqbal
 Software Engineer - Test Automation
  WSO2, Inc.: http://wso2.com
 lean. enterprise. middleware
 phone: +94 777888452




-- 

*Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
email: kasung AT spamfree wso2.com
linked-in: http://lk.linkedin.com/in/gajasinghe
blog: http://kasunbg.org
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ES] Tenant couldn't login to publisher when SSO is enabled with IS

2015-01-23 Thread Senduran Balasubramaniyam
Sure Ruchira,

Thanks
Senduran

On Fri, Jan 23, 2015 at 7:23 PM, Ruchira Wageesha ruch...@wso2.com wrote:


 On Fri, Jan 23, 2015 at 4:21 PM, Senduran Balasubramaniyam 
 sendu...@wso2.com wrote:

 Hi,

 Even when I add the UseAuthenticatedUserDomainCrypto to true in IS, I
 am still getting the same exception.
 Is this because IS couldn't identify whether it is tenant or admin who
 has logged in ? as Malithi mentioned in [IS] [ES] Signature Validation
 fails when tenant logs into SSO enabled Publisher

 Hm..I doubt how something like this could happen. If there is a logged in
 session, that means there is an associated user who's tenant domain can be
 determined. Relying on a passed tenant domain is never secure for
 authenticated users.

 Anyway, can you talk to me on Monday, so that we can have a look with the
 property suggested by pushpalanka.

 /Ruchira

 --

 *Ruchira Wageesha**Associate Technical Lead*
 *WSO2 Inc. - lean . enterprise . middleware |  wso2.com http://wso2.com*

 *email: ruch...@wso2.com ruch...@wso2.com,   blog:
 ruchirawageesha.blogspot.com http://ruchirawageesha.blogspot.com,
 mobile: +94 77 5493444 %2B94%2077%205493444*




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