Re: [Dev] [BPEL] Invoking Admin Service

2014-09-15 Thread Godwin Amila Shrimal
Hi Firzhan,

Thanks for response, I'll check this and get back to you.

On Sun, Sep 14, 2014 at 3:40 PM, Firzhan Naqash  wrote:

> Hi,
>
> You can add your securing policy in a secured-services.xml file and then
> you can point  that file using "serviceDescriptionReference" attribute in
> deploy.xml file.
>
> You can find a sample under
> $BPS_HOME/repository/samples/BPEL/SecuredWithServiceDescriptorProcess.zip.
>
> Regards,
> Firzhan
>
> On Sun, Sep 14, 2014 at 3:01 PM, Godwin Amila Shrimal 
> wrote:
>
>> Hi,
>>
>> I am trying to invoke admin services from BPEL and it worked. I used [1]
>> to checked this. Now I need to pass credentials to BPEL from client
>> application. How can we overcome this ?
>>
>>
>> [1]
>> https://svn.wso2.org/repos/wso2/carbon/platform/branches/4.0.0/products/bps/3.0.1/modules/samples/product/src/main/resources/bpel/2.0/AdminServiceInvokeSample/
>>
>>
>> Thanks
>> Godwin
>>
>> --
>> *Godwin Amila Shrimal*
>> Senior Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: *+94772264165*
>> linkedin: *http://lnkd.in/KUum6D *
>> twitter: https://twitter.com/godwinamila
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>


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

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


[Dev] MYSQL/JDBC error when trying to connect to the MYSQL server

2014-09-15 Thread Madhawa Bandara
Hi,
When Appfactory tries to connect to a remote application server instance on
openstack following error[1] can be observed in the appserver log.

autoReconnect=true is already set and wait_timeout is set as per the
instructions in the error log but that didn't fix the issue. Any help?

Thanks,
Madhawa

[1]-

TID: [0] [TEST-AS] [2014-09-15 06:39:20,569] ERROR
{org.wso2.carbon.registry.core.utils.LogWriter} -  Unable to save log
records {org.wso2.carbon.registry.core.utils.LogWriter}
org.wso2.carbon.registry.core.exceptions.RegistryException: Failed to
update log batch records . The last packet successfully received from the
server was 326,264,793 milliseconds ago.  The last packet sent successfully
to the server was 326,264,794 milliseconds ago. is longer than the server
configured value of 'wait_timeout'. You should consider either expiring
and/or testing connection validity before use in your application,
increasing the server configured values for client timeouts, or using the
Connector/J connection property 'autoReconnect=true' to avoid this problem.
at
org.wso2.carbon.registry.core.jdbc.dao.JDBCLogsDAO.addLogRecords(JDBCLogsDAO.java:177)
at
org.wso2.carbon.registry.core.jdbc.dao.JDBCLogsDAO.saveLogBatch(JDBCLogsDAO.java:124)
at
org.wso2.carbon.registry.core.utils.LogWriter.logWrite(LogWriter.java:106)
at org.wso2.carbon.registry.core.utils.LogWriter.run(LogWriter.java:91)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: The
last packet successfully received from the server was 326,264,793
milliseconds ago.  The last packet sent successfully to the server was
326,264,794 milliseconds ago. is longer than the server configured value of
'wait_timeout'. You should consider either expiring and/or testing
connection validity before use in your application, increasing the server
configured values for client timeouts, or using the Connector/J connection
property 'autoReconnect=true' to avoid this problem.
at sun.reflect.GeneratedConstructorAccessor399.newInstance(Unknown Source)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1121)
at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:3988)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2598)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2778)
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2819)
at com.mysql.jdbc.ConnectionImpl.setAutoCommit(ConnectionImpl.java:5346)
at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at
org.apache.tomcat.jdbc.pool.ProxyConnection.invoke(ProxyConnection.java:126)
at
org.apache.tomcat.jdbc.pool.JdbcInterceptor.invoke(JdbcInterceptor.java:109)
at
org.wso2.carbon.ndatasource.rdbms.ConnectionRollbackOnReturnInterceptor.invoke(ConnectionRollbackOnReturnInterceptor.java:51)
at
org.apache.tomcat.jdbc.pool.JdbcInterceptor.invoke(JdbcInterceptor.java:109)
at
org.apache.tomcat.jdbc.pool.interceptor.AbstractCreateStatementInterceptor.invoke(AbstractCreateStatementInterceptor.java:71)
at
org.apache.tomcat.jdbc.pool.JdbcInterceptor.invoke(JdbcInterceptor.java:109)
at
org.apache.tomcat.jdbc.pool.interceptor.ConnectionState.invoke(ConnectionState.java:153)
at
org.apache.tomcat.jdbc.pool.JdbcInterceptor.invoke(JdbcInterceptor.java:109)
at org.apache.tomcat.jdbc.pool.TrapException.invoke(TrapException.java:41)
at
org.apache.tomcat.jdbc.pool.JdbcInterceptor.invoke(JdbcInterceptor.java:109)
at
org.apache.tomcat.jdbc.pool.DisposableConnectionFacade.invoke(DisposableConnectionFacade.java:80)
at com.sun.proxy.$Proxy14.setAutoCommit(Unknown Source)
at
org.wso2.carbon.registry.core.jdbc.dao.JDBCLogsDAO.addLogRecords(JDBCLogsDAO.java:144)
... 3 more
Caused by: java.net.SocketException: Broken pipe
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:113)
at java.net.SocketOutputStream.write(SocketOutputStream.java:159)
at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)
at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:3969)
... 23 more

TID: [0] [TEST-AS] [2014-09-15 06:42:49,608]  WARN
{org.wso2.carbon.server.admin.module.handler.AuthenticationHandler} -
 Illegal access attempt at [2014-09-15 06:42:49,0608] from IP address
10.100.5.57 while trying to authenticate access to service
AppFactoryNDataSourceAdmin
{org.wso2.carbon.server.admin.module.handler.AuthenticationHandler}
TID: [0] [TEST-AS] [2014-09-15 06:43:53,307]  WARN
{org.wso2.carbon.server.admin.module.handler.AuthenticationHandler} -
 Illegal access attempt at [2014-09-15 06:43:53,0307] from IP address
10

Re: [Dev] MYSQL/JDBC error when trying to connect to the MYSQL server

2014-09-15 Thread Danushka Fernando
Hi All
Here we have changed the no of max connections to 100,000. Although the
error says use a higher wait timeout I think increasing it is not the best
option. And we have put the autoReconnect=true in jdbc url.
@Prabath : Is there a way of eliminating this problem. Currently when we
detect this we restart the server. Is there a mysql setting that we can use
to eliminate this?

Thanks & Regards
Danushka Fernando
Software Engineer
WSO2 inc. http://wso2.com/
Mobile : +94716332729


On Mon, Sep 15, 2014 at 12:55 PM, Madhawa Bandara  wrote:

> Hi,
> When Appfactory tries to connect to a remote application server instance
> on openstack following error[1] can be observed in the appserver log.
>
> autoReconnect=true is already set and wait_timeout is set as per the
> instructions in the error log but that didn't fix the issue. Any help?
>
> Thanks,
> Madhawa
>
> [1]-
>
> TID: [0] [TEST-AS] [2014-09-15 06:39:20,569] ERROR
> {org.wso2.carbon.registry.core.utils.LogWriter} -  Unable to save log
> records {org.wso2.carbon.registry.core.utils.LogWriter}
> org.wso2.carbon.registry.core.exceptions.RegistryException: Failed to
> update log batch records . The last packet successfully received from the
> server was 326,264,793 milliseconds ago.  The last packet sent successfully
> to the server was 326,264,794 milliseconds ago. is longer than the server
> configured value of 'wait_timeout'. You should consider either expiring
> and/or testing connection validity before use in your application,
> increasing the server configured values for client timeouts, or using the
> Connector/J connection property 'autoReconnect=true' to avoid this problem.
> at
> org.wso2.carbon.registry.core.jdbc.dao.JDBCLogsDAO.addLogRecords(JDBCLogsDAO.java:177)
> at
> org.wso2.carbon.registry.core.jdbc.dao.JDBCLogsDAO.saveLogBatch(JDBCLogsDAO.java:124)
> at
> org.wso2.carbon.registry.core.utils.LogWriter.logWrite(LogWriter.java:106)
> at org.wso2.carbon.registry.core.utils.LogWriter.run(LogWriter.java:91)
> Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: The
> last packet successfully received from the server was 326,264,793
> milliseconds ago.  The last packet sent successfully to the server was
> 326,264,794 milliseconds ago. is longer than the server configured value of
> 'wait_timeout'. You should consider either expiring and/or testing
> connection validity before use in your application, increasing the server
> configured values for client timeouts, or using the Connector/J connection
> property 'autoReconnect=true' to avoid this problem.
> at sun.reflect.GeneratedConstructorAccessor399.newInstance(Unknown Source)
> at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
> at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
> at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
> at
> com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1121)
> at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:3988)
> at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2598)
> at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2778)
> at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2819)
> at com.mysql.jdbc.ConnectionImpl.setAutoCommit(ConnectionImpl.java:5346)
> at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at
> org.apache.tomcat.jdbc.pool.ProxyConnection.invoke(ProxyConnection.java:126)
> at
> org.apache.tomcat.jdbc.pool.JdbcInterceptor.invoke(JdbcInterceptor.java:109)
> at
> org.wso2.carbon.ndatasource.rdbms.ConnectionRollbackOnReturnInterceptor.invoke(ConnectionRollbackOnReturnInterceptor.java:51)
> at
> org.apache.tomcat.jdbc.pool.JdbcInterceptor.invoke(JdbcInterceptor.java:109)
> at
> org.apache.tomcat.jdbc.pool.interceptor.AbstractCreateStatementInterceptor.invoke(AbstractCreateStatementInterceptor.java:71)
> at
> org.apache.tomcat.jdbc.pool.JdbcInterceptor.invoke(JdbcInterceptor.java:109)
> at
> org.apache.tomcat.jdbc.pool.interceptor.ConnectionState.invoke(ConnectionState.java:153)
> at
> org.apache.tomcat.jdbc.pool.JdbcInterceptor.invoke(JdbcInterceptor.java:109)
> at org.apache.tomcat.jdbc.pool.TrapException.invoke(TrapException.java:41)
> at
> org.apache.tomcat.jdbc.pool.JdbcInterceptor.invoke(JdbcInterceptor.java:109)
> at
> org.apache.tomcat.jdbc.pool.DisposableConnectionFacade.invoke(DisposableConnectionFacade.java:80)
> at com.sun.proxy.$Proxy14.setAutoCommit(Unknown Source)
> at
> org.wso2.carbon.registry.core.jdbc.dao.JDBCLogsDAO.addLogRecords(JDBCLogsDAO.java:144)
> ... 3 more
> Caused by: java.net.SocketException: Broken pipe
> at java.net.SocketOutputStream.socketWrite0(Native Method)
> at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:113)
> at java.net.SocketOutputStream.write(SocketOutputStream.java:159)
> at java.io.BufferedOutputStream.fl

