[Carbon-dev] BRS 2.1.0 stateful services are giving invalid responses.

2015-04-17 Thread Manjula Rathnayake
Hi all,

When we try out https://docs.wso2.com/display/BRS210/Banking+Service
sample, we get invalid responses( multiple deposit accept elements).

Have we observed this behavior before? IMO, the deposit accept objects
needs to removed from working memory.

thank you.

-- 
Manjula Rathnayaka
Software Engineer
WSO2, Inc.
Mobile:+94 77 743 1987
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


[Dev] BRS 2.1.0 stateful services are giving invalid responses

2015-04-17 Thread Manjula Rathnayake
Hi all,

When we try out https://docs.wso2.com/display/BRS210/Banking+Service sample,
we get invalid responses( multiple deposit accept elements).

Have we observed this behavior before? IMO, the deposit accept objects
needs to removed from working memory.

thank you.

-- 
Manjula Rathnayaka
Software Engineer
WSO2, Inc.
Mobile:+94 77 743 1987
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] API Manager - deleting an API

2015-04-17 Thread Chalitha Kulathunga
Hi Thilini  Harsha,

@Thilini - Remove an API needs the user to be authenticated. I'm looking
for a solution that doesn't require user authentication. The idea is to
delete APIs which belongs to a particular tenant from the out side, through
an existing or a modified method call.

@Harsha - sorry I was wrong previously, the impl package is exported but
the  *APIProviderImpl.java *class cannot be accessed out side the package
since it is not public. The class also contains the following description:

/**
 * This class provides the core API provider functionality. It is
implemented in a very
 * self-contained and 'pure' manner, without taking requirements like
security into account,
 * which are subject to frequent change. Due to this 'pure' nature and
the significance of
 * the class to the overall API management functionality, the
visibility of the class has
 * been reduced to package level. This means we can still use it for
internal purposes and
 * possibly even extend it, but it's totally off the limits of the
users. Users wishing to
 * programmatically access this functionality should use one of the
extensions of this
 * class which is visible to them. These extensions may add additional
features like
 * security to this class.
 */


Thank you very much for your suggestions.
Regards,





On Thu, Apr 16, 2015 at 8:04 PM, Harsha Kumara hars...@wso2.com wrote:

 Hi Chalitha,

 Which version that you tried to use of apimgt.impl dependency? According
 to [1] and [2], the impl package has exported. You won't be able to use the
 APIMgtDAO, because deleting API involve deleting resources from registry as
 well.

 [1] -
 https://github.com/wso2/carbon-apimgt/blob/master/components/apimgt/org.wso2.carbon.apimgt.impl/pom.xml#L214
 [2] -
 https://svn.wso2.org/repos/wso2/carbon/platform/trunk/components/apimgt/org.wso2.carbon.apimgt.impl/pom.xml

 Thanks,
 Harsha

 On Thu, Apr 16, 2015 at 7:08 PM, Chalitha Kulathunga chalit...@wso2.com
 wrote:

 Hi all,

 I'm looking for a proper way(methods) to *delete an published API and
 all its data* in WSO2 API Manager.

 The *deleteAPI* method available in *APIProviderImpl.java* class in
 org.wso2.carbon.apimgt.impl package(bundle) is not public and also not
 exported in the pom.xml. Therefore, it cannot be accessed from the outside.

 *APIMgtDAO.java* class in org.wso2.carbon.apimgt.impl.dao package  also
 provides a similar but public method however I'm not certain whether it is
 suitable for my purpose. Could someone please recommend me a standard way
 to delete an API.


 Thanks  Regards

 --
 *Chalitha Sanyuja Kulathunga*
 *Software Engineer*
 WSO2 Inc.; http://wso2.com
 email: chalit...@wso2.com cell: +94 77 5927581 %2B94%2077%207779495

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




 --
 Harsha Kumara
 Software Engineer, WSO2 Inc.
 Mobile: +94775505618
 Blog:harshcreationz.blogspot.com




-- 
*Chalitha Sanyuja Kulathunga*
*Software Engineer*
WSO2 Inc.; http://wso2.com
email: chalit...@wso2.com cell: +94 77 5927581 %2B94%2077%207779495
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] API Manager - deleting an API

2015-04-17 Thread Chalitha Kulathunga
Hi Thilini  Harsha,

@Thilini - Remove an API needs the user to be authenticated. I'm looking
for a solution that doesn't require user authentication. The idea is to
delete APIs which belongs to a particular tenant from the out side, through
an existing or a modified method call.

@Harsha - sorry I was wrong previously, the impl package is exported but
the  *APIProviderImpl.java *class cannot be accessed out side the package
since it is not public. The class also contains the following description:

/**
 * This class provides the core API provider functionality. It is
implemented in a very
 * self-contained and 'pure' manner, without taking requirements like
security into account,
 * which are subject to frequent change. Due to this 'pure' nature and
the significance of
 * the class to the overall API management functionality, the
visibility of the class has
 * been reduced to package level. This means we can still use it for
internal purposes and
 * possibly even extend it, but it's totally off the limits of the
users. Users wishing to
 * programmatically access this functionality should use one of the
extensions of this
 * class which is visible to them. These extensions may add additional
features like
 * security to this class.
 */


Thank you very much for your suggestions.
Regards,





On Thu, Apr 16, 2015 at 8:04 PM, Harsha Kumara hars...@wso2.com wrote:

 Hi Chalitha,

 Which version that you tried to use of apimgt.impl dependency? According
 to [1] and [2], the impl package has exported. You won't be able to use the
 APIMgtDAO, because deleting API involve deleting resources from registry as
 well.

 [1] -
 https://github.com/wso2/carbon-apimgt/blob/master/components/apimgt/org.wso2.carbon.apimgt.impl/pom.xml#L214
 [2] -
 https://svn.wso2.org/repos/wso2/carbon/platform/trunk/components/apimgt/org.wso2.carbon.apimgt.impl/pom.xml

 Thanks,
 Harsha

 On Thu, Apr 16, 2015 at 7:08 PM, Chalitha Kulathunga chalit...@wso2.com
 wrote:

 Hi all,

 I'm looking for a proper way(methods) to *delete an published API and
 all its data* in WSO2 API Manager.

 The *deleteAPI* method available in *APIProviderImpl.java* class in
 org.wso2.carbon.apimgt.impl package(bundle) is not public and also not
 exported in the pom.xml. Therefore, it cannot be accessed from the outside.

 *APIMgtDAO.java* class in org.wso2.carbon.apimgt.impl.dao package  also
 provides a similar but public method however I'm not certain whether it is
 suitable for my purpose. Could someone please recommend me a standard way
 to delete an API.


 Thanks  Regards

 --
 *Chalitha Sanyuja Kulathunga*
 *Software Engineer*
 WSO2 Inc.; http://wso2.com
 email: chalit...@wso2.com cell: +94 77 5927581 %2B94%2077%207779495

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




 --
 Harsha Kumara
 Software Engineer, WSO2 Inc.
 Mobile: +94775505618
 Blog:harshcreationz.blogspot.com




