Re: [Dev] What is the use case of EnableJWTCache in AM?

2013-09-14 Thread Nuwan Dias
If we consider the case of enabling token caching on the Gateway, the
reason we do that is to avoid a call being made to the key manager. But if
it requires to make a call to the key manager for the sake of generating
the JWT token, the purpose of having token caching on the Gateway is lost.

Therefore I don't think disabling the JWT cache while the Gateway token
cache is enabled is a valid use case.

Thanks,
NuwanD.


On Sat, Sep 14, 2013 at 11:05 AM, Ushani Balasooriya ush...@wso2.comwrote:

  Hi,

  I need to test JWTCache in AM. Therefore I have enabled GatewayKeyCache
 and disabled JWTCache in api-manager.xml and invoked an API via an
 application then changed the application name and invoked again. Then
 decoded the response. But still the application name is not changed
 even-though I have disabled the JWTCache property.

 When I enabled both GatewayKeyCache and JWTCache still the response will
 be cached.


  Is this expected or a bug and is this the correct way to test JWTCache
 in AM or what are the values that will be taken from the JWT cache?


 Thanks!
 --
 *Ushani Balasooriya*
 Software Engineer - QA;
 WSO2 Inc; http://www.wso2.com/.
 Mobile; +94772636796




-- 
Nuwan Dias

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


[Dev] Chunk-02 Nightly build packs - 14/09/2013

2013-09-14 Thread Ruwan Yatawara
QA Team,

Packs from yesterday's nightly build can be downloaded from the following
locations.


AM :
http://builder3.us1.wso2.org/builds/chunk-02/N_14-09-13/AM/wso2am-1.5.0_N20130914.zip

CEP :
http://builder3.us1.wso2.org/builds/chunk-02/N_14-09-13/CEP/wso2cep-3.0.0_N20130914.zip

ELB :
http://builder3.us1.wso2.org/builds/chunk-02/N_14-09-13/ELB/wso2elb-2.1.0_N20130914.zip

*GREG :
http://builder3.us1.wso2.org/builds/chunk-02/N_14-09-13/GREG/wso2greg-4.6.0_N20130914.zip


* Note : GREG pack has not been smoke tested.

Thanks and Regards,

Ruwan Yatawara

Software Engineer,
WSO2 Inc.
lean . enterprise . middleware

email : ruw...@wso2.com
mobile : +94 77 9110413
blog : http://ruwansrants.blogspot.com/
www: :http://wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] What is the use case of Refresh Token in AM?