[Dev] Updated Invitation: Code Review - UI Testcases WSO2 EAM @ Mon Sep 15, 2014 2:30pm - 3:30pm (Kasun Dissanayake)

2014-09-15 Thread kas...@wso2.com
BEGIN:VCALENDAR
PRODID:-//Google Inc//Google Calendar 70.9054//EN
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:REQUEST
BEGIN:VEVENT
DTSTART:20140915T09Z
DTEND:20140915T10Z
DTSTAMP:20140915T074221Z
ORGANIZER;CN=Kasun Dissanayake:mailto:kas...@wso2.com
UID:i44f5earfodks2o9ege3l0k...@google.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Rajeeva Uthayasangar;X-NUM-GUESTS=0:mailto:raje...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Ruwan Yatawara;X-NUM-GUESTS=0:mailto:ruw...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Jenananthan Yogendran;X-NUM-GUESTS=0:mailto:jenanant...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Rushmin Fernando;X-NUM-GUESTS=0:mailto:rush...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Thilini Shanika;X-NUM-GUESTS=0:mailto:thili...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=dev@wso2.org;X-NUM-GUESTS=0:mailto:dev@wso2.org
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=ACCEPTED;RSVP=TRUE
 ;CN=Kasun Dissanayake;X-NUM-GUESTS=0:mailto:kas...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Nuwan Wimalasekara;X-NUM-GUESTS=0:mailto:nuw...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Krishantha Samaraweera;X-NUM-GUESTS=0:mailto:krishan...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Dinusha Senanayaka;X-NUM-GUESTS=0:mailto:dinu...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Sumedha Rubasinghe;X-NUM-GUESTS=0:mailto:sume...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Nuwan Dias;X-NUM-GUESTS=0:mailto:nuw...@wso2.com
CREATED:20140914T125810Z
DESCRIPTION:View your event at https://www.google.com/calendar/event?action
 =VIEW&eid=aTQ0ZjVlYXJmb2RrczJvOWVnZTNsMGtjNTAgZGV2QHdzbzIub3Jn&tok=MTUja2Fz
 dW51QHdzbzIuY29tMWZkOTNiMjg3ZWQ4ODg4ZGY1Nzg4MWJiNDg5MWI1NDVjMDRjZTgyOQ&ctz=
 Asia/Colombo&hl=en.
LAST-MODIFIED:20140915T074221Z
LOCATION:WSO2 Inc.\, LK 3rd Floor Meeting Room
SEQUENCE:1
STATUS:CONFIRMED
SUMMARY:Code Review - UI Testcases WSO2 EAM
TRANSP:OPAQUE
END:VEVENT
END:VCALENDAR


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


Re: [Dev] Clarification on IS sample is needed - Configuring SAML2 SSO

2014-09-15 Thread Asok Perera
Thank you Pushpalanka !
But there is another clarification needed.
What if a user needs to isolate two web apps ? Meaning, what if there
'cannot' be a super user sort of a logging (admin credentials) for two web
apps which is secured through a single IS ?

BR



*Asok Aravinda Perera*
Software Engineer
WSO2, Inc.;http://wso2.com/

lean.enterprise.middleware

Mobile: +94722241032

On Fri, Sep 12, 2014 at 10:15 AM, Pushpalanka Jayawardhana 
wrote:

> Hi Asok,
>
> This comes with the behavior of SSO.
> When you register travelocity.com as a service provider in IS and point
> travelocity.com webapp to use IS as the identity provider, authentication
> process of webapp is totally handled by IS.
> Even the page you enter username/password is submitted by IS. Webapp does
> not have any idea on the valid user name and password of the user trying to
> login as all these details are captured and authenticated at IS side. IS
> then just let the webapp knows whether the user is authenticated or not.
>
> This helps to keep the user passwords in a secured centralized place than
> saving it in each webapp and helps to provide a better user experience by
> not asking users to type username/password several times(If you are logged
> into IS, you are automatically logged into travelocity.com as well.).
>
> Therefore any other user in IS also can login to travelocity.com webapp
> with his/her credentials.
> This article[1] will provide more insight.
> Hope this helps.
>
> [1] -
> http://wso2.com/library/articles/2010/07/saml2-web-browser-based-sso-wso2-identity-server/
>
> 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, Sep 12, 2014 at 9:54 AM, Asok Perera  wrote:
>
>> Hi,
>>
>> This is a question occurred to me while working on 'Configuring SAML2
>> SSO' sample in Identity server. (link below)
>> https://docs.wso2.com/display/IS500/Configuring+SAML2+SSO
>>
>> According to that sample, a user can log into service provider's
>> site/portal with Identity server's admin credentials. In this case, one can
>> use admin/admin username/password to log into travelocity.com.
>>
>> The question is, can I assume that IS admin is treated as a super user
>> who can log into all the service providers' web apps / services ?
>> If not, can somebody explain me why we can use admin credentials in the
>> above sample ?
>>
>> BR
>>
>> *Asok Aravinda Perera*
>> Software Engineer
>> WSO2, Inc.;http://wso2.com/
>> 
>> lean.enterprise.middleware
>>
>> Mobile: +94722241032
>>
>> ___
>> 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] Please merge the Pull request /carbon-deployment/pull/27

2014-09-15 Thread Chamil Jeewantha
[1] is the pull for product-as.
Please do not merge it until pull/27 is merged.

[1] https://github.com/wso2-dev/product-as/pull/28

On Mon, Sep 15, 2014 at 10:00 AM, Chamil Jeewantha  wrote:

> https://github.com/wso2-dev/carbon-deployment/pull/27
>
> --
> K.D. Chamil Jeewantha
> Associate Technical Lead
> WSO2, Inc.;  http://wso2.com
> http://kdchamil.blogspot.com
> Mobile: +94716813892
>
>


-- 
K.D. Chamil Jeewantha
Associate Technical Lead
WSO2, Inc.;  http://wso2.com
http://kdchamil.blogspot.com
Mobile: +94716813892
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Updated Invitation: Code Review - UI Testcases WSO2 EAM @ Mon Sep 15, 2014 3:30pm - 4pm (Kasun Dissanayake)

2014-09-15 Thread kas...@wso2.com
BEGIN:VCALENDAR
PRODID:-//Google Inc//Google Calendar 70.9054//EN
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:REQUEST
BEGIN:VEVENT
DTSTART:20140915T10Z
DTEND:20140915T103000Z
DTSTAMP:20140915T090340Z
ORGANIZER;CN=Kasun Dissanayake:mailto:kas...@wso2.com
UID:i44f5earfodks2o9ege3l0k...@google.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Rajeeva Uthayasangar;X-NUM-GUESTS=0:mailto:raje...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Ruwan Yatawara;X-NUM-GUESTS=0:mailto:ruw...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Jenananthan Yogendran;X-NUM-GUESTS=0:mailto:jenanant...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Rushmin Fernando;X-NUM-GUESTS=0:mailto:rush...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Thilini Shanika;X-NUM-GUESTS=0:mailto:thili...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=dev@wso2.org;X-NUM-GUESTS=0:mailto:dev@wso2.org
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=ACCEPTED;RSVP=TRUE
 ;CN=Kasun Dissanayake;X-NUM-GUESTS=0:mailto:kas...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Nuwan Wimalasekara;X-NUM-GUESTS=0:mailto:nuw...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Krishantha Samaraweera;X-NUM-GUESTS=0:mailto:krishan...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Dinusha Senanayaka;X-NUM-GUESTS=0:mailto:dinu...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Sumedha Rubasinghe;X-NUM-GUESTS=0:mailto:sume...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Nuwan Dias;X-NUM-GUESTS=0:mailto:nuw...@wso2.com
CREATED:20140914T125810Z
DESCRIPTION:View your event at https://www.google.com/calendar/event?action
 =VIEW&eid=aTQ0ZjVlYXJmb2RrczJvOWVnZTNsMGtjNTAgZGV2QHdzbzIub3Jn&tok=MTUja2Fz
 dW51QHdzbzIuY29tMWZkOTNiMjg3ZWQ4ODg4ZGY1Nzg4MWJiNDg5MWI1NDVjMDRjZTgyOQ&ctz=
 Asia/Colombo&hl=en.
LAST-MODIFIED:20140915T090340Z
LOCATION:WSO2 Inc.\, LK 3rd Floor Meeting Room
SEQUENCE:2
STATUS:CONFIRMED
SUMMARY:Code Review - UI Testcases WSO2 EAM
TRANSP:OPAQUE
END:VEVENT
END:VCALENDAR


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


[Dev] java.net.MalformedURLException: no protocol

2014-09-15 Thread Dinithi De Silva
Hi All,

While doing our integration testing to ESB Connector for ToodleDo, we got
the following exception.


[2014-09-15 14:47:51,995]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
 java.net.MalformedURLException: no protocol:

/home/rajee/Desktop/toodledo[final]/ToodledoESBConnector/target/carbontmp1410772636719/wso2esb-4.8.1/repository/conf/etc/config-validation.xml
[2014-09-15 14:47:51,996]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
java.net.URL.(URL.java:567)
[2014-09-15 14:47:51,996]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
java.net.URL.(URL.java:464)
[2014-09-15 14:47:51,996]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
java.net.URL.(URL.java:413)
[2014-09-15 14:47:51,996]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
[2014-09-15 14:47:51,996]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown
Source)
[2014-09-15 14:47:51,997]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
[2014-09-15 14:47:51,997]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
[2014-09-15 14:47:51,997]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
[2014-09-15 14:47:51,997]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
[2014-09-15 14:47:51,997]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
[2014-09-15 14:47:51,997]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
[2014-09-15 14:47:51,998]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
org.wso2.carbon.core.bootup.validator.util.ConfigValidationXMLProcessor.parseConfigValidationXml(ConfigValidationXMLProcessor.java:62)



[2014-09-15 14:48:06,960]  INFO
{org.wso2.carbon.automation.core.utils.ClientConnectionUtil} -  Waiting to
login to Carbon server...
[2014-09-15 14:48:06,961]  INFO
{org.wso2.carbon.automation.core.utils.ClientConnectionUtil} -
 Successfully connected to the server on port 9443
[2014-09-15 14:48:07,813]  INFO
{org.apache.commons.httpclient.HttpMethodDirector} -  I/O exception
(org.apache.axis2.AxisFault) caught when processing request: Connection has
been shutdown: javax.net.ssl.SSLException: java.lang.RuntimeException:
Unexpected error: java.security.InvalidAlgorithmParameterException: the
trustAnchors parameter must be non-empty
[2014-09-15 14:48:07,813]  INFO
{org.apache.commons.httpclient.HttpMethodDirector} -  I/O exception
(org.apache.axis2.AxisFault) caught when processing request: Connection has
been shutdown: javax.net.ssl.SSLException: java.lang.RuntimeException:
Unexpected error: java.security.InvalidAlgorithmParameterException: the
trustAnchors parameter must be non-empty
[2014-09-15 14:48:07,814]  INFO
{org.apache.commons.httpclient.HttpMethodDirector} -  Retrying request
[2014-09-15 14:48:07,814]  INFO
{org.apache.commons.httpclient.HttpMethodDirector} -  Retrying request