-- 
*Chalitha Sanyuja Kulathunga*
*Software Engineer*
WSO2 Inc.; http://wso2.com
email: chalit...@wso2.com cell: +94 77 5927581 %2B94%2077%207779495
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Getting all reources from a specified registry path

2015-04-17 Thread Tharik Kanaka
Thank you all Inshaf, Aruna and Chandana for the support. I could be able
to resolve the matter by treating directory as a collection resource.

On Fri, Apr 17, 2015 at 11:05 AM, Chandana Napagoda chand...@wso2.com
wrote:

 Hi Tharik,

 You can get all the resource under a given collection as below.

 Resource resource = registry.get(path);

 if (resource instanceof Collection) {
 Collection collection = (Collection) resource;
 String[] resources = collection.getChildren();
 }

 Regards,
 Chandana



 On Fri, Apr 17, 2015 at 10:37 AM, Tharik Kanaka tha...@wso2.com wrote:

 Hi All,

 In WSO2 core Registry we can get any Resource by specifying file path of
 resource as following code line.

 Resource configFile = registry.get(path);

 Is there any method available in registry to get all the resources (into
 a Resource array or any collection) from a specified registry directory
 path? I could not find a method.

 Thanks,
 --

 *Tharik Kanaka* | Associate Software Engineer

 WSO2, Inc |#20, Palm Grove, Colombo 03, Sri Lanka

 Email: tha...@wso2.com | Web: www.wso2.com

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




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

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

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




-- 

*Tharik Kanaka* | Associate Software Engineer

WSO2, Inc |#20, Palm Grove, Colombo 03, Sri Lanka

Email: tha...@wso2.com | Web: www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] API Manager - deleting an API

2015-04-17 Thread Harsha Kumara
Hi Chalitha,

You should be able to get the instance of the APIProvider as follow

apiProvider = APIManagerFactory.getInstance().getAPIProvider(loggedUser);

[1] -
https://github.com/wso2/carbon-apimgt/blob/master/components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/APIManagerFactory.java

Thanks,
Harsha

On Fri, Apr 17, 2015 at 12:42 PM, Yvonne Wickramasinghe yvo...@wso2.com
wrote:

 Hi Chalitha,

 Just a quick question. Are we going to allow deleting subscribed APIs as
 well?

 Regards,

 On Fri, Apr 17, 2015 at 12:33 PM, Chalitha Kulathunga chalit...@wso2.com
 wrote:

 Hi Thilini  Harsha,

 @Thilini - Remove an API needs the user to be authenticated. I'm
 looking for a solution that doesn't require user authentication. The idea
 is to delete APIs which belongs to a particular tenant from the out side,
 through an existing or a modified method call.

 @Harsha - sorry I was wrong previously, the impl package is exported but
 the  *APIProviderImpl.java *class cannot be accessed out side the
 package since it is not public. The class also contains the following
 description:

 /**
  * This class provides the core API provider functionality. It is 
 implemented in a very
  * self-contained and 'pure' manner, without taking requirements like 
 security into account,
  * which are subject to frequent change. Due to this 'pure' nature and the 
 significance of
  * the class to the overall API management functionality, the visibility of 
 the class has
  * been reduced to package level. This means we can still use it for 
 internal purposes and
  * possibly even extend it, but it's totally off the limits of the users. 
 Users wishing to
  * programmatically access this functionality should use one of the 
 extensions of this
  * class which is visible to them. These extensions may add additional 
 features like
  * security to this class.
  */


 Thank you very much for your suggestions.
 Regards,





 On Thu, Apr 16, 2015 at 8:04 PM, Harsha Kumara hars...@wso2.com wrote:

 Hi Chalitha,

 Which version that you tried to use of apimgt.impl dependency? According
 to [1] and [2], the impl package has exported. You won't be able to use the
 APIMgtDAO, because deleting API involve deleting resources from registry as
 well.

 [1] -
 https://github.com/wso2/carbon-apimgt/blob/master/components/apimgt/org.wso2.carbon.apimgt.impl/pom.xml#L214
 [2] -
 https://svn.wso2.org/repos/wso2/carbon/platform/trunk/components/apimgt/org.wso2.carbon.apimgt.impl/pom.xml

 Thanks,
 Harsha

 On Thu, Apr 16, 2015 at 7:08 PM, Chalitha Kulathunga chalit...@wso2.com
  wrote:

 Hi all,

 I'm looking for a proper way(methods) to *delete an published API and
 all its data* in WSO2 API Manager.

 The *deleteAPI* method available in *APIProviderImpl.java* class in
 org.wso2.carbon.apimgt.impl package(bundle) is not public and also not
 exported in the pom.xml. Therefore, it cannot be accessed from the outside.

 *APIMgtDAO.java* class in org.wso2.carbon.apimgt.impl.dao package
  also provides a similar but public method however I'm not certain whether
 it is suitable for my purpose. Could someone please recommend me a standard
 way to delete an API.


 Thanks  Regards

 --
 *Chalitha Sanyuja Kulathunga*
 *Software Engineer*
 WSO2 Inc.; http://wso2.com
 email: chalit...@wso2.com cell: +94 77 5927581 %2B94%2077%207779495

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




 --
 Harsha Kumara
 Software Engineer, WSO2 Inc.
 Mobile: +94775505618
 Blog:harshcreationz.blogspot.com




 --
 *Chalitha Sanyuja Kulathunga*
 *Software Engineer*
 WSO2 Inc.; http://wso2.com
 email: chalit...@wso2.com cell: +94 77 5927581 %2B94%2077%207779495

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




 --

 *Yvonne Wickramasinghe*
 Senior Product Manager; WSO2, Inc.; http://wso2.com
 email: yvo...@wso2.com; mobile (Sri Lanka): +94 71 516 3732




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


Re: [Dev] API Manager - deleting an API

2015-04-17 Thread Yvonne Wickramasinghe
Hi Chalitha,

Just a quick question. Are we going to allow deleting subscribed APIs as
well?

Regards,