2013-09-14 Thread Ushani Balasooriya
As per the jira reported in [1https://wso2.org/jira/browse/APIMANAGER-1656]
User can invoke an API using both previous and new access tokens even after
refreshing the previous access token.

Is this the expected behavior? If this is expected there will be multiple
access tokens for a given app.


[1] https://wso2.org/jira/browse/APIMANAGER-1656


Thanks!
-- 
*Ushani Balasooriya*
Software Engineer - QA;
WSO2 Inc; http://www.wso2.com/.
Mobile; +94772636796
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Build failure in AF scratch code

2013-09-14 Thread Amila Maha Arachchi
Hi AF team,

I was trying to build your code in scratch area and got the following build
error. Code is up to date.


[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 3:04.211s
[INFO] Finished at: Sat Sep 14 16:05:55 IST 2013
[INFO] Final Memory: 523M/1977M
[INFO]

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:2.5:compile
(default-compile) on project appfactory-plugin: Compilation failure:
Compilation failure:
[ERROR]
/home/amila/temp/AF/af-scratch-code/appfactory/products/appfactory/1.1.0/modules/webapps/appfactory-plugin/src/main/java/org/wso2/carbon/appfactory/jenkins/build/notify/JenkinsCIBuildStatusReceiverClient.java:[5,52]
cannot find symbol
[ERROR] symbol  : class JenkinsCIBuildStatusRecieverServiceStub
[ERROR] location: package org.wso2.carbon.appfactory.jenkins.build.stub
[ERROR]
/home/amila/temp/AF/af-scratch-code/appfactory/products/appfactory/1.1.0/modules/webapps/appfactory-plugin/src/main/java/org/wso2/carbon/appfactory/jenkins/build/notify/JenkinsCIBuildStatusReceiverClient.java:[18,12]
cannot find symbol
[ERROR] symbol  : class JenkinsCIBuildStatusRecieverServiceStub
[ERROR] location: class
org.wso2.carbon.appfactory.jenkins.build.notify.JenkinsCIBuildStatusReceiverClient
[ERROR]
/home/amila/temp/AF/af-scratch-code/appfactory/products/appfactory/1.1.0/modules/webapps/appfactory-plugin/src/main/java/org/wso2/carbon/appfactory/jenkins/build/notify/JenkinsCIBuildStatusReceiverClient.java:[5,52]
cannot find symbol
[ERROR] symbol  : class JenkinsCIBuildStatusRecieverServiceStub
[ERROR] location: package org.wso2.carbon.appfactory.jenkins.build.stub
[ERROR]
/home/amila/temp/AF/af-scratch-code/appfactory/products/appfactory/1.1.0/modules/webapps/appfactory-plugin/src/main/java/org/wso2/carbon/appfactory/jenkins/build/notify/JenkinsCIBuildStatusReceiverClient.java:[18,12]
cannot find symbol
[ERROR] symbol  : class JenkinsCIBuildStatusRecieverServiceStub
[ERROR] location: class
org.wso2.carbon.appfactory.jenkins.build.notify.JenkinsCIBuildStatusReceiverClient
[ERROR]
/home/amila/temp/AF/af-scratch-code/appfactory/products/appfactory/1.1.0/modules/webapps/appfactory-plugin/src/main/java/org/wso2/carbon/appfactory/jenkins/build/notify/JenkinsCIBuildStatusReceiverClient.java:[22,25]
cannot find symbol
[ERROR] symbol  : class JenkinsCIBuildStatusRecieverServiceStub
[ERROR] location: class
org.wso2.carbon.appfactory.jenkins.build.notify.JenkinsCIBuildStatusReceiverClient
[ERROR] - [Help 1]


-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Patch for kernel. - chunk02 release.

2013-09-14 Thread Ajith Vitharana
Hi Prabath,

On Sat, Sep 14, 2013 at 9:03 AM, Prabath Siriwardena prab...@wso2.comwrote:

 Hi Ajith,

 Can you please explain the code in the patch..

 +// This is for fixing REGISTRY-1911
 +try {
 +if (userName == null  CurrentSession.getUser() != null 
 +
 !CurrentSession.getUser().equals(CarbonConstants.REGISTRY_SYSTEM_USERNAME)) {
 +UserRealm realm = CurrentSession.getUserRealm();
 +UserStoreManager reader = realm.getUserStoreManager();
 +String[] roles = 
 reader.getRoleListOfUser(CurrentSession.getUser());
 +List list = Arrays.asList(roles);
 +
 +if 
 (!list.contains(CurrentSession.getUserRealm().getRealmConfiguration().getAdminRoleName()))
  {
 +userName = CurrentSession.getUser();
 +}
 +
 +}
 +} catch (UserStoreException e) {
 +String msg = Failed to get list of roles of user  + userName;
 +log.error(msg, e);
 +throw new RegistryException(msg, e);
 +}


This code segment will execute in two ways,

1. While doing a registry activity search (Please see the attached image),
2. Getting all the registry logs for indexing (This is a task which is
executing by the REGISTRY_SYSTEM_USERNAME )

If non admin user doing a activity search (without fill the username field)
we need to show only the activities relevant to that user, and  all user
activities for the admin user.
This code segment already had in org.wso2.carbon.registry.activities
bundle, But if a user doing a search using registry client it show
different results than doing the same search using admin UI (that is a
bug), therefore we moved that logic to core for consistency. I think this
is clear enough, if not lets do a review on Monday.

Thanks  Regards,
Ajith.



 Thanks  regards,
 -Prabath

 On Sat, Sep 14, 2013 at 8:05 AM, Ajith Vitharana aji...@wso2.com wrote:

 Hi All,

 Please apply this patch as well [2]. You need to apply this to
 org.wso2.carbon.registry.core
 The test summary with the patch  : Tests run: 173, Failures: 0, Errors:
 0, Skipped: 0

 [2]https://wso2.org/jira/browse/REGISTRY-1911

 Thanks
 Ajith.


 On Thu, Sep 12, 2013 at 2:03 PM, Ajith Vitharana aji...@wso2.com wrote:

 Hi Shameera,

 Please apply the patch [1] for chunk02 release.

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

 Thanks
 Ajith

 --
 Ajith Vitharana.
 WSO2 Inc. - http://wso2.org
 Email  :  aji...@wso2.com
 Mobile : +94772217350




 --
 Ajith Vitharana.
 WSO2 Inc. - http://wso2.org
 Email  :  aji...@wso2.com
 Mobile : +94772217350


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




 --
 Thanks  Regards,
 Prabath

 Mobile : +94 71 809 6732

 http://blog.facilelogin.com
 http://RampartFAQ.com




-- 
Ajith Vitharana.
WSO2 Inc. - http://wso2.org
Email  :  aji...@wso2.com
Mobile : +94772217350
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 ELB loadbalancer.conf links to blogs

2013-09-14 Thread Lahiru Sandaruwan
Hi Isuru,



On Sat, Sep 14, 2013 at 1:12 AM, Isuru Perera isu...@wso2.com wrote:

 Hi,

 Currently, the WSO2 ELB loadbalancer.conf has links to following blog
 articles.

-

 http://nirmalfdo.blogspot.com/2012/06/fronting-wso2-application-server-50.html
- http://blog.afkham.org/2011/09/wso2-load-balancer-how-it-works.html
-
http://nirmalfdo.blogspot.com/2013/01/scale-up-early-scale-down-slowly.html

 Shall we have links to latest WSO2 Docs?

 For example,
 http://docs.wso2.org/display/CLUSTER420/Clustering+WSO2+Products

 http://docs.wso2.org/display/ELB210/WSO2+Elastic+Load+Balancer+Documentation
 http://docs.wso2.org/display/ELB210/Auto-Scaling+in+Load+Balancer

 We should be able use doc links for latest docs. For example:
 http://docs.wso2.org/elastic-load-balancer


This support is already there. E.g. [1] correctly redirects to latest
version page[2].

[1]
http://docs.wso2.org/elastic-load-balancer/Auto-Scaling+in+Load+Balancer/
[2] http://docs.wso2.org/display/ELB203/Auto-Scaling+in+Load+Balancer

Thanks.

 Just an idea!

 Thanks!

 --
 Isuru Perera
 Senior Software Engineer | WSO2, Inc. | http://wso2.com/
 Lean . Enterprise . Middleware

 about.me/chrishantha

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




-- 
--
Lahiru Sandaruwan
Software Engineer,
Platform Technologies,
WSO2 Inc., http://wso2.com
lean.enterprise.middleware

email: lahi...@wso2.com cell: (+94) 773 325 954
blog: http://lahiruwrites.blogspot.com/
twitter: http://twitter.com/lahirus
linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 Business Activity Monitor 2.4.0-Milestone2 Released !

2013-09-14 Thread Ayashkantha Ramasinghe
WSO2 Business Activity Monitor 2.4.0-Milestone2 Released !

Date: 15th September 2013

The WSO2 Business Activity Monitor team is pleased to announce the
releaseof 2.4.0-Milestone2 version of the WSO2
Business Activity Monitor.

The BAM 2.4.0-Milestone distribution is available at
http://svn.wso2.org/repos/wso2/people/ayash/wso2bam-2.4.0_M2.zip
Following is the new features available with this release.

   - [BAM-1283 http://Integrate UES features to BAM] - Integrate UES
   features to BAM


Regards,
WSO2 BAM Team
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Build failure in AF scratch code

2013-09-14 Thread Janaka Ranabahu
Hi Amila,

You need to build the service stubs in the scratch area. We have some dome
modifications to them as well.

Thanks,
Janaka


On Sat, Sep 14, 2013 at 4:12 PM, Amila Maha Arachchi ami...@wso2.comwrote:

 Hi AF team,

 I was trying to build your code in scratch area and got the following
 build error. Code is up to date.


 [INFO] BUILD FAILURE
 [INFO]
 
 [INFO] Total time: 3:04.211s
 [INFO] Finished at: Sat Sep 14 16:05:55 IST 2013
 [INFO] Final Memory: 523M/1977M
 [INFO]
 
 [ERROR] Failed to execute goal
 org.apache.maven.plugins:maven-compiler-plugin:2.5:compile
 (default-compile) on project appfactory-plugin: Compilation failure:
 Compilation failure:
 [ERROR]
 /home/amila/temp/AF/af-scratch-code/appfactory/products/appfactory/1.1.0/modules/webapps/appfactory-plugin/src/main/java/org/wso2/carbon/appfactory/jenkins/build/notify/JenkinsCIBuildStatusReceiverClient.java:[5,52]
 cannot find symbol
 [ERROR] symbol  : class JenkinsCIBuildStatusRecieverServiceStub
 [ERROR] location: package org.wso2.carbon.appfactory.jenkins.build.stub
 [ERROR]
 /home/amila/temp/AF/af-scratch-code/appfactory/products/appfactory/1.1.0/modules/webapps/appfactory-plugin/src/main/java/org/wso2/carbon/appfactory/jenkins/build/notify/JenkinsCIBuildStatusReceiverClient.java:[18,12]
 cannot find symbol
 [ERROR] symbol  : class JenkinsCIBuildStatusRecieverServiceStub
 [ERROR] location: class
 org.wso2.carbon.appfactory.jenkins.build.notify.JenkinsCIBuildStatusReceiverClient
 [ERROR]
 /home/amila/temp/AF/af-scratch-code/appfactory/products/appfactory/1.1.0/modules/webapps/appfactory-plugin/src/main/java/org/wso2/carbon/appfactory/jenkins/build/notify/JenkinsCIBuildStatusReceiverClient.java:[5,52]
 cannot find symbol
 [ERROR] symbol  : class JenkinsCIBuildStatusRecieverServiceStub
 [ERROR] location: package org.wso2.carbon.appfactory.jenkins.build.stub
 [ERROR]
 /home/amila/temp/AF/af-scratch-code/appfactory/products/appfactory/1.1.0/modules/webapps/appfactory-plugin/src/main/java/org/wso2/carbon/appfactory/jenkins/build/notify/JenkinsCIBuildStatusReceiverClient.java:[18,12]
 cannot find symbol
 [ERROR] symbol  : class JenkinsCIBuildStatusRecieverServiceStub
 [ERROR] location: class
 org.wso2.carbon.appfactory.jenkins.build.notify.JenkinsCIBuildStatusReceiverClient
 [ERROR]
 /home/amila/temp/AF/af-scratch-code/appfactory/products/appfactory/1.1.0/modules/webapps/appfactory-plugin/src/main/java/org/wso2/carbon/appfactory/jenkins/build/notify/JenkinsCIBuildStatusReceiverClient.java:[22,25]
 cannot find symbol
 [ERROR] symbol  : class JenkinsCIBuildStatusRecieverServiceStub
 [ERROR] location: class
 org.wso2.carbon.appfactory.jenkins.build.notify.JenkinsCIBuildStatusReceiverClient
 [ERROR] - [Help 1]


 --
 *Amila Maharachchi*
 Senior Technical Lead
 WSO2, Inc.; http://wso2.com

 Blog: http://maharachchi.blogspot.com
 Mobile: +94719371446




-- 
*Janaka Ranabahu*
Senior Software Engineer; WSO2 Inc.; http://wso2.com*

E-mail: jan...@wso2.com
**M: **+94 718370861**

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