What could be the error?
Can anyone please help to figure out this exception and reason for the
exception?

Thank you
Dinithi De Silva
Associate Software Engineer

Mob: +94 716 667 655
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Pull request] Use tomcat-annotations-api instead of JDK provided api

2014-09-15 Thread KasunG Gajasinghe
Hi Sameera,

Please find the new PR - https://github.com/wso2-dev/carbon4-kernel/pull/99

Thanks,
KasunG

On Tue, Sep 9, 2014 at 3:04 PM, Sameera Jayasoma  wrote:

> oh okay. I will reject the PR for now. Please send a new PR then.
>
> Thanks,
> Sameera.
>
> On Tue, Sep 9, 2014 at 6:28 PM, Kasun Gajasinghe  wrote:
>
>> Hi Sameera,
>>
>> Will update the thread when this is done. Currently finding time to get
>> around to this again. :-)
>>
>> Thanks,
>> KasunG
>>
>> On Tue, Sep 9, 2014 at 2:47 PM, Sameera Jayasoma 
>> wrote:
>>
>>> https://github.com/wso2-dev/carbon4-kernel/pull/86
>>>
>>> On Tue, Sep 9, 2014 at 6:16 PM, Sameera Jayasoma 
>>> wrote:
>>>
 Hi Kasun,

 Please check this pull request and let me know whether you have applied
 the changes as we discussed that day.

 Thanks,
 Sameera.

 --
 Sameera Jayasoma,
 Software Architect,

 WSO2, Inc. (http://wso2.com)
 email: same...@wso2.com
 blog: http://sameera.adahas.org
 twitter: https://twitter.com/sameerajayasoma
 flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
 Mobile: 0094776364456

 Lean . Enterprise . Middleware


>>>
>>>
>>> --
>>> Sameera Jayasoma,
>>> Software Architect,
>>>
>>> WSO2, Inc. (http://wso2.com)
>>> email: same...@wso2.com
>>> blog: http://sameera.adahas.org
>>> twitter: https://twitter.com/sameerajayasoma
>>> flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
>>> Mobile: 0094776364456
>>>
>>> Lean . Enterprise . Middleware
>>>
>>>
>>
>>
>> --
>>
>> *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
>>
>>
>>
>
>
>
> --
> Sameera Jayasoma,
> Software Architect,
>
> WSO2, Inc. (http://wso2.com)
> email: same...@wso2.com
> blog: http://sameera.adahas.org
> twitter: https://twitter.com/sameerajayasoma
> flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
> Mobile: 0094776364456
>
> Lean . Enterprise . Middleware
>
>


-- 

*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


[Dev] ESB gmail mediator for OAuth

2014-09-15 Thread Ashan Dhananjaya
Hi,

We are working on a CEP based project and we want to use the gmail mediator
for authenticating purpose. I want know weather the gmail mediator will
support with the refresh OAuth token? If you have a working version for it
can we please have it.

Thank You!

-- 
Best Regards,
Ashan Dhananjaya Kumara
Trainee Software Engineer, WSO2 Inc.
Inc: *WSO2 Inc. *
Phone : +94715547461
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] java.net.MalformedURLException: no protocol

2014-09-15 Thread Abimaran Kugathasan
Hi Dinithi,

The error says, You haven't add the protocol for associated URL. In your
case, it should
be 
file://home/rajee/Desktop/toodledo[final]/ToodledoESBConnector/target/carbontmp1410772636719/wso2esb-4.8.1/repository/conf/etc/config-validation.xml

On Mon, Sep 15, 2014 at 3:12 PM, Dinithi De Silva  wrote:

> Hi All,
>
> While doing our integration testing to ESB Connector for ToodleDo, we got
> the following exception.
>
>
> [2014-09-15 14:47:51,995]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
>  java.net.MalformedURLException: no protocol:
>
>
> /home/rajee/Desktop/toodledo[final]/ToodledoESBConnector/target/carbontmp1410772636719/wso2esb-4.8.1/repository/conf/etc/config-validation.xml
> [2014-09-15 14:47:51,996]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
> java.net.URL.(URL.java:567)
> [2014-09-15 14:47:51,996]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
> java.net.URL.(URL.java:464)
> [2014-09-15 14:47:51,996]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
> java.net.URL.(URL.java:413)
> [2014-09-15 14:47:51,996]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
> org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
> [2014-09-15 14:47:51,996]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
> org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown
> Source)
> [2014-09-15 14:47:51,997]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
> org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> [2014-09-15 14:47:51,997]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
> org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> [2014-09-15 14:47:51,997]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
> org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
> [2014-09-15 14:47:51,997]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
> org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
> [2014-09-15 14:47:51,997]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
> org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
> [2014-09-15 14:47:51,997]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
> javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
> [2014-09-15 14:47:51,998]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
> org.wso2.carbon.core.bootup.validator.util.ConfigValidationXMLProcessor.parseConfigValidationXml(ConfigValidationXMLProcessor.java:62)
>
>
>
> [2014-09-15 14:48:06,960]  INFO
> {org.wso2.carbon.automation.core.utils.ClientConnectionUtil} -  Waiting to
> login to Carbon server...
> [2014-09-15 14:48:06,961]  INFO
> {org.wso2.carbon.automation.core.utils.ClientConnectionUtil} -
>  Successfully connected to the server on port 9443
> [2014-09-15 14:48:07,813]  INFO
> {org.apache.commons.httpclient.HttpMethodDirector} -  I/O exception
> (org.apache.axis2.AxisFault) caught when processing request: Connection has
> been shutdown: javax.net.ssl.SSLException: java.lang.RuntimeException:
> Unexpected error: java.security.InvalidAlgorithmParameterException: the
> trustAnchors parameter must be non-empty
> [2014-09-15 14:48:07,813]  INFO
> {org.apache.commons.httpclient.HttpMethodDirector} -  I/O exception
> (org.apache.axis2.AxisFault) caught when processing request: Connection has
> been shutdown: javax.net.ssl.SSLException: java.lang.RuntimeException:
> Unexpected error: java.security.InvalidAlgorithmParameterException: the
> trustAnchors parameter must be non-empty
> [2014-09-15 14:48:07,814]  INFO
> {org.apache.commons.httpclient.HttpMethodDirector} -  Retrying request
> [2014-09-15 14:48:07,814]  INFO
> {org.apache.commons.httpclient.HttpMethodDirector} -  Retrying request
>
> What could be the error?
> Can anyone please help to figure out this exception and reason for the
> exception?
>
> Thank you
> Dinithi De Silva
> Associate Software Engineer
>
> Mob: +94 716 667 655
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks
Abimaran Kugathasan

Software Engineer | WSO2 Inc
Data & APIs Technologies Team
Mobile : +94 77 1708229


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


Re: [Dev] ESB gmail mediator for OAuth

2014-09-15 Thread Malaka Silva
Hi,

I think you are referring to gmail connector?

It can be found in [1]

AFAIK this does not support refresh token. However we can try creating a
schedule service for this purpose.

[1] https://github.com/wso2-dev/esb-connectors/tree/master/gmail

On Mon, Sep 15, 2014 at 4:00 PM, Ashan Dhananjaya  wrote:

> Hi,
>
> We are working on a CEP based project and we want to use the gmail
> mediator for authenticating purpose. I want know weather the gmail mediator
> will support with the refresh OAuth token? If you have a working version
> for it can we please have it.
>
> Thank You!
>
> --
> Best Regards,
> Ashan Dhananjaya Kumara
> Trainee Software Engineer, WSO2 Inc.
> Inc: *WSO2 Inc. *
> Phone : +94715547461
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

Best Regards,

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

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


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


Re: [Dev] ESB gmail mediator for OAuth

2014-09-15 Thread Sewwandi Perera
Hi Ashan,

Gmail connector supports both username-password and username-access token
to authenticate. But not refresh token.

Thanks,
Sewwandi


On Mon, Sep 15, 2014 at 4:00 PM, Ashan Dhananjaya  wrote:

> Hi,
>
> We are working on a CEP based project and we want to use the gmail
> mediator for authenticating purpose. I want know weather the gmail mediator
> will support with the refresh OAuth token? If you have a working version
> for it can we please have it.
>
> Thank You!
>
> --
> Best Regards,
> Ashan Dhananjaya Kumara
> Trainee Software Engineer, WSO2 Inc.
> Inc: *WSO2 Inc. *
> Phone : +94715547461
>
>


-- 
Sewwandi Perera
Software Engineer

WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
mobile: +94-713765098
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] java.net.MalformedURLException: no protocol

2014-09-15 Thread Dinithi De Silva
Thank you for your response. But I am not clear with your solution. How can
I add the protocol? Do I need to add that to config-validation.xml file?

Thank you
Dinithi De Silva
Associate Software Engineer

Mob: +94 716 667 655

On Mon, Sep 15, 2014 at 4:01 PM, Abimaran Kugathasan 
wrote:

> Hi Dinithi,
>
> The error says, You haven't add the protocol for associated URL. In your
> case, it should
> be 
> file://home/rajee/Desktop/toodledo[final]/ToodledoESBConnector/target/carbontmp1410772636719/wso2esb-4.8.1/repository/conf/etc/config-validation.xml
>
> On Mon, Sep 15, 2014 at 3:12 PM, Dinithi De Silva 
> wrote:
>
>> Hi All,
>>
>> While doing our integration testing to ESB Connector for ToodleDo, we got
>> the following exception.
>>
>>
>> [2014-09-15 14:47:51,995]  INFO
>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
>>  java.net.MalformedURLException: no protocol:
>>
>>
>> /home/rajee/Desktop/toodledo[final]/ToodledoESBConnector/target/carbontmp1410772636719/wso2esb-4.8.1/repository/conf/etc/config-validation.xml
>> [2014-09-15 14:47:51,996]  INFO
>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
>> java.net.URL.(URL.java:567)
>> [2014-09-15 14:47:51,996]  INFO
>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
>> java.net.URL.(URL.java:464)
>> [2014-09-15 14:47:51,996]  INFO
>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
>> java.net.URL.(URL.java:413)
>> [2014-09-15 14:47:51,996]  INFO
>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
>> org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
>> [2014-09-15 14:47:51,996]  INFO
>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
>> org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown
>> Source)
>> [2014-09-15 14:47:51,997]  INFO
>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
>> org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
>> [2014-09-15 14:47:51,997]  INFO
>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
>> org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
>> [2014-09-15 14:47:51,997]  INFO
>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
>> org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
>> [2014-09-15 14:47:51,997]  INFO
>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
>> org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
>> [2014-09-15 14:47:51,997]  INFO
>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
>> org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
>> [2014-09-15 14:47:51,997]  INFO
>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
>> javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
>> [2014-09-15 14:47:51,998]  INFO
>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
>> org.wso2.carbon.core.bootup.validator.util.ConfigValidationXMLProcessor.parseConfigValidationXml(ConfigValidationXMLProcessor.java:62)
>>
>>
>>
>> [2014-09-15 14:48:06,960]  INFO
>> {org.wso2.carbon.automation.core.utils.ClientConnectionUtil} -  Waiting to
>> login to Carbon server...
>> [2014-09-15 14:48:06,961]  INFO
>> {org.wso2.carbon.automation.core.utils.ClientConnectionUtil} -
>>  Successfully connected to the server on port 9443
>> [2014-09-15 14:48:07,813]  INFO
>> {org.apache.commons.httpclient.HttpMethodDirector} -  I/O exception
>> (org.apache.axis2.AxisFault) caught when processing request: Connection has
>> been shutdown: javax.net.ssl.SSLException: java.lang.RuntimeException:
>> Unexpected error: java.security.InvalidAlgorithmParameterException: the
>> trustAnchors parameter must be non-empty
>> [2014-09-15 14:48:07,813]  INFO
>> {org.apache.commons.httpclient.HttpMethodDirector} -  I/O exception
>> (org.apache.axis2.AxisFault) caught when processing request: Connection has
>> been shutdown: javax.net.ssl.SSLException: java.lang.RuntimeException:
>> Unexpected error: java.security.InvalidAlgorithmParameterException: the
>> trustAnchors parameter must be non-empty
>> [2014-09-15 14:48:07,814]  INFO
>> {org.apache.commons.httpclient.HttpMethodDirector} -  Retrying request
>> [2014-09-15 14:48:07,814]  INFO
>> {org.apache.commons.httpclient.HttpMethodDirector} -  Retrying request
>>
>> What could be the error?
>> Can anyone please help to figure out this exception and reason for the
>> exception?
>>
>> Thank you
>> Dinithi De Silva
>> Associate Software Engineer
>>
>> Mob: +94 716 667 655
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Thanks
> Abimaran Kugathasan
>
> Software Engineer | WSO2 Inc
> Data & APIs Technologies Team
> Mobile : +94 77 1708229
>
> 

Re: [Dev] java.net.MalformedURLException: no protocol

2014-09-15 Thread Abimaran Kugathasan
Hi, No, file:// should be appended in front of that path.

On Mon, Sep 15, 2014 at 4:29 PM, Dinithi De Silva  wrote:

> Thank you for your response. But I am not clear with your solution. How
> can I add the protocol? Do I need to add that to config-validation.xml file?
>
> Thank you
> Dinithi De Silva
> Associate Software Engineer
>
> Mob: +94 716 667 655
>
> On Mon, Sep 15, 2014 at 4:01 PM, Abimaran Kugathasan 
> wrote:
>
>> Hi Dinithi,
>>
>> The error says, You haven't add the protocol for associated URL. In your
>> case, it should
>> be 
>> file://home/rajee/Desktop/toodledo[final]/ToodledoESBConnector/target/carbontmp1410772636719/wso2esb-4.8.1/repository/conf/etc/config-validation.xml
>>
>> On Mon, Sep 15, 2014 at 3:12 PM, Dinithi De Silva 
>> wrote:
>>
>>> Hi All,
>>>
>>> While doing our integration testing to ESB Connector for ToodleDo, we
>>> got the following exception.
>>>
>>>
>>> [2014-09-15 14:47:51,995]  INFO
>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
>>>  java.net.MalformedURLException: no protocol:
>>>
>>>
>>> /home/rajee/Desktop/toodledo[final]/ToodledoESBConnector/target/carbontmp1410772636719/wso2esb-4.8.1/repository/conf/etc/config-validation.xml
>>> [2014-09-15 14:47:51,996]  INFO
>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
>>> java.net.URL.(URL.java:567)
>>> [2014-09-15 14:47:51,996]  INFO
>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
>>> java.net.URL.(URL.java:464)
>>> [2014-09-15 14:47:51,996]  INFO
>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
>>> java.net.URL.(URL.java:413)
>>> [2014-09-15 14:47:51,996]  INFO
>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
>>> org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
>>> [2014-09-15 14:47:51,996]  INFO
>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
>>> org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown
>>> Source)
>>> [2014-09-15 14:47:51,997]  INFO
>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
>>> org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
>>> [2014-09-15 14:47:51,997]  INFO
>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
>>> org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
>>> [2014-09-15 14:47:51,997]  INFO
>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
>>> org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
>>> [2014-09-15 14:47:51,997]  INFO
>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
>>> org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
>>> [2014-09-15 14:47:51,997]  INFO
>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
>>> org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
>>> [2014-09-15 14:47:51,997]  INFO
>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
>>> javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
>>> [2014-09-15 14:47:51,998]  INFO
>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
>>> org.wso2.carbon.core.bootup.validator.util.ConfigValidationXMLProcessor.parseConfigValidationXml(ConfigValidationXMLProcessor.java:62)
>>>
>>>
>>>
>>> [2014-09-15 14:48:06,960]  INFO
>>> {org.wso2.carbon.automation.core.utils.ClientConnectionUtil} -  Waiting to
>>> login to Carbon server...
>>> [2014-09-15 14:48:06,961]  INFO
>>> {org.wso2.carbon.automation.core.utils.ClientConnectionUtil} -
>>>  Successfully connected to the server on port 9443
>>> [2014-09-15 14:48:07,813]  INFO
>>> {org.apache.commons.httpclient.HttpMethodDirector} -  I/O exception
>>> (org.apache.axis2.AxisFault) caught when processing request: Connection has
>>> been shutdown: javax.net.ssl.SSLException: java.lang.RuntimeException:
>>> Unexpected error: java.security.InvalidAlgorithmParameterException: the
>>> trustAnchors parameter must be non-empty
>>> [2014-09-15 14:48:07,813]  INFO
>>> {org.apache.commons.httpclient.HttpMethodDirector} -  I/O exception
>>> (org.apache.axis2.AxisFault) caught when processing request: Connection has
>>> been shutdown: javax.net.ssl.SSLException: java.lang.RuntimeException:
>>> Unexpected error: java.security.InvalidAlgorithmParameterException: the
>>> trustAnchors parameter must be non-empty
>>> [2014-09-15 14:48:07,814]  INFO
>>> {org.apache.commons.httpclient.HttpMethodDirector} -  Retrying request
>>> [2014-09-15 14:48:07,814]  INFO
>>> {org.apache.commons.httpclient.HttpMethodDirector} -  Retrying request
>>>
>>> What could be the error?
>>> Can anyone please help to figure out this exception and reason for the
>>> exception?
>>>
>>> Thank you
>>> Dinithi De Silva
>>> Associate Software Engineer
>>>
>>> Mob: +94 716 667 655
>>>
>>> ___
>>> Dev mai

[Dev] Commit for

2014-09-15 Thread Darshana Gunawardana
Hi Devs,

Can you please commit the patch [1] to patch0009? The relevant pull request
can be found at [2]

[1] https://wso2.org/jira/browse/IDENTITY-2722
[2] https://github.com/wso2-dev/carbon4-kernel/pull/100

Thanks,
-- 
Regards,


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

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


Re: [Dev] Updated Invitation: BPMN Explorer UI review @ Mon Sep 15, 2014 3pm - 4pm (Waruna Jayaweera)

2014-09-15 Thread Amal Gunatilake
In addition, we also discussed to add a symbol or a coloured label to
easily identify the task status (In-progress, complete, failed, etc).
Plus modify the theme to keep the footer bar stick to the end of the page.

Thank you  & Best regards,

*Amal Gunatilake*
 Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

On Mon, Sep 15, 2014 at 4:50 PM, Waruna Jayaweera  wrote:

> Hi All,
>
>- Rename Home page text as Dashboard and this should appear only for
>admin login.
>- Design the logo with wso2 colors and add link to navigate to Home
>page
>- Use primary theme for buttons with main operation(ex Complete
>button) and default theme for other sub operations.
>- Align primary button
>- Reduce space in upper side in the page
>- Add new theme to BPMN explorer web
>- We also need to have a discussion on merging both WS Human Task and
>BPMN  web Explorer.
>
> Please update the thread if there are any further updates.
>
> Thank you,
> Waruna
>
> On Fri, Sep 12, 2014 at 9:57 PM, Amal Gunatilake  wrote:
>
>> This event has been changed.
>> more details »
>> 
>> BPMN Explorer UI review
>> BPMN Explorer UI review.
>> *When*
>> Mon Sep 15, 2014 3pm – 4pm Colombo
>> *Where*
>> *Changed: *LK 6th Floor Meeting Room - Dijkstra (map
>> 
>> )
>> *Video call*
>> https://plus.google.com/hangouts/_/wso2.com/amalg
>> 
>> *Calendar*
>> Waruna Jayaweera
>> *Who*
>> •
>> Amal Gunatilake - organizer
>> •
>> Milinda Perera
>> •
>> Chanaka Jayasena
>> •
>> Chathura Ekanayake
>> •
>> Hasitha Aravinda
>> •
>> Firzhan Naqash
>> •
>> Waruna Jayaweera
>> •
>> Nandika Jayawardana
>> •
>> Thilini Ishaka
>> •
>> dev@wso2.org
>>
>> Going?   *Yes
>> 
>> - Maybe
>> 
>> - No
>> *
>> more options »
>> 
>>
>> Invitation from Google Calendar 
>>
>> You are receiving this email at the account waru...@wso2.com because you
>> are subscribed for updated invitations on calendar Waruna Jayaweera.
>>
>> To stop receiving these notifications, please log in to
>> https://www.google.com/calendar/ and change your notification settings
>> for this calendar.
>>
>
>
>
> --
> Regards,
>
> Waruna Lakshitha Jayaweera
> Software Engineer
> WSO2 Inc; http://wso2.com
> phone: +94713255198
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [APIM] Using OAuth2TokenValidationService to validate keys in API Invocations

2014-09-15 Thread Amila De Silva
Hi,

As a part of decoupling Authorization Server from API Manager, the
capability should be provided to customise token validation step. Since the
OAuth2TokenValidationService, defined in org.wso2.carbon.identity.oauth2
component already supports executing additional validation steps, this
service will be used for validating tokens for API invocations in future.

Before using this service certain changes needs to be done;

1. The existing service for Key Validation returns certain details as
subscriber, Application Tier, subscribed Tier, API Owner which are used to
Throttle API calls and to publish statistics. If we are to pass these
details when using OAuth2TokenValidationService, the response DTO
(OAuth2TokenValidationResponseDTO) should be modified to pass custom
attributes.

2. OAuth2TokenValidationService have two operations - validate and
findOAuthConsumerIfTokenIsValid. The latter, retrieves a token stored in
IDN_OAUTH2_ACCESS_TOKEN table and verifies if it’s obtained for a
registered client App. Validate operation calls this method before sending
the response. This behaviour too needs to be changed because, when using an
external Authorization Server, the token will not be stored in our side.

-- 
*Amila De Silva*