On Fri, Apr 17, 2015 at 12:33 PM, Chalitha Kulathunga chalit...@wso2.com
wrote:

 Hi Thilini  Harsha,

 @Thilini - Remove an API needs the user to be authenticated. I'm looking
 for a solution that doesn't require user authentication. The idea is to
 delete APIs which belongs to a particular tenant from the out side, through
 an existing or a modified method call.

 @Harsha - sorry I was wrong previously, the impl package is exported but
 the  *APIProviderImpl.java *class cannot be accessed out side the package
 since it is not public. The class also contains the following description:

 /**
  * This class provides the core API provider functionality. It is implemented 
 in a very
  * self-contained and 'pure' manner, without taking requirements like 
 security into account,
  * which are subject to frequent change. Due to this 'pure' nature and the 
 significance of
  * the class to the overall API management functionality, the visibility of 
 the class has
  * been reduced to package level. This means we can still use it for internal 
 purposes and
  * possibly even extend it, but it's totally off the limits of the users. 
 Users wishing to
  * programmatically access this functionality should use one of the 
 extensions of this
  * class which is visible to them. These extensions may add additional 
 features like
  * security to this class.
  */


 Thank you very much for your suggestions.
 Regards,





 On Thu, Apr 16, 2015 at 8:04 PM, Harsha Kumara hars...@wso2.com wrote:

 Hi Chalitha,

 Which version that you tried to use of apimgt.impl dependency? According
 to [1] and [2], the impl package has exported. You won't be able to use the
 APIMgtDAO, because deleting API involve deleting resources from registry as
 well.

 [1] -
 https://github.com/wso2/carbon-apimgt/blob/master/components/apimgt/org.wso2.carbon.apimgt.impl/pom.xml#L214
 [2] -
 https://svn.wso2.org/repos/wso2/carbon/platform/trunk/components/apimgt/org.wso2.carbon.apimgt.impl/pom.xml

 Thanks,
 Harsha

 On Thu, Apr 16, 2015 at 7:08 PM, Chalitha Kulathunga chalit...@wso2.com
 wrote:

 Hi all,

 I'm looking for a proper way(methods) to *delete an published API and
 all its data* in WSO2 API Manager.

 The *deleteAPI* method available in *APIProviderImpl.java* class in
 org.wso2.carbon.apimgt.impl package(bundle) is not public and also not
 exported in the pom.xml. Therefore, it cannot be accessed from the outside.

 *APIMgtDAO.java* class in org.wso2.carbon.apimgt.impl.dao package  also
 provides a similar but public method however I'm not certain whether it is
 suitable for my purpose. Could someone please recommend me a standard way
 to delete an API.


 Thanks  Regards

 --
 *Chalitha Sanyuja Kulathunga*
 *Software Engineer*
 WSO2 Inc.; http://wso2.com
 email: chalit...@wso2.com cell: +94 77 5927581 %2B94%2077%207779495

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




 --
 Harsha Kumara
 Software Engineer, WSO2 Inc.
 Mobile: +94775505618
 Blog:harshcreationz.blogspot.com




 --
 *Chalitha Sanyuja Kulathunga*
 *Software Engineer*
 WSO2 Inc.; http://wso2.com
 email: chalit...@wso2.com cell: +94 77 5927581 %2B94%2077%207779495

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




-- 

*Yvonne Wickramasinghe*
Senior Product Manager; WSO2, Inc.; http://wso2.com
email: yvo...@wso2.com; mobile (Sri Lanka): +94 71 516 3732
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] API Manager - deleting an API

2015-04-17 Thread Chalitha Kulathunga
Hi Yvonne  Harsha,

@Yvonne - yes, I'm going to delete subscribed APIs as well. If it can cause
any issues, please let me know.

@Harsha - I will try the suggested approach.

Thank you  Regards,
Chalitha

On Fri, Apr 17, 2015 at 1:02 PM, Harsha Kumara hars...@wso2.com wrote:

 Hi Chalitha,

 You should be able to get the instance of the APIProvider as follow

 apiProvider = APIManagerFactory.getInstance().getAPIProvider(loggedUser);

 [1] -
 https://github.com/wso2/carbon-apimgt/blob/master/components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/APIManagerFactory.java

 Thanks,
 Harsha

 On Fri, Apr 17, 2015 at 12:42 PM, Yvonne Wickramasinghe yvo...@wso2.com
 wrote:

 Hi Chalitha,

 Just a quick question. Are we going to allow deleting subscribed APIs as
 well?

 Regards,

 On Fri, Apr 17, 2015 at 12:33 PM, Chalitha Kulathunga chalit...@wso2.com
  wrote:

 Hi Thilini  Harsha,

 @Thilini - Remove an API needs the user to be authenticated. I'm
 looking for a solution that doesn't require user authentication. The idea
 is to delete APIs which belongs to a particular tenant from the out side,
 through an existing or a modified method call.

 @Harsha - sorry I was wrong previously, the impl package is exported but
 the  *APIProviderImpl.java *class cannot be accessed out side the
 package since it is not public. The class also contains the following
 description:

 /**
  * This class provides the core API provider functionality. It is 
 implemented in a very
  * self-contained and 'pure' manner, without taking requirements like 
 security into account,
  * which are subject to frequent change. Due to this 'pure' nature and the 
 significance of
  * the class to the overall API management functionality, the visibility of 
 the class has
  * been reduced to package level. This means we can still use it for 
 internal purposes and
  * possibly even extend it, but it's totally off the limits of the users. 
 Users wishing to
  * programmatically access this functionality should use one of the 
 extensions of this
  * class which is visible to them. These extensions may add additional 
 features like
  * security to this class.
  */


 Thank you very much for your suggestions.
 Regards,





 On Thu, Apr 16, 2015 at 8:04 PM, Harsha Kumara hars...@wso2.com wrote:

 Hi Chalitha,

 Which version that you tried to use of apimgt.impl dependency?
 According to [1] and [2], the impl package has exported. You won't be able
 to use the APIMgtDAO, because deleting API involve deleting resources from
 registry as well.

 [1] -
 https://github.com/wso2/carbon-apimgt/blob/master/components/apimgt/org.wso2.carbon.apimgt.impl/pom.xml#L214
 [2] -
 https://svn.wso2.org/repos/wso2/carbon/platform/trunk/components/apimgt/org.wso2.carbon.apimgt.impl/pom.xml

 Thanks,
 Harsha

 On Thu, Apr 16, 2015 at 7:08 PM, Chalitha Kulathunga 
 chalit...@wso2.com wrote:

 Hi all,

 I'm looking for a proper way(methods) to *delete an published API and
 all its data* in WSO2 API Manager.

 The *deleteAPI* method available in *APIProviderImpl.java* class in
 org.wso2.carbon.apimgt.impl package(bundle) is not public and also
 not exported in the pom.xml. Therefore, it cannot be accessed from the
 outside.

 *APIMgtDAO.java* class in org.wso2.carbon.apimgt.impl.dao package
  also provides a similar but public method however I'm not certain whether
 it is suitable for my purpose. Could someone please recommend me a 
 standard
 way to delete an API.


 Thanks  Regards

 --
 *Chalitha Sanyuja Kulathunga*
 *Software Engineer*
 WSO2 Inc.; http://wso2.com
 email: chalit...@wso2.com cell: +94 77 5927581 %2B94%2077%207779495

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




 --
 Harsha Kumara
 Software Engineer, WSO2 Inc.
 Mobile: +94775505618
 Blog:harshcreationz.blogspot.com




 --
 *Chalitha Sanyuja Kulathunga*
 *Software Engineer*
 WSO2 Inc.; http://wso2.com
 email: chalit...@wso2.com cell: +94 77 5927581 %2B94%2077%207779495

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




 --

 *Yvonne Wickramasinghe*
 Senior Product Manager; WSO2, Inc.; http://wso2.com
 email: yvo...@wso2.com; mobile (Sri Lanka): +94 71 516 3732




 --
 Harsha Kumara
 Software Engineer, WSO2 Inc.
 Mobile: +94775505618
 Blog:harshcreationz.blogspot.com