WSO2 Inc.
mobile :(+94) 775119302
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Updated Invitation: BPMN Explorer UI review @ Mon Sep 15, 2014 3pm - 4pm (Waruna Jayaweera)

2014-09-15 Thread Waruna Jayaweera
Hi All,

   - Rename Home page text as Dashboard and this should appear only for
   admin login.
   - Design the logo with wso2 colors and add link to navigate to Home page
   - Use primary theme for buttons with main operation(ex Complete button)
   and default theme for other sub operations.
   - Align primary button
   - Reduce space in upper side in the page
   - Add new theme to BPMN explorer web
   - We also need to have a discussion on merging both WS Human Task and
   BPMN  web Explorer.

Please update the thread if there are any further updates.

Thank you,
Waruna

On Fri, Sep 12, 2014 at 9:57 PM, Amal Gunatilake  wrote:

> This event has been changed.
> more details »
> 
> BPMN Explorer UI review
> BPMN Explorer UI review.
> *When*
> Mon Sep 15, 2014 3pm – 4pm Colombo
> *Where*
> *Changed: *LK 6th Floor Meeting Room - Dijkstra (map
> 
> )
> *Video call*
> https://plus.google.com/hangouts/_/wso2.com/amalg
> 
> *Calendar*
> Waruna Jayaweera
> *Who*
> •
> Amal Gunatilake - organizer
> •
> Milinda Perera
> •
> Chanaka Jayasena
> •
> Chathura Ekanayake
> •
> Hasitha Aravinda
> •
> Firzhan Naqash
> •
> Waruna Jayaweera
> •
> Nandika Jayawardana
> •
> Thilini Ishaka
> •
> dev@wso2.org
>
> Going?   *Yes
> 
> - Maybe
> 
> - No
> *
> more options »
> 
>
> Invitation from Google Calendar 
>
> You are receiving this email at the account waru...@wso2.com because you
> are subscribed for updated invitations on calendar Waruna Jayaweera.
>
> To stop receiving these notifications, please log in to
> https://www.google.com/calendar/ and change your notification settings
> for this calendar.
>



-- 
Regards,

Waruna Lakshitha Jayaweera
Software Engineer
WSO2 Inc; http://wso2.com
phone: +94713255198
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Hazelcast issue with ESB 4.9.0 M3

2014-09-15 Thread Malaka Silva
Hi,

I have done some investigation with Sameera.

The problem exists with [1]. Sameera is further investigating this.

[1]
https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/patches/patch0009/orbit/hazelcast/3.0.1.wso2v1

Best Regards,
Malaka



On Thu, Sep 11, 2014 at 10:57 PM, Kasun Indrasiri  wrote:

> Hi Malaka,
>
> Did we manage to fix this issue? Please work with the kernel team to get
> this sorted out.
>
> On Thu, Sep 11, 2014 at 1:08 PM, KasunG Gajasinghe 
> wrote:
>
>>
>>
>> Sent from my iPad
>>
>> On 2014 සැප් 10, at ප.ව. 4.58, Afkham Azeez  wrote:
>>
>> Ok, then the best bet is to compare the OSGi headers in the 2 files. Most
>> probably this is an OSGi issue.
>>
>>
>> +1. And, btw, we need to upgrade to Hz 3.2.5 before the kernel 4.3.0
>> which is due in less than two weeks afaik.
>>
>> Thanks.
>>
>>
>> On Wed, Sep 10, 2014 at 8:26 PM, Kasun Gajasinghe 
>> wrote:
>>
>>>
>>>
>>> On Wed, Sep 10, 2014 at 4:33 PM, Afkham Azeez  wrote:
>>>
 Both have the same Hz version right?


>>> Yes, 3.2.3.
>>>
>>>
 On Wed, Sep 10, 2014 at 7:53 PM, Kasun Gajasinghe 
 wrote:

> Hi Azeez,
>
> I can join via a call if time permits. Based on Malaka's findings, the
> issue could probably be in Hz 3.2.3.wso2v1 orbit bundle since the Hz
> 3.0.1.wso2v1 on patch0009 (ie. WITH hz upgrade) works.
>
> Thanks,
> KasunG
>
> On Wed, Sep 10, 2014 at 4:16 PM, Afkham Azeez  wrote:
>
>> Can we meet tomorrow to take a look at this?
>>
>> On Wed, Sep 10, 2014 at 1:48 PM, Afkham Azeez  wrote:
>>
>>> Can you check the same with a product such as AppServer as well?
>>>
>>> On Wed, Sep 10, 2014 at 1:39 PM, Malaka Silva 
>>> wrote:
>>>
 Issue is reported in [1]

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

 On Wed, Sep 10, 2014 at 9:32 AM, Malaka Silva 
 wrote:

> Tested with [1] and it has worked.
>
> [1]
> https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/patches/patch0009/orbit/hazelcast/3.0.1.wso2v1
>
> On Wed, Sep 10, 2014 at 9:00 AM, Kasun Gajasinghe  > wrote:
>
>>
>>
>> On Tue, Sep 9, 2014 at 2:01 PM, Kasun Gajasinghe > > wrote:
>>
>>>
>>> Ok.. Can you build the Hazelcast 3.0.1 from kernel patch0009 and
>>> verify whether it works with that?
>>>
>>> [1]
>>> https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/patches/patch0009/orbit/hazelcast/3.0.1.wso2v1
>>>
>>>
>> Malaka, can you try the above? Then we can verify whether
>> something is wrong with the Hz 3.2.3.wso2v1 orbit bundle.
>>
>>
>>> On Tue, Sep 9, 2014 at 1:52 PM, Malaka Silva 
>>> wrote:
>>>
 Hi KasunG,

 Can confirm this is not a configuration issue, unless
 configuration has changed?

 Reason is to verify I have downgraded to hazelcast,3.0.1.wso2v1
 manually, and it start working.

 Best Regards,
 Malaka

 On Tue, Sep 9, 2014 at 5:10 PM, Kasun Gajasinghe <
 kas...@wso2.com> wrote:

>
> Ok.. this might be a configuration issue. But we did not test
> this properly on Carbon 4.3.0 as well. Can you share you 
> configuration
> files of all the nodes? Any useful logs?
>
> On Tue, Sep 9, 2014 at 1:34 PM, Malaka Silva 
> wrote:
>
>> Hi KasunG,
>>
>> Initially I have used 127.0.0.1.
>>
>> Then I have changed it to IP. However same issue exists.
>>
>> On Tue, Sep 9, 2014 at 4:52 PM, Kasun Gajasinghe <
>> kas...@wso2.com> wrote:
>>
>>> Hi Malaka,
>>>
>>> What are the values you have used for localMemberHost? In Hz
>>> 3.2.3, you should not use 127.0.0.1 or localhost but the IP of 
>>> the machine.
>>>
>>> Regards,
>>> KasunG
>>>
>>> On Tue, Sep 9, 2014 at 1:18 PM, Afkham Azeez >> > wrote:
>>>

 KasunG,
 Can you verify this?

>>>
>>>
>>>
>>> --
>>>
>>> *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
>>>
>>>
>>>
>>
>>
>>
>> --
>>
>> Best Regards,
>>>

[Dev] Please commit patch for IDENTITY-2710

2014-09-15 Thread Tharindu Edirisinghe
Hi,

Please review and commit [1].
Modified component is
*org.wso2.carbon.user.mgt *Modified features are
*org.wso2.carbon.user.mgt.feature* and*
org.wso2.carbon.user.mgt.server.feature* *.*

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

-- 

Thanks & Best Regards,

Tharindu Edirisinghe
Software Engineer

*WSO2 Inc*
*email   : tharin...@wso2.com  *
*mobile : +94 775 181586*
*www: :http://wso2.com  *lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Link CEP event adaptor doc with BAM 2.5.0

2014-09-15 Thread Gihan Anuruddha
Hi Praneesha,

With BAM 2.5.0 we have integrated several event adaptors to BAM. At the
moment these event adaptors are available with CEP. Can you please link
existing CEP event adaptor doc [1] with BAM 2.5.0 doc space?

[1] - https://docs.wso2.com/display/CEP310/Working+with+Event+Adaptors

-- 
W.G. Gihan Anuruddha
Senior Software Engineer | WSO2, Inc.
M: +94772272595
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Content type errors in testcases

2014-09-15 Thread Elilmatha Sivanesan
We extended the test case to  Integration Base.but we are still facing the
Message builder related issue. We are sending application/json type but
server returning text/html so that axis server issues message
builder related issue


Code

 esbRequestHeadersMap.put("Accept-Charset", "UTF-8");
  esbRequestHeadersMap.put("Content-Type", "application/json");
  apiRequestHeadersMap.putAll(esbRequestHeadersMap);

  Error log

[2014-09-15 18:23:50,961]  INFO
{org.wso2.carbon.automation.core.PlatformTestManager} -  Running the test
method ---
org.wso2.carbon.connector.integration.test.event_brite.eventbriteConnectorIntegrationTest.testgetUserDetailsWithMandatoryFields

[2014-09-15 18:23:50,988]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
 [2014-09-15 18:23:50,988] DEBUG - wire >> "POST /services/event_brite
HTTP/1.1[\r][\n]"
[2014-09-15 18:23:50,989]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
 [2014-09-15 18:23:50,989] DEBUG - wire >> "Action:
urn:getUserDetails[\r][\n]"
[2014-09-15 18:23:50,989]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
 [2014-09-15 18:23:50,989] DEBUG - wire >> "Accept-Charset: UTF-8[\r][\n]"
[2014-09-15 18:23:50,989]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
 [2014-09-15 18:23:50,989] DEBUG - wire >> "Content-Type:
application/json[\r][\n]"
[2014-09-15 18:23:50,989]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
 [2014-09-15 18:23:50,989] DEBUG - wire >> "User-Agent:
Java/1.7.0_25[\r][\n]"
[2014-09-15 18:23:50,989]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
 [2014-09-15 18:23:50,989] DEBUG - wire >> "Host: localhost:8280[\r][\n]"
[2014-09-15 18:23:50,990]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
 [2014-09-15 18:23:50,989] DEBUG - wire >> "Accept: text/html, image/gif,