-- 
*Chalitha Sanyuja Kulathunga*
*Software Engineer*
WSO2 Inc.; http://wso2.com
email: chalit...@wso2.com cell: +94 77 5927581 %2B94%2077%207779495
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Carbon] Mysql error- Specified key was too long; max key length is 767 bytes

2015-04-17 Thread Godwin Amila Shrimal
Hi,

Use latin1 character set.


Thanks
Godwin


On Fri, Apr 17, 2015 at 2:40 PM, Vinod Kavinda vi...@wso2.com wrote:

 Hi,
 I'm getting the following error while trying to setup a mysql datastore,
 when running the dbscript located at 'PRODUCT_HOME/dbscripts/mysql.sql'.
 Error - *ERROR 1071 (42000) at line 31: Specified key was too long; max
 key length is 767 bytes*

 I tried reducing the REG_PATH_VALUE length to 100(mysql.sql attached),
 with no luck.
 There is a similar issue[1] that has already resolved.

 mysql version - mysql  Ver 14.14 Distrib 5.6.22, for osx10.9 (x86_64)
 mysql command used - mysql -u root -p BAR  mysql.sql

 Any help is appreciated.

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

 Regards,
 Vinod Kavinda

 --
 Vinod Kavinda
 Software Engineer, *WSO2, Inc http://www.wso2.com.*
 Mobile : +94 (0) 712 415544
 vi...@wso2.com

 ___
 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 http://lnkd.in/KUum6D*
twitter: https://twitter.com/godwinamila
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Carbon] Mysql error- Specified key was too long; max key length is 767 bytes

2015-04-17 Thread Vinod Kavinda
Hi Godwin,
It worked. thanks a lot.

Regards,
Vinod

On Fri, Apr 17, 2015 at 2:47 PM, Godwin Amila Shrimal god...@wso2.com
wrote:

 Hi,

 Use latin1 character set.


 Thanks
 Godwin


 On Fri, Apr 17, 2015 at 2:40 PM, Vinod Kavinda vi...@wso2.com wrote:

 Hi,
 I'm getting the following error while trying to setup a mysql datastore,
 when running the dbscript located at 'PRODUCT_HOME/dbscripts/mysql.sql'
 .
 Error - *ERROR 1071 (42000) at line 31: Specified key was too long; max
 key length is 767 bytes*

 I tried reducing the REG_PATH_VALUE length to 100(mysql.sql attached),
 with no luck.
 There is a similar issue[1] that has already resolved.

 mysql version - mysql  Ver 14.14 Distrib 5.6.22, for osx10.9 (x86_64)
 mysql command used - mysql -u root -p BAR  mysql.sql

 Any help is appreciated.

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

 Regards,
 Vinod Kavinda

 --
 Vinod Kavinda
 Software Engineer, *WSO2, Inc http://www.wso2.com.*
 Mobile : +94 (0) 712 415544
 vi...@wso2.com

 ___
 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 http://lnkd.in/KUum6D*
 twitter: https://twitter.com/godwinamila




-- 
Vinod Kavinda
Software Engineer, *WSO2, Inc http://www.wso2.com.*
Mobile : +94 (0) 712 415544
vi...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [MB] Packing hazelcast.properties with MB 3.0.0

2015-04-17 Thread Hemika Kodikara
Hi All,

We are hoping to pack MB 3.0.0 with the hazelcast.properties file so that
the user is able to configure the hazelcast time-out time when a node it
left through the network.

We faced the time-out issue when recreating the JIRA at [1].

The hazelcast.properties file will be kept at MB_HOME/repository/conf
folder with the hazelcast.max.no.heartbeat.seconds property.

Please reply if there are any concerns.

[1] - https://wso2.org/jira/browse/MB-676

Regards,
Hemika

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

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


[Dev] Upgrading Jaggery version for API Manager 1.9.0

2015-04-17 Thread Ranga Siriwardena
Hi All,

I have updated Jaggery feature version from 0.9.0.ALPHA4.wso2v1
to 0.9.0.ALPHA4.wso2v7. Basic tests performed against it and please let us
know if you found any issues with this.

Thank You.
Ranga.
-- 
Ranga Siriwardena
Software Engineer
WSO2 Inc.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Carbon] Mysql error- Specified key was too long; max key length is 767 bytes

2015-04-17 Thread Vinod Kavinda
Hi,
I'm getting the following error while trying to setup a mysql datastore,
when running the dbscript located at 'PRODUCT_HOME/dbscripts/mysql.sql'.
Error - *ERROR 1071 (42000) at line 31: Specified key was too long; max key
length is 767 bytes*

I tried reducing the REG_PATH_VALUE length to 100(mysql.sql attached), with
no luck.
There is a similar issue[1] that has already resolved.

mysql version - mysql  Ver 14.14 Distrib 5.6.22, for osx10.9 (x86_64)
mysql command used - mysql -u root -p BAR  mysql.sql

Any help is appreciated.

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

Regards,
Vinod Kavinda

-- 
Vinod Kavinda
Software Engineer, *WSO2, Inc http://www.wso2.com.*
Mobile : +94 (0) 712 415544
vi...@wso2.com


mysql.sql
Description: Binary data
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Review and merge

2015-04-17 Thread Godwin Amila Shrimal
Hi

Please review and merge the PR[1]

[1] https://github.com/wso2/carbon-identity/pull/203


Thanks
Godwin

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

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


Re: [Dev] WSO2 Committers += Dilan Ariyaratne

2015-04-17 Thread Akalanka Pagoda Arachchi
Congratz bro..!!!

On Fri, Apr 17, 2015 at 4:38 PM, Sajith Ariyarathna sajit...@wso2.com
wrote:

 congratulations !!!

 On Fri, Apr 17, 2015 at 11:03 AM, Dimuthu De Lanerolle dimut...@wso2.com
 wrote:

 Congtraz Dilan ... !!!

 On Fri, Apr 17, 2015 at 10:03 AM, Sajith Abeywardhana saji...@wso2.com
 wrote:

 Congratulations ...!

 *Sajith Abeywardhana* | Software Engineer
 WSO2, Inc | lean. enterprise. middleware.
 #20, Palm Grove, Colombo 03, Sri Lanka.
 Mobile: +94772260485
 Email: saji...@wso2.com mahe...@wso2.com | Web: www.wso2.com

 On Thu, Apr 16, 2015 at 3:35 PM, Inshaf Mahath ins...@wso2.com wrote:

 Congrats Dilan..!!!

 On Thu, Apr 16, 2015 at 3:22 PM, Damith Wickramasinghe 
 dami...@wso2.com wrote:

 Congrats Dilan 

 On Thu, Apr 16, 2015 at 3:18 PM, Darshana Gunawardana 
 darsh...@wso2.com wrote:

 Congratulations Dilan..!!

 On Thu, Apr 16, 2015 at 2:21 PM, Inosh Perera ino...@wso2.com
 wrote:

 Congrats Dilan!!

 On Thu, Apr 16, 2015 at 2:06 PM, Sandamal Weerasinghe 
 sanda...@wso2.com wrote:

 Congratulations Dilan!

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

 Mobile - +94-77-144-9640

 On Thu, Apr 16, 2015 at 2:05 PM, Shiva Balachandran sh...@wso2.com
  wrote:

 Congrats Dilan :)

 On Fri, Apr 10, 2015 at 3:44 PM, Prabath Abeysekera 
 praba...@wso2.com wrote:

 Hi Everyone,

 It's my pleasure to welcome Dilan Ariyaratne as a WSO2 Committer.
 Dilan has been part of some key development efforts of MDM as well 
 as EMM
 over the last couple of months. In recognition of all his 
 contributions,
 he's been voted as a WSO2 comitter.

 Dilan, Welcome aboard and keep up the good work!


 Cheers,
 Prabath


 --
 Prabath Abeysekara
 Associate Technical Lead, Data TG.
 WSO2 Inc.
 Email: praba...@wso2.com
 Mobile: +94774171471


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




 --
 Shiva Balachandran
 Software Engineer
 WSO2 Inc.

 Mobile - +94 774445788
 Blog - https://shivabalachandran.wordpress.com/

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



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




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

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




 --
 Regards,


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

 *E-mail: darsh...@wso2.com darsh...@wso2.com*
 *Mobile: +94718566859 %2B94718566859*Lean . Enterprise . Middleware

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




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

 mobile: *+94728671315 %2B94728671315*


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




 --
 Inshaf Mahath
 Associate Software Engineer
 Mobile: +94775907181
 WSO2 Inc.
 Lean . Enterprise . Middleware


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



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




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


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




 --
 Sajith Ariyarathna
 Software Engineer; WSO2, Inc.;  http://wso2.com/
 mobile: +94 77 6602284, +94 71 3951048

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




-- 
*Darshana Akalanka Pagoda Arachchi,*
*Software Engineer*
*078-4721791*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] APIM REST API - Adding/Updating API Documents

2015-04-17 Thread Supun Sethunga
Hi Jo,

I came across couple of Q's regarding $subject.

   1. When adding a file as a document, what are the correct values for the
   parameters to be passed (sourceType, docUrl, docLocation) ?
   2. After adding an *inline* document, is it possible to update the
   content via REST API's? If so how?

Thanks,
Supun

-- 
*Supun Sethunga*
Software Engineer
WSO2, Inc.
http://wso2.com/
lean | enterprise | middleware
Mobile : +94 716546324
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Please review and merge the pull request

2015-04-17 Thread Vijitha Ekanayake
Hi,

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

[1]. https://github.com/wso2/wso2-synapse/pull/142


Thanks,
Vijitha.

-- 
Vijitha Ekanayake
Software Engineer*, *WSO2, Inc.; http://wso2.com/
Mobile : +94 777 24 73 39 | +94 718 74 44 08
lean.enterprise.middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Orbit] Please review the PR for Spark 1.3.0

2015-04-17 Thread Niranda Perera
oh. are you referring to the
Bundle-Classpathpatch.jar,./Bundle-Classpath
line?
I did not include it in the orbit bundle.

but I checked the bundles in a fresh carbon server and it seems like the
patch gets attached successfully.
​
 Screenshot from 2015-04-17 16:20:15.png
https://docs.google.com/a/wso2.com/file/d/0B1GsnfycTl32bDMyNG5DMDhRcHc/edit?usp=drive_web
​
I checked it with BAM pack also.

bundle-classpath tag, is it mandatory to be in the for the orbit bundle,
for the patch to get attached?

the patch pom is as follows
https://github.com/nirandaperera/carbon-analytics/blob/clustering%2B130%2BMT/components/analytics/analytics-processors/org.wso2.carbon.analytics.spark.patch/pom.xml





On Thu, Apr 16, 2015 at 3:05 PM, Anjana Fernando anj...@wso2.com wrote:

 Niranda, yeah, we would have to put that part to be able to later patch
 it. A sample can be found here [1].

 [1] https://github.com/wso2/orbit/blob/master/tomcat/7.0.59.wso2v2/pom.xml

 Cheers,
 Anjana.

 On Thu, Apr 16, 2015 at 3:00 PM, Sameera Jayasoma same...@wso2.com
 wrote:

 I meant to say, do we need to add the patch.jar line to the spark bundle
 as we've done in Tomcat bundle.

 Thanks,
 Sameera.

 On Thu, Apr 16, 2015 at 12:31 PM, Niranda Perera nira...@wso2.com
 wrote:

 Hi Sameera,

 No its not. The patch is in org.wso2.analytics.spark.patch component.
 Its still not committed to carbon - analytics

 Rgds

 On Thu, Apr 16, 2015, 12:17 Sameera Jayasoma same...@wso2.com wrote:

 Hi Niranda,

 Does this include fragment-bundle/patch modification also?

 Thanks,
 Sameera.

 On Thu, Apr 16, 2015 at 8:03 AM, Niranda Perera nira...@wso2.com
 wrote:

 Hi,

 Kind reminder on this.

 Best regards

 Niranda Perera
 Software Engineer, WSO2 Inc.
 Mobile: +94-71-554-8430
 Twitter: @n1r44
 On Apr 14, 2015 19:17, Niranda Perera nira...@wso2.com wrote:

 Hi Sameera,

 Could you please review this PR [1] for Spark 1.3.0.

 this upgrades 1.2.1 to 1.3.0. this upgrade is done, because 1.3.0
 comes with some major API changes and we wanted to include those API
 changes before the DAS (BAM) 3.0.0 alpha

 cheers

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

 --
 *Niranda Perera*
 Software Engineer, WSO2 Inc.
 Mobile: +94-71-554-8430
 Twitter: @n1r44 https://twitter.com/N1R44




 --
 Sameera Jayasoma,
 Software Architect,

 WSO2, Inc. (http://wso2.com)
 email: same...@wso2.com
 blog: http://blog.sameera.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://blog.sameera.org
 twitter: https://twitter.com/sameerajayasoma
 flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
 Mobile: 0094776364456

 Lean . Enterprise . Middleware




 --
 *Anjana Fernando*
 Senior Technical Lead
 WSO2 Inc. | http://wso2.com
 lean . enterprise . middleware




-- 
*Niranda Perera*
Software Engineer, WSO2 Inc.
Mobile: +94-71-554-8430
Twitter: @n1r44 https://twitter.com/N1R44
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Dilan Ariyaratne

2015-04-17 Thread Sajith Ariyarathna
congratulations !!!

On Fri, Apr 17, 2015 at 11:03 AM, Dimuthu De Lanerolle dimut...@wso2.com
wrote:

 Congtraz Dilan ... !!!

 On Fri, Apr 17, 2015 at 10:03 AM, Sajith Abeywardhana saji...@wso2.com
 wrote:

 Congratulations ...!

 *Sajith Abeywardhana* | Software Engineer
 WSO2, Inc | lean. enterprise. middleware.
 #20, Palm Grove, Colombo 03, Sri Lanka.
 Mobile: +94772260485
 Email: saji...@wso2.com mahe...@wso2.com | Web: www.wso2.com

 On Thu, Apr 16, 2015 at 3:35 PM, Inshaf Mahath ins...@wso2.com wrote:

 Congrats Dilan..!!!

 On Thu, Apr 16, 2015 at 3:22 PM, Damith Wickramasinghe dami...@wso2.com
  wrote:

 Congrats Dilan 

 On Thu, Apr 16, 2015 at 3:18 PM, Darshana Gunawardana 
 darsh...@wso2.com wrote:

 Congratulations Dilan..!!

 On Thu, Apr 16, 2015 at 2:21 PM, Inosh Perera ino...@wso2.com wrote:

 Congrats Dilan!!

 On Thu, Apr 16, 2015 at 2:06 PM, Sandamal Weerasinghe 
 sanda...@wso2.com wrote:

 Congratulations Dilan!

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

 Mobile - +94-77-144-9640

 On Thu, Apr 16, 2015 at 2:05 PM, Shiva Balachandran sh...@wso2.com
 wrote:

 Congrats Dilan :)

 On Fri, Apr 10, 2015 at 3:44 PM, Prabath Abeysekera 
 praba...@wso2.com wrote:

 Hi Everyone,

 It's my pleasure to welcome Dilan Ariyaratne as a WSO2 Committer.
 Dilan has been part of some key development efforts of MDM as well as 
 EMM
 over the last couple of months. In recognition of all his 
 contributions,
 he's been voted as a WSO2 comitter.

 Dilan, Welcome aboard and keep up the good work!


 Cheers,
 Prabath


 --
 Prabath Abeysekara
 Associate Technical Lead, Data TG.
 WSO2 Inc.
 Email: praba...@wso2.com
 Mobile: +94774171471


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




 --
 Shiva Balachandran
 Software Engineer
 WSO2 Inc.

 Mobile - +94 774445788
 Blog - https://shivabalachandran.wordpress.com/

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



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




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

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




 --
 Regards,


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

 *E-mail: darsh...@wso2.com darsh...@wso2.com*
 *Mobile: +94718566859 %2B94718566859*Lean . Enterprise . Middleware

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




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

 mobile: *+94728671315 %2B94728671315*


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




 --
 Inshaf Mahath
 Associate Software Engineer
 Mobile: +94775907181
 WSO2 Inc.
 Lean . Enterprise . Middleware


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



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




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


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




-- 
Sajith Ariyarathna
Software Engineer; WSO2, Inc.;  http://wso2.com/
mobile: +94 77 6602284, +94 71 3951048
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] APIM REST API - Adding/Updating API Documents

2015-04-17 Thread Supun Sethunga
Was using APIM 1.7

On Fri, Apr 17, 2015 at 4:53 PM, Supun Sethunga sup...@wso2.com wrote:

 Hi Jo,

 I came across couple of Q's regarding $subject.

1. When adding a file as a document, what are the correct values for
the parameters to be passed (sourceType, docUrl, docLocation) ?
2. After adding an *inline* document, is it possible to update the
content via REST API's? If so how?

 Thanks,
 Supun

 --
 *Supun Sethunga*
 Software Engineer
 WSO2, Inc.
 http://wso2.com/
 lean | enterprise | middleware
 Mobile : +94 716546324




-- 
*Supun Sethunga*
Software Engineer
WSO2, Inc.
http://wso2.com/
lean | enterprise | middleware
Mobile : +94 716546324
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] IS - Options to fix IDENTITY-2585

2015-04-17 Thread Gabriel Vince
Hello all,

I am considering to help fixing a few issues already in Jira. Currently
what's burning is https://wso2.org/jira/browse/IDENTITY-2585

Just as my background - I am working on a SSO project (not the first one)
leveraging SAML features (which got very popular).

Optimal state is that the RequestedAuthnContext in the SAML AuthRequest is
optional, configurable (and some projects even require multiple values of
the AuthnContextClassRef value).

Let's keep it moderate - assume the parameter is optional, single value and
configurable. What needs to be updated? I'll try to list what I found to
update and please shoot if I missed something.

SAMLSSOConfiguration
  - data object
  - file based configuration
  - database schema
  - admin web service
  - Admin UI
  - ??? anything else?

DefaultSAML2SSOManager
 - business logic to get and use the parameter

As a simlyfied resolution I'd propose the RequestedAuthnContext will not be
created for the SAML AuthRequest at all and this way the remote IdP will be
happy to do as it likes. This is a commonly used option in other products.
It will be much better than any hardcoded value.  (Many organizations do
Client Certificate authentication or use custom values for this parameter)


Best regards
-- 
Gabriel Vince
Senior Consultant
Apogado
http://www.apogado.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] API Manager - deleting an API

2015-04-17 Thread Uvindra Dias Jayasinha
Hi Chalitha,

You should first remove any existing subscriptions[1] before you delete a
given API.

What is your use case for deleting APIs without user authentication?

[1]
https://docs.wso2.com/display/AM180/Store+APIs#StoreAPIs-RemoveaSubscription


On 17 April 2015 at 14:45, Chalitha Kulathunga chalit...@wso2.com wrote:

 Hi Yvonne  Harsha,

 @Yvonne - yes, I'm going to delete subscribed APIs as well. If it can
 cause any issues, please let me know.

 @Harsha - I will try the suggested approach.

 Thank you  Regards,
 Chalitha

 On Fri, Apr 17, 2015 at 1:02 PM, Harsha Kumara hars...@wso2.com wrote:

 Hi Chalitha,

 You should be able to get the instance of the APIProvider as follow

 apiProvider = APIManagerFactory.getInstance().getAPIProvider(loggedUser);

 [1] -
 https://github.com/wso2/carbon-apimgt/blob/master/components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/APIManagerFactory.java

 Thanks,
 Harsha

 On Fri, Apr 17, 2015 at 12:42 PM, Yvonne Wickramasinghe yvo...@wso2.com
 wrote:

 Hi Chalitha,

 Just a quick question. Are we going to allow deleting subscribed APIs as
 well?

 Regards,

 On Fri, Apr 17, 2015 at 12:33 PM, Chalitha Kulathunga 
 chalit...@wso2.com wrote:

 Hi Thilini  Harsha,

 @Thilini - Remove an API needs the user to be authenticated. I'm
 looking for a solution that doesn't require user authentication. The idea
 is to delete APIs which belongs to a particular tenant from the out side,
 through an existing or a modified method call.

 @Harsha - sorry I was wrong previously, the impl package is exported
 but the  *APIProviderImpl.java *class cannot be accessed out side the
 package since it is not public. The class also contains the following
 description:

 /**
  * This class provides the core API provider functionality. It is 
 implemented in a very
  * self-contained and 'pure' manner, without taking requirements like 
 security into account,
  * which are subject to frequent change. Due to this 'pure' nature and the 
 significance of
  * the class to the overall API management functionality, the visibility 
 of the class has
  * been reduced to package level. This means we can still use it for 
 internal purposes and
  * possibly even extend it, but it's totally off the limits of the users. 
 Users wishing to
  * programmatically access this functionality should use one of the 
 extensions of this
  * class which is visible to them. These extensions may add additional 
 features like
  * security to this class.
  */


 Thank you very much for your suggestions.
 Regards,





 On Thu, Apr 16, 2015 at 8:04 PM, Harsha Kumara hars...@wso2.com
 wrote:

 Hi Chalitha,

 Which version that you tried to use of apimgt.impl dependency?
 According to [1] and [2], the impl package has exported. You won't be able
 to use the APIMgtDAO, because deleting API involve deleting resources from
 registry as well.

 [1] -
 https://github.com/wso2/carbon-apimgt/blob/master/components/apimgt/org.wso2.carbon.apimgt.impl/pom.xml#L214
 [2] -
 https://svn.wso2.org/repos/wso2/carbon/platform/trunk/components/apimgt/org.wso2.carbon.apimgt.impl/pom.xml

 Thanks,
 Harsha

 On Thu, Apr 16, 2015 at 7:08 PM, Chalitha Kulathunga 
 chalit...@wso2.com wrote:

 Hi all,

 I'm looking for a proper way(methods) to *delete an published API
 and all its data* in WSO2 API Manager.

 The *deleteAPI* method available in *APIProviderImpl.java* class in
 org.wso2.carbon.apimgt.impl package(bundle) is not public and also
 not exported in the pom.xml. Therefore, it cannot be accessed from the
 outside.

 *APIMgtDAO.java* class in org.wso2.carbon.apimgt.impl.dao package
  also provides a similar but public method however I'm not certain 
 whether
 it is suitable for my purpose. Could someone please recommend me a 
 standard
 way to delete an API.


 Thanks  Regards

 --
 *Chalitha Sanyuja Kulathunga*
 *Software Engineer*
 WSO2 Inc.; http://wso2.com
 email: chalit...@wso2.com cell: +94 77 5927581 %2B94%2077%207779495

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




 --
 Harsha Kumara
 Software Engineer, WSO2 Inc.
 Mobile: +94775505618
 Blog:harshcreationz.blogspot.com




 --
 *Chalitha Sanyuja Kulathunga*
 *Software Engineer*
 WSO2 Inc.; http://wso2.com
 email: chalit...@wso2.com cell: +94 77 5927581 %2B94%2077%207779495

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




 --

 *Yvonne Wickramasinghe*
 Senior Product Manager; WSO2, Inc.; http://wso2.com
 email: yvo...@wso2.com; mobile (Sri Lanka): +94 71 516 3732




 --
 Harsha Kumara
 Software Engineer, WSO2 Inc.
 Mobile: +94775505618
 Blog:harshcreationz.blogspot.com




 --
 *Chalitha Sanyuja Kulathunga*
 *Software Engineer*
 WSO2 Inc.; http://wso2.com
 email: chalit...@wso2.com cell: +94 77 5927581 %2B94%2077%207779495

 ___
 Dev 

Re: [Dev] WSO2 Committers += Dilan Ariyaratne

2015-04-17 Thread CD Athuraliya
Congratulations! :)

On Fri, Apr 17, 2015 at 4:57 PM, Akalanka Pagoda Arachchi 
darsha...@wso2.com wrote:

 Congratz bro..!!!

 On Fri, Apr 17, 2015 at 4:38 PM, Sajith Ariyarathna sajit...@wso2.com
 wrote:

 congratulations !!!

 On Fri, Apr 17, 2015 at 11:03 AM, Dimuthu De Lanerolle dimut...@wso2.com
  wrote:

 Congtraz Dilan ... !!!

 On Fri, Apr 17, 2015 at 10:03 AM, Sajith Abeywardhana saji...@wso2.com
 wrote:

 Congratulations ...!

 *Sajith Abeywardhana* | Software Engineer
 WSO2, Inc | lean. enterprise. middleware.
 #20, Palm Grove, Colombo 03, Sri Lanka.
 Mobile: +94772260485
 Email: saji...@wso2.com mahe...@wso2.com | Web: www.wso2.com

 On Thu, Apr 16, 2015 at 3:35 PM, Inshaf Mahath ins...@wso2.com wrote:

 Congrats Dilan..!!!

 On Thu, Apr 16, 2015 at 3:22 PM, Damith Wickramasinghe 
 dami...@wso2.com wrote:

 Congrats Dilan 

 On Thu, Apr 16, 2015 at 3:18 PM, Darshana Gunawardana 
 darsh...@wso2.com wrote:

 Congratulations Dilan..!!

 On Thu, Apr 16, 2015 at 2:21 PM, Inosh Perera ino...@wso2.com
 wrote:

 Congrats Dilan!!

 On Thu, Apr 16, 2015 at 2:06 PM, Sandamal Weerasinghe 
 sanda...@wso2.com wrote:

 Congratulations Dilan!

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

 Mobile - +94-77-144-9640

 On Thu, Apr 16, 2015 at 2:05 PM, Shiva Balachandran 
 sh...@wso2.com wrote:

 Congrats Dilan :)

 On Fri, Apr 10, 2015 at 3:44 PM, Prabath Abeysekera 
 praba...@wso2.com wrote:

 Hi Everyone,

 It's my pleasure to welcome Dilan Ariyaratne as a WSO2
 Committer. Dilan has been part of some key development efforts of 
 MDM as
 well as EMM over the last couple of months. In recognition of all 
 his
 contributions, he's been voted as a WSO2 comitter.

 Dilan, Welcome aboard and keep up the good work!


 Cheers,
 Prabath


 --
 Prabath Abeysekara
 Associate Technical Lead, Data TG.
 WSO2 Inc.
 Email: praba...@wso2.com
 Mobile: +94774171471


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




 --
 Shiva Balachandran
 Software Engineer
 WSO2 Inc.

 Mobile - +94 774445788
 Blog - https://shivabalachandran.wordpress.com/

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



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




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

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




 --
 Regards,


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

 *E-mail: darsh...@wso2.com darsh...@wso2.com*
 *Mobile: +94718566859 %2B94718566859*Lean . Enterprise .
 Middleware

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




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

 mobile: *+94728671315 %2B94728671315*


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




 --
 Inshaf Mahath
 Associate Software Engineer
 Mobile: +94775907181
 WSO2 Inc.
 Lean . Enterprise . Middleware


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



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




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


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




 --
 Sajith Ariyarathna
 Software Engineer; WSO2, Inc.;  http://wso2.com/
 mobile: +94 77 6602284, +94 71 3951048

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




 --
 *Darshana Akalanka Pagoda Arachchi,*
 *Software Engineer*
 *078-4721791*

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




-- 
*CD Athuraliya*
Software Engineer
WSO2, Inc.
lean . enterprise . middleware
Mobile: +94 716288847 94716288847
LinkedIn http://lk.linkedin.com/in/cdathuraliya | Twitter
https://twitter.com/cdathuraliya | Blog http://cdathuraliya.tumblr.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


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

2015-04-17 Thread Isuru Ranawaka
merged

On Fri, Apr 17, 2015 at 7:11 PM, Vijitha Ekanayake vijit...@wso2.com
wrote:

 Hi,

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

 [1]. https://github.com/wso2/wso2-synapse/pull/142


 Thanks,
 Vijitha.

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




-- 
Best Regards
Isuru Ranawaka
M: +94714629880
Blog : http://isurur.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Axis2] Receiving AxisFault instead of the custom exception from the server

2015-04-17 Thread Chamila De Alwis
Hi,

In the service method, a custom exception which is a subclass of
java.lang.Exception is thrown. However in the stub, when the custom
exception is constructed, getDetail() returns null, and only the AxisFault
is thrown.  The custom exception class name is there in the exception class
name map, but since the class name cannot be retrieved, it is never checked
against.

1. What causes the detail field to be set to null?
2. Is it possible for a client to check the custom exception from the
AxisFault?


Regards,
Chamila de Alwis
Software Engineer | WSO2 | +94772207163
Blog: code.chamiladealwis.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Missing requirement: org.wso2.carbon.registry.resource 4.4.0 (org.wso2.carbon.registry.resource 4.4.0) requires 'package org.apache.commons.io 2.4.0' but it could not be found

2015-04-17 Thread Indika Sampath
Hi All,

I am getting $subject in P2 Profile Generation when product-mb build with
Java 8.

Cannot complete the install because one or more required items could not be
found.
 Software being installed: WSO2 Carbon - Registry Resource Properties
Feature 4.4.0 (org.wso2.carbon.registry.resource.properties.feature.group
4.4.0)
 Missing requirement: org.wso2.carbon.registry.resource 4.4.0
(org.wso2.carbon.registry.resource 4.4.0) requires 'package
org.apache.commons.io 2.4.0' but it could not be found
 Cannot satisfy dependency:
  From: WSO2 Carbon - Registry Core Server Feature 4.4.0
(org.wso2.carbon.registry.core.server.feature.group 4.4.0)
  To: org.wso2.carbon.registry.resource [4.4.0]
 Cannot satisfy dependency:
  From: WSO2 Carbon - Registry Resource Properties Feature 4.4.0
(org.wso2.carbon.registry.resource.properties.feature.group 4.4.0)
  To: org.wso2.carbon.registry.core.server.feature.group [4.4.0,4.5.0)
Application failed, log file location:
/home/indika/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1429323650588.log

I have update all necessary dependencies version as below.

axis2.wso2.version1.6.1.wso2v12/axis2.wso2.version
axiom.wso2.version1.2.11.wso2v6/axiom.wso2.version
carbon.commons.version4.4.0/carbon.commons.version
carbon.identity.version4.4.0/carbon.identity.version
carbon.registry.version4.4.0/carbon.registry.version
carbon.kernel.version4.4.0/carbon.kernel.version
carbon.multitenancy.version4.4.0/carbon.multitenancy.version

I found above issue raised in product-cep in mail subject [1]. Any idea to
resolve above issue ?

[1] [Dev] Error occurs in carbon-registry feature when building
product-cep after updating to kernel 4.4.0

Cheers!

-- 
Indika Sampath
Software Engineer
WSO2 Inc.
http://wso2.com

Phone: +94 716 424 744
Blog: http://indikasampath.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [WSO2 IS] Getting user info from OpenID

2015-04-17 Thread DImuthu Upeksha
Hi,

I use WSO2 IS 5.0.0 for authenticate users through OpenID. Currently I have
created some mock users in IS with attributes like First Name, Last Name,
Address, Organization and Country. After I get the access token, I sent a
request to https://localhost:9443/oauth2/userinfo?schema=openid
to get user profile details.

Output is

{phone_number:0719084638,email:dimuthu.upeks...@gmail.com,name:dimuthu,family_name:Upeksha,preferred_username:dimuthu,given_name:dimuthu,country:Sri
Lanka}

There I can's see some attributes I have put in the profile. For an example
I can't see Last Name and Organization in the response although they are in
actual profile. Instead there are some attributes
like family_name, preferred_username and given_name which are not in the
actual profile. What is the reason for that? Is there a way to configure
which attributes are to be returned in the response message?

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