image/jpeg, *; q=.2, */*; q=.2[\r][\n]"
[2014-09-15 18:23:50,990]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
 [2014-09-15 18:23:50,989] DEBUG - wire >> "Connection: keep-alive[\r][\n]"
[2014-09-15 18:23:50,990]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
 [2014-09-15 18:23:50,989] DEBUG - wire >> "Content-Length: 26[\r][\n]"
[2014-09-15 18:23:50,990]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
 [2014-09-15 18:23:50,989] DEBUG - wire >> "[\r][\n]"
[2014-09-15 18:23:50,990]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
 [2014-09-15 18:23:50,989] DEBUG - wire >> "{"userId":"113395378903"}[\n]"
[2014-09-15 18:23:50,994]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
 [2014-09-15 18:23:50,994] DEBUG - headers http-incoming-1 >> POST
/services/event_brite HTTP/1.1
[2014-09-15 18:23:50,995]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
 [2014-09-15 18:23:50,995] DEBUG - headers http-incoming-1 >> Action:
urn:getUserDetails
[2014-09-15 18:23:50,995]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
 [2014-09-15 18:23:50,995] DEBUG - headers http-incoming-1 >>
Accept-Charset: UTF-8
[2014-09-15 18:23:50,995]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
 [2014-09-15 18:23:50,995] DEBUG - headers http-incoming-1 >> Content-Type:
application/json
[2014-09-15 18:23:50,995]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
 [2014-09-15 18:23:50,995] DEBUG - headers http-incoming-1 >> User-Agent:
Java/1.7.0_25
[2014-09-15 18:23:50,995]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
 [2014-09-15 18:23:50,995] DEBUG - headers http-incoming-1 >> Host:
localhost:8280
[2014-09-15 18:23:50,996]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
 [2014-09-15 18:23:50,995] DEBUG - headers http-incoming-1 >> Accept:
text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
[2014-09-15 18:23:50,996]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
 [2014-09-15 18:23:50,995] DEBUG - headers http-incoming-1 >> Connection:
keep-alive
[2014-09-15 18:23:50,996]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
 [2014-09-15 18:23:50,995] DEBUG - headers http-incoming-1 >>
Content-Length: 26
[2014-09-15 18:23:51,043]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
 [2014-09-15 18:23:51,043] ERROR - SynapseJsonPath #stringValueOf. Error
evaluating JSON Path <$.userId>. Returning empty result. Error>>> Invalid
container object



-- 
*S.Elilmatha*
Associative Software Engineer,

WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

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


Re: [Dev] Content type errors in testcases

2014-09-15 Thread Udara Liyanage
Hi,

Better move to dev list I guess.



Touched, not typed. Erroneous words are a feature, not a typo.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Content type errors in testcases

2014-09-15 Thread Udara Liyanage
Hi,

Sorry, listed under wrong label. Please ignore last email.

Touched, not typed. Erroneous words are a feature, not a typo.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ESB Sample 50: POX to SOAP conversion : Error in synapse configuration

2014-09-15 Thread Amalka Subasinghe
This is already fixed
https://wso2.org/jira/browse/ESBJAVA-3202

On Mon, Sep 15, 2014 at 11:23 AM, Saneth Dharmakeerthi 
wrote:

> HI All,
>
> There is small mistake in synapse configuration for Sample 50(
> synapse_sample_50.xml is available in the /repository/samples
> directory).
>
> 
> Change the regex in  above line as following (** is missing in *regex)
> 
>
>
>
> Thanks and Best Regards,
>
> Saneth Dharmakeerthi
> Senior Software Engineer
> WSO2, Inc.
> Mobile: +94772325511
>



-- 

Amalka Subasinghe

Senior Software Engineer
WSO2 Inc.
Mobile: +94 77 9401267
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] API Manager test migration to test framework 4.3.1

2014-09-15 Thread Amalka Subasinghe
Hi,

I have finished migrating APIM tests to new framework and fixed the failing
test cases.
[Used the APIM 1.7.0 released pack for fixing the test cases, since the
product-apim build is not stable]

Please review and merge the pull request
https://github.com/wso2-dev/product-apim/pull/4

Thanks
Amalka

On Tue, Sep 2, 2014 at 9:20 AM, Amalka Subasinghe  wrote:

> Hi,
>
> I have started $subject, will update the progress.
>
> Thanks
> Amalka
>
>


-- 

Amalka Subasinghe

Senior Software Engineer
WSO2 Inc.
Mobile: +94 77 9401267
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ESB Sample 50: POX to SOAP conversion : Error in synapse configuration

2014-09-15 Thread Saneth Dharmakeerthi
Hi,

 Current available version is 4.8.1 so change has to be done manually.  fix
version for this issue is 4.9.0.



Thanks and Best Regards,

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

On Mon, Sep 15, 2014 at 8:28 PM, Amalka Subasinghe  wrote:

> This is already fixed
> https://wso2.org/jira/browse/ESBJAVA-3202
>
> On Mon, Sep 15, 2014 at 11:23 AM, Saneth Dharmakeerthi 
> wrote:
>
>> HI All,
>>
>> There is small mistake in synapse configuration for Sample 50(
>> synapse_sample_50.xml is available in the /repository/samples
>> directory).
>>
>> 
>> Change the regex in  above line as following (** is missing in *regex)
>> 
>>
>>
>>
>> Thanks and Best Regards,
>>
>> Saneth Dharmakeerthi
>> Senior Software Engineer
>> WSO2, Inc.
>> Mobile: +94772325511
>>
>
>
>
> --
>
> Amalka Subasinghe
>
> Senior Software Engineer
> WSO2 Inc.
> Mobile: +94 77 9401267
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [App Factory Training Project] Build a development statistics Dashboard for Apps in App Factory

2014-09-15 Thread Pirinthapan Mahendran
Hi Gayan,

Now I'm writing Hive script to collect the necessary commit data from
Cassandra to MYSQL.  Before I started to write this I tested the existing
hive script  with the name "AppCommits" in BAM server. For this I did the
following steps:

1. I created an application in App Factory.
2. Cloned the application to my PC.
3. Made some changes and did some commits.
4. Then I accessed the GitBlit server in the browser. It shows all the
commit details.
5. Then I executed the hive script "AppCommits" from BAM management console.
6. Then I checked the mysql database. The table "APP_COMMITS" is there.
7. But when I did some queries from that table, it returns empty set.

According to my understanding whenever a commit happens the commit data
will be published to the BAM server by the script [1].

Could you please make me clear about whether my understandings and the
procedures, I did, are correct. If those are correct could you please help
me to find out, why the data is not in mysql.

1.
https://svn.wso2.org/repos/wso2/scratch/appfactory_2.0.0/products/appfactory/2.0.1/vmware/appfactory_deployment_s4/resources/configs/jenkins.groovy

Thanks.



Mahendran Pirinthapan
Software Engineer | WSO2 Inc.
Mobile +94772378732.

On Thu, Sep 11, 2014 at 1:21 PM, Iqbal Irham  wrote:

> Hi,
>
> Update on the project below.
>
> We have showed the hardcoded diagrams(bar chart for commit logs and pie
> chat for build statistics) to Dimuthu and Ajanthan and got their feedback.
>
> According to that,
>
>1. Application dashboard will have commit logs bar chart with last 2
>week data.
>2. Detail page will have a detail bar chart for commit logs and a pie
>chart for build statistics.
>3. Both graphs will have options to choose the time period of the
>graph.
>4. Detail page bar chart will have zooming option to get the accurate
>value of the column.
>
>
> Thanks,
>
> On Tue, Sep 9, 2014 at 6:05 PM, Vimalanathan Rajeevan 
> wrote:
>
>> Hi Pirinthapan,
>>
>> I would like to give some feedbacks on your design,
>> [1] Giving boarders for each graphs and tables
>> [2] You can increase the font size for headings (ex. "Build Statistics",
>> "Weekly commit logs")
>> [3] Bring the contents of browser to central position without align it to
>> left [1]
>> [4] Give some spaces at top before starting contents
>> [4] You can use more attractive 3D graph designing tools
>>
>> Best Regards,
>> V.Rajeevan
>> Software Engineer,
>> WSO2 Inc. :http://wso2.com
>>
>> Mobile : +94 773090875
>> Email : rajeev...@wso2.com
>>
>> On Sat, Sep 6, 2014 at 1:04 PM, Pirinthapan Mahendran <
>> pirintha...@wso2.com> wrote:
>>
>>> Hi All,
>>>
>>> We have come up with a mockup design for showing the 'commit logs
>>> statistics' [1] and 'build statistics' [2] in App Factory. We would like to
>>> have your feed backs on these designs.
>>>
>>> 1.
>>> https://www.justinmind.com/usernote/tests/12597285/12597288/12597302/index.html#/screens/d12245cc-1680-458d-89dd-4f0d7fb22724
>>>
>>> 2.
>>> https://www.justinmind.com/usernote/tests/12597285/12597288/12597486/index.html#/screens/d12245cc-1680-458d-89dd-4f0d7fb22724
>>>
>>> Thanks.
>>>
>>>
>>>
>>> Mahendran Pirinthapan
>>> Software Engineer | WSO2 Inc.
>>> Mobile +94772378732.
>>>
>>>
>>> On Fri, Sep 5, 2014 at 9:38 AM, Gayan Dhanushka  wrote:
>>>
 Hi Iqbal,

 Currently we have START, SUCCESS and FAIL status. If you closely have a
 look you can see that *appBuildStream *is a private variable which
 defines a data stream, not a method. For each of these data stream
 definitions, there are publish methods in the BamDataPublisher.java
 class.

 Thanks
 Gayan


 On Thu, Sep 4, 2014 at 2:22 PM, Iqbal Irham  wrote:

> Hi Gayan,
>
> Thank you very much for the reply.
> We are in the process of identifying the Build statuses which we are
> going to get from BAM.
> In the java code(BamDataPublisher.java) i found a method
> *appBuildStream.*
> As i highlighted below there is a String for Status.
> Please help us to find out what are the status values(i.e
> success,fail,Pending,Aborted) it's publishing.
>
> 'payloadData':["+
> "{'name':'applicationName','type':'string'},"+
> "{'name':'applicationKey','type':'string'},"+
> "{'name':'applicationVersion','type':'string'},"+
> "{'name':'timeStamp','type':'double'},"+
> "{'name':'tenantId', 'type':'string'},"+
> "*{'name':'status', 'type':'string'}*,"+
> "{'name':'buildId', 'type':'string'},"+
> "{'name':'revision', 'type':'string'},"+
> "{'name':'user',  'type':'string' }"+
> "];
>
> Thanks
>
>
>
> On Thu, Sep 4, 2014 at 1:57 PM, Gayan Dhanushka 
> wrote:
>
>> Hi Pirinthapan,
>>
>> I believe you want to visualize t

Re: [Dev] [App Factory Training Project] Build a development statistics Dashboard for Apps in App Factory

2014-09-15 Thread Gayan Dhanushka
Hi Pirinthapan,

What you have done is correct. But in order to publish commit details to
BAM from the gitblit server you need to enable data publishing in the
gitblit server.

Please locate and open the gitblit.properties file resides within
/data folder. There is a property at the bottom called
"publishToBAM". You need to assign true to this property and restart the
server.

This should solve your problem.

Thanks
Gayan


On Mon, Sep 15, 2014 at 9:25 PM, Pirinthapan Mahendran  wrote:

> Hi Gayan,
>
> Now I'm writing Hive script to collect the necessary commit data from
> Cassandra to MYSQL.  Before I started to write this I tested the existing
> hive script  with the name "AppCommits" in BAM server. For this I did the
> following steps:
>
> 1. I created an application in App Factory.
> 2. Cloned the application to my PC.
> 3. Made some changes and did some commits.
> 4. Then I accessed the GitBlit server in the browser. It shows all the
> commit details.
> 5. Then I executed the hive script "AppCommits" from BAM management
> console.
> 6. Then I checked the mysql database. The table "APP_COMMITS" is there.
> 7. But when I did some queries from that table, it returns empty set.
>
> According to my understanding whenever a commit happens the commit data
> will be published to the BAM server by the script [1].
>
> Could you please make me clear about whether my understandings and the
> procedures, I did, are correct. If those are correct could you please help
> me to find out, why the data is not in mysql.
>
> 1.
> https://svn.wso2.org/repos/wso2/scratch/appfactory_2.0.0/products/appfactory/2.0.1/vmware/appfactory_deployment_s4/resources/configs/jenkins.groovy
>
> Thanks.
>
>
>
> Mahendran Pirinthapan
> Software Engineer | WSO2 Inc.
> Mobile +94772378732.
>
> On Thu, Sep 11, 2014 at 1:21 PM, Iqbal Irham  wrote:
>
>> Hi,
>>
>> Update on the project below.
>>
>> We have showed the hardcoded diagrams(bar chart for commit logs and pie
>> chat for build statistics) to Dimuthu and Ajanthan and got their feedback.
>>
>> According to that,
>>
>>1. Application dashboard will have commit logs bar chart with last 2
>>week data.
>>2. Detail page will have a detail bar chart for commit logs and a pie
>>chart for build statistics.
>>3. Both graphs will have options to choose the time period of the
>>graph.
>>4. Detail page bar chart will have zooming option to get the accurate
>>value of the column.
>>
>>
>> Thanks,
>>
>> On Tue, Sep 9, 2014 at 6:05 PM, Vimalanathan Rajeevan > > wrote:
>>
>>> Hi Pirinthapan,
>>>
>>> I would like to give some feedbacks on your design,
>>> [1] Giving boarders for each graphs and tables
>>> [2] You can increase the font size for headings (ex. "Build
>>> Statistics", "Weekly commit logs")
>>> [3] Bring the contents of browser to central position without align it
>>> to left [1]
>>> [4] Give some spaces at top before starting contents
>>> [4] You can use more attractive 3D graph designing tools
>>>
>>> Best Regards,
>>> V.Rajeevan
>>> Software Engineer,
>>> WSO2 Inc. :http://wso2.com
>>>
>>> Mobile : +94 773090875
>>> Email : rajeev...@wso2.com
>>>
>>> On Sat, Sep 6, 2014 at 1:04 PM, Pirinthapan Mahendran <
>>> pirintha...@wso2.com> wrote:
>>>
 Hi All,

 We have come up with a mockup design for showing the 'commit logs
 statistics' [1] and 'build statistics' [2] in App Factory. We would like to
 have your feed backs on these designs.

 1.
 https://www.justinmind.com/usernote/tests/12597285/12597288/12597302/index.html#/screens/d12245cc-1680-458d-89dd-4f0d7fb22724

 2.
 https://www.justinmind.com/usernote/tests/12597285/12597288/12597486/index.html#/screens/d12245cc-1680-458d-89dd-4f0d7fb22724

 Thanks.



 Mahendran Pirinthapan
 Software Engineer | WSO2 Inc.
 Mobile +94772378732.


 On Fri, Sep 5, 2014 at 9:38 AM, Gayan Dhanushka 
 wrote:

> Hi Iqbal,
>
> Currently we have START, SUCCESS and FAIL status. If you closely have
> a look you can see that *appBuildStream *is a private variable which
> defines a data stream, not a method. For each of these data stream
> definitions, there are publish methods in the BamDataPublisher.java
> class.
>
> Thanks
> Gayan
>
>
> On Thu, Sep 4, 2014 at 2:22 PM, Iqbal Irham  wrote:
>
>> Hi Gayan,
>>
>> Thank you very much for the reply.
>> We are in the process of identifying the Build statuses which we are
>> going to get from BAM.
>> In the java code(BamDataPublisher.java) i found a method
>> *appBuildStream.*
>> As i highlighted below there is a String for Status.
>> Please help us to find out what are the status values(i.e
>> success,fail,Pending,Aborted) it's publishing.
>>
>> 'payloadData':["+
>> "{'name':'applicationName','type':'string'},"+
>> "{'name':'applicationKey','type':'string'}

Re: [Dev] [App Factory Training Project] Build a development statistics Dashboard for Apps in App Factory

2014-09-15 Thread Pirinthapan Mahendran
Thanks Gayan. Now its working.



Mahendran Pirinthapan
Software Engineer | WSO2 Inc.
Mobile +94772378732.

On Mon, Sep 15, 2014 at 9:40 PM, Gayan Dhanushka  wrote:

> Hi Pirinthapan,
>
> What you have done is correct. But in order to publish commit details to
> BAM from the gitblit server you need to enable data publishing in the
> gitblit server.
>
> Please locate and open the gitblit.properties file resides within
> /data folder. There is a property at the bottom called
> "publishToBAM". You need to assign true to this property and restart the
> server.
>
> This should solve your problem.
>
> Thanks
> Gayan
>
>
> On Mon, Sep 15, 2014 at 9:25 PM, Pirinthapan Mahendran <
> pirintha...@wso2.com> wrote:
>
>> Hi Gayan,
>>
>> Now I'm writing Hive script to collect the necessary commit data from
>> Cassandra to MYSQL.  Before I started to write this I tested the existing
>> hive script  with the name "AppCommits" in BAM server. For this I did
>> the following steps:
>>
>> 1. I created an application in App Factory.
>> 2. Cloned the application to my PC.
>> 3. Made some changes and did some commits.
>> 4. Then I accessed the GitBlit server in the browser. It shows all the
>> commit details.
>> 5. Then I executed the hive script "AppCommits" from BAM management
>> console.
>> 6. Then I checked the mysql database. The table "APP_COMMITS" is there.
>> 7. But when I did some queries from that table, it returns empty set.
>>
>> According to my understanding whenever a commit happens the commit data
>> will be published to the BAM server by the script [1].
>>
>> Could you please make me clear about whether my understandings and the
>> procedures, I did, are correct. If those are correct could you please help
>> me to find out, why the data is not in mysql.
>>
>> 1.
>> https://svn.wso2.org/repos/wso2/scratch/appfactory_2.0.0/products/appfactory/2.0.1/vmware/appfactory_deployment_s4/resources/configs/jenkins.groovy
>>
>> Thanks.
>>
>>
>>
>> Mahendran Pirinthapan
>> Software Engineer | WSO2 Inc.
>> Mobile +94772378732.
>>
>> On Thu, Sep 11, 2014 at 1:21 PM, Iqbal Irham  wrote:
>>
>>> Hi,
>>>
>>> Update on the project below.
>>>
>>> We have showed the hardcoded diagrams(bar chart for commit logs and pie
>>> chat for build statistics) to Dimuthu and Ajanthan and got their feedback.
>>>
>>> According to that,
>>>
>>>1. Application dashboard will have commit logs bar chart with last 2
>>>week data.
>>>2. Detail page will have a detail bar chart for commit logs and a
>>>pie chart for build statistics.
>>>3. Both graphs will have options to choose the time period of the
>>>graph.
>>>4. Detail page bar chart will have zooming option to get the
>>>accurate value of the column.
>>>
>>>
>>> Thanks,
>>>
>>> On Tue, Sep 9, 2014 at 6:05 PM, Vimalanathan Rajeevan <
>>> rajeev...@wso2.com> wrote:
>>>
 Hi Pirinthapan,

 I would like to give some feedbacks on your design,
 [1] Giving boarders for each graphs and tables
 [2] You can increase the font size for headings (ex. "Build
 Statistics", "Weekly commit logs")
 [3] Bring the contents of browser to central position without align it
 to left [1]
 [4] Give some spaces at top before starting contents
 [4] You can use more attractive 3D graph designing tools

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

 Mobile : +94 773090875
 Email : rajeev...@wso2.com

 On Sat, Sep 6, 2014 at 1:04 PM, Pirinthapan Mahendran <
 pirintha...@wso2.com> wrote:

> Hi All,
>
> We have come up with a mockup design for showing the 'commit logs
> statistics' [1] and 'build statistics' [2] in App Factory. We would like 
> to
> have your feed backs on these designs.
>
> 1.
> https://www.justinmind.com/usernote/tests/12597285/12597288/12597302/index.html#/screens/d12245cc-1680-458d-89dd-4f0d7fb22724
>
> 2.
> https://www.justinmind.com/usernote/tests/12597285/12597288/12597486/index.html#/screens/d12245cc-1680-458d-89dd-4f0d7fb22724
>
> Thanks.
>
>
>
> Mahendran Pirinthapan
> Software Engineer | WSO2 Inc.
> Mobile +94772378732.
>
>
> On Fri, Sep 5, 2014 at 9:38 AM, Gayan Dhanushka 
> wrote:
>
>> Hi Iqbal,
>>
>> Currently we have START, SUCCESS and FAIL status. If you closely have
>> a look you can see that *appBuildStream *is a private variable which
>> defines a data stream, not a method. For each of these data stream
>> definitions, there are publish methods in the BamDataPublisher.java
>> class.
>>
>> Thanks
>> Gayan
>>
>>
>> On Thu, Sep 4, 2014 at 2:22 PM, Iqbal Irham  wrote:
>>
>>> Hi Gayan,
>>>
>>> Thank you very much for the reply.
>>> We are in the process of identifying the Build statuses which we are
>>> going to get from BAM.
>>> In the java code(BamDataPublisher.java) i found a m

[Dev] [IS] What is the usage of "Internal Role" in Identity Server Users and Roles

2014-09-15 Thread Tharindu Edirisinghe
Hi,

I'm working on issue [1 ] and
noticed following.

When registering a Service Provider, it creates an internal role with the
same name given for SP. If we already have an internal role with the name
given for the new SP, we cannot register the SP as the role creation for SP
fails.

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

-- 

Thanks & Best Regards,

Tharindu Edirisinghe
Software Engineer

*WSO2 Inc*
*email   : tharin...@wso2.com  *
*mobile : +94 775 181586*
*www: :http://wso2.com  *lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [SCIM User, Group filtering syntaxes are different than specification]

2014-09-15 Thread Gayan Gunawardana
Hi,

According current SCIM implementation of WSO2 Identity Server (IS 5.0) user
and group filtering commands will be [1]

curl -v -k --user admin:admin https:
//localhost:9443/wso2/scim/Users?filter=userNameEqadam

curl -v -k --user admin:admin https:
//localhost:9443/wso2/scim/Groups?filter=displayNameEqengineer


But specification [2]  expect something like

filter=userName Eq "john"

Same Issue was reported here too [3]

Shall we fixed that according to specification in future releases

WDYT?



[1]
https://docs.wso2.com/display/IS500/WSO2+Identity+Server+as+a+SCIM+Service+Provider
[2] http://www.simplecloud.info/specs/draft-scim-api-01.html#query-resources
[3]
http://stackoverflow.com/questions/19992960/wso2-identity-server-scim-filtering


-- 
Gayan Gunawardana
Software Engineer; WSO2 Inc.; http://wso2.com/
Email: ga...@wso2.com
Mobile: +94 (71) 8020933
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [SCIM User, Group filtering syntaxes are different than specification]

2014-09-15 Thread Ishara Karunarathna
Hi,

On Mon, Sep 15, 2014 at 10:16 AM, Gayan Gunawardana  wrote:

> Hi,
>
> According current SCIM implementation of WSO2 Identity Server (IS 5.0)
> user and group filtering commands will be [1]
>
> curl -v -k --user admin:admin https:
> //localhost:9443/wso2/scim/Users?filter=userNameEqadam
>
> curl -v -k --user admin:admin https:
> //localhost:9443/wso2/scim/Groups?filter=displayNameEqengineer
>
>
> But specification [2]  expect something like
>
> filter=userName Eq "john"
>
> +1
We only support filtering with equal, If have time better to implement
contains too.

Thanks,
Ishara

>
> Same Issue was reported here too [3]
>
> Shall we fixed that according to specification in future releases
>
> WDYT?
>
>
>
> [1]
> https://docs.wso2.com/display/IS500/WSO2+Identity+Server+as+a+SCIM+Service+Provider
> [2]
> http://www.simplecloud.info/specs/draft-scim-api-01.html#query-resources
> [3]
> http://stackoverflow.com/questions/19992960/wso2-identity-server-scim-filtering
>
>
> --
> Gayan Gunawardana
> Software Engineer; WSO2 Inc.; http://wso2.com/
> Email: ga...@wso2.com
> Mobile: +94 (71) 8020933
>



-- 
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] [IS] What is the usage of "Internal Role" in Identity Server Users and Roles

2014-09-15 Thread Suresh Attanayaka
However in the role of the application, those have edit permission to the
application. That is why we have to be careful here. First question is, how
we can get a role with the same name here. Three options here.

1. If role exist, don't try to create a new, use the existing - Issue :
Users who were in that role inherently gets edit permissions to the
application which might not be the expected behavior.

2. If role exist, fail application creating. Log a proper Error message in
the log file.

3. Allow the role name to be specified in the SP Config. So this will be
configurable to user an existing role or create a new role if it doesn't
exist.

Thanks,
-Suresh

On Mon, Sep 15, 2014 at 9:31 AM, Tharindu Edirisinghe 
wrote:

> Hi,
>
> I'm working on issue [1 ] and
> noticed following.
>
> When registering a Service Provider, it creates an internal role with the
> same name given for SP. If we already have an internal role with the name
> given for the new SP, we cannot register the SP as the role creation for SP
> fails.
>
> [1] https://wso2.org/jira/browse/IDENTITY-2717
>
> --
>
> Thanks & Best Regards,
>
> Tharindu Edirisinghe
> Software Engineer
>
> *WSO2 Inc*
> *email   : tharin...@wso2.com  *
> *mobile : +94 775 181586*
> *www: :http://wso2.com  *lean . enterprise . middleware
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Suresh Attanayake
Senior Software Engineer; WSO2 Inc. http://wso2.com/
Blog : http://sureshatt.blogspot.com/
Twitter : https://twitter.com/sureshatt
LinkedIn : http://lk.linkedin.com/in/sureshatt
Mobile : +94755012060
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Link CEP event adaptor doc with BAM 2.5.0

2014-09-15 Thread Praneesha Chandrasiri
Hi Gihan,

Sure. I will work on this.

Thanks!

On Mon, Sep 15, 2014 at 6:35 PM, Gihan Anuruddha  wrote:

> Hi Praneesha,
>
> With BAM 2.5.0 we have integrated several event adaptors to BAM. At the
> moment these event adaptors are available with CEP. Can you please link
> existing CEP event adaptor doc [1] with BAM 2.5.0 doc space?
>
> [1] - https://docs.wso2.com/display/CEP310/Working+with+Event+Adaptors
>
> --
> W.G. Gihan Anuruddha
> Senior Software Engineer | WSO2, Inc.
> M: +94772272595
>



-- 
Thanks & Best Regards,
*Praneesha Chandrasiri*
*Technical Writer*
*WSO2 Inc. *
*Mobile: +(94) 718156888*
*E-mail: pranee...@wso2.com *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] EAM 1.0.0 Alpha Released

2014-09-15 Thread Dinusha Senanayaka
Hi All,

WSO2 EAM 1.0.0 Alpha is available at [1]

[1] http://builder1.us1.wso2.org/~appm/alpha/wso2eam-1.0.0.zip


Regards,
Dinusha.

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


Re: [Dev] Updated Invitation: Code Review - UI Testcases WSO2 EAM @ Mon Sep 15, 2014 3:30pm - 4pm (Dinusha Senanayaka)

2014-09-15 Thread Dinusha Senanayaka
Code review notes :


ApplicationCreationTestCase.java ->
* appURL need to read from config file.
* throttling tier need to be taken as method parameter , instead of hard
cording .
* for the SP creation, use read properties from api-manager.xml
* WireMonitor & WireMonitorServer.java remove those classes & use them test
framework.
* add property provided by test automation framework to configure whether
to run ui test or not. (This is useful when we running in a builder machine)
* testApplicationSubscription() -> periodically check for the existence of
application only for 1min & if application not appeared within that time
fail the test. otherwise test will run forever!.

* use the exact xpath for user name validation in ssologinTestCase
* ssoLogoutTestCase -> call to ssologin & verify for false to ensure
sessions get cleared properly.
* user assetfalse instead of assertTrue(!(Boolean))

* Todo from 1st code review :
SSO login/ logout using backend APIs
JWT token -> role validation

Regards,
Dinusha.

On Mon, Sep 15, 2014 at 2:33 PM, Kasun Dissanayake  wrote:

> This event has been changed.
> more details »
> 
> Code Review - UI Testcases WSO2 EAM
> *When*
> *Changed: *Mon Sep 15, 2014 3:30pm – 4pm Colombo
> *Where*
> WSO2 Inc., LK 3rd Floor Meeting Room (map
> 
> )
> *Video call*
> https://plus.google.com/hangouts/_/wso2.com/kasunu
> 
> *Calendar*
> Dinusha Senanayaka
> *Who*
> •
> Kasun Dissanayake - organizer
> •
> Rushmin Fernando
> •
> Ruwan Yatawara
> •
> Rajeeva Uthayasangar
> •
> Dinusha Senanayaka
> •
> Nuwan Wimalasekara
> •
> Nuwan Dias
> •
> dev@wso2.org
> •
> Krishantha Samaraweera
> •
> Thilini Shanika
> •
> Sumedha Rubasinghe
> •
> Jenananthan Yogendran
>
> Going?   *Yes
> 
> - Maybe
> 
> - No
> *
> more options »
> 
>
> Invitation from Google Calendar 
>
> You are receiving this email at the account dinu...@wso2.com because you
> are subscribed for updated invitations on calendar Dinusha Senanayaka.
>
> To stop receiving these notifications, please log in to
> https://www.google.com/calendar/ and change your notification settings
> for this calendar.
>



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


Re: [Dev] Clarification on IS sample is needed - Configuring SAML2 SSO

2014-09-15 Thread Prasad Tissera
When a service provider created in IS, a role is created for that service
provider. If you want only user1 to access the app1 you can assign the role
only to the user1, and remove the role from super admin role list.



On Mon, Sep 15, 2014 at 4:34 AM, Asok Perera  wrote:

> Thank you Pushpalanka !
> But there is another clarification needed.
> What if a user needs to isolate two web apps ? Meaning, what if there
> 'cannot' be a super user sort of a logging (admin credentials) for two web
> apps which is secured through a single IS ?
>
> BR
>
>
>
> *Asok Aravinda Perera*
> Software Engineer
> WSO2, Inc.;http://wso2.com/
> 
> lean.enterprise.middleware
>
> Mobile: +94722241032
>
> On Fri, Sep 12, 2014 at 10:15 AM, Pushpalanka Jayawardhana  > wrote:
>
>> Hi Asok,
>>
>> This comes with the behavior of SSO.
>> When you register travelocity.com as a service provider in IS and point
>> travelocity.com webapp to use IS as the identity provider,
>> authentication process of webapp is totally handled by IS.
>> Even the page you enter username/password is submitted by IS. Webapp does
>> not have any idea on the valid user name and password of the user trying to
>> login as all these details are captured and authenticated at IS side. IS
>> then just let the webapp knows whether the user is authenticated or not.
>>
>> This helps to keep the user passwords in a secured centralized place than
>> saving it in each webapp and helps to provide a better user experience by
>> not asking users to type username/password several times(If you are logged
>> into IS, you are automatically logged into travelocity.com as well.).
>>
>> Therefore any other user in IS also can login to travelocity.com webapp
>> with his/her credentials.
>> This article[1] will provide more insight.
>> Hope this helps.
>>
>> [1] -
>> http://wso2.com/library/articles/2010/07/saml2-web-browser-based-sso-wso2-identity-server/
>>
>> 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, Sep 12, 2014 at 9:54 AM, Asok Perera  wrote:
>>
>>> Hi,
>>>
>>> This is a question occurred to me while working on 'Configuring SAML2
>>> SSO' sample in Identity server. (link below)
>>> https://docs.wso2.com/display/IS500/Configuring+SAML2+SSO
>>>
>>> According to that sample, a user can log into service provider's
>>> site/portal with Identity server's admin credentials. In this case, one can
>>> use admin/admin username/password to log into travelocity.com.
>>>
>>> The question is, can I assume that IS admin is treated as a super user
>>> who can log into all the service providers' web apps / services ?
>>> If not, can somebody explain me why we can use admin credentials in the
>>> above sample ?
>>>
>>> BR
>>>
>>> *Asok Aravinda Perera*
>>> Software Engineer
>>> WSO2, Inc.;http://wso2.com/
>>> 
>>> lean.enterprise.middleware
>>>
>>> Mobile: +94722241032
>>>
>>> ___
>>> 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
>
>


-- 
Prasad Tissera
Software Engineer.
Mobile : +94777223444
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS] What is the usage of "Internal Role" in Identity Server Users and Roles

2014-09-15 Thread Prasad Tissera
[1] may help you on this.

[1].
http://stackoverflow.com/questions/24830564/wso2-identity-server-internal-role-vs-role-in-external

On Mon, Sep 15, 2014 at 12:31 PM, Tharindu Edirisinghe 
wrote:

> Hi,
>
> I'm working on issue [1 ] and
> noticed following.
>
> When registering a Service Provider, it creates an internal role with the
> same name given for SP. If we already have an internal role with the name
> given for the new SP, we cannot register the SP as the role creation for SP
> fails.
>
> [1] https://wso2.org/jira/browse/IDENTITY-2717
>
> --
>
> Thanks & Best Regards,
>
> Tharindu Edirisinghe
> Software Engineer
>
> *WSO2 Inc*
> *email   : tharin...@wso2.com  *
> *mobile : +94 775 181586*
> *www: :http://wso2.com  *lean . enterprise . middleware
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Prasad Tissera
Software Engineer.
Mobile : +94777223444
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev