[Dev] Why does the "Token validity" text input shift when generating a keys?

2014-10-14 Thread Shariq Muhammed
Hi, Is there any particular reason for this? :) Initially, when a new app is created and doesn't have any keys to display, the token validity box is under "Allowed Domain" (before.png), once keys are generated it shifts to the left, next to the "Re-Generate" (after.png) button. Isn't it appropr

Re: [Dev] Adding user to a tenant using admin services

2014-08-22 Thread Shariq Muhammed
Hi Chamil, The service name is UserRegistrationService and it is not an AdminService. Please refer to the existing sign-up code in API-M, it uses this service to sign-up users. Like I said y'day, you need to prepend "@tenantDomain" to the username, and that particular user will be added to the spe

Re: [Dev] Adding user to a tenant using admin services

2014-09-01 Thread Shariq Muhammed
va:52) >>> at >>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) >>> at >>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407) >>> at >>> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004) &

Re: [Dev] Stopping RXT attributes from being added as resource properties

2014-09-11 Thread Shariq Muhammed
Hi folks, So what is the verdict? In API-M when adding an API, we noticed that there were so many INSERTs when adding RXT attributes as properties, by stopping this, the number of INSERT statements has been reduced significantly and we see a great improvement while saving API's etc in the Cloud. S

Re: [Dev] Retrieve tenant information of currently logged in user in hive scripts

2013-07-15 Thread Shariq Muhammed
On Tue, Jul 16, 2013 at 10:53 AM, Gayan Dhanushka wrote: > Hi Sinthuja, > > That problem is solved now. Publishing all the data as super admin is > enough. We can publish tenant related information in the stream as well. > Hence there will be no need to publish data as admin. > Yes this is the m

Re: [Dev] s/CarbonContext.getThreadLocalCarbonContext()/CarbonContext.getCurrentContext()/g

2013-07-17 Thread Shariq Muhammed
On Wed, Jul 17, 2013 at 6:17 PM, Sameera Jayasoma wrote: > Hi devs, > > Looks like there is an inconsistent API change in CarbonContext. Recently > CarbonContext.getThreadLocalCarbonContext() method was introduced to get > the CarbonContext object from the running thread. Now every thread in the

Re: [Dev] Is there a property defined to check whether a carbon server running in Tenant Mode/Non Tenant Mode

2013-07-19 Thread Shariq Muhammed
On Fri, Jul 19, 2013 at 12:17 AM, Lalaji Sureshika wrote: > Hi, > > $Is Subject available? > The requirement for asking above property is,though each carbon server > supports multi-tenancy,there will be instances where a carbon server is > running in Super Tenant mode only [without adding multi-

Re: [Dev] Is there a property defined to check whether a carbon server running in Tenant Mode/Non Tenant Mode

2013-07-19 Thread Shariq Muhammed
On Fri, Jul 19, 2013 at 2:25 AM, Nuwan Dias wrote: > On Fri, Jul 19, 2013 at 2:42 PM, Shariq Muhammed wrote: > >> On Fri, Jul 19, 2013 at 12:17 AM, Lalaji Sureshika wrote: >> >>> Hi, >>> >>> $Is Subject available? >>> The requirement f

Re: [Dev] Status of webapp stat publishing for aPaaS

2013-07-23 Thread Shariq Muhammed
Hi, I've refactored the existing bam.webapp.stat.publisher component to publish to ST streamDef based on the "enable.metering" property in carbon.xml. Also added 2 new properties to capture the request and response sizes and publish those to BAM as well. >From my test so far with regard to the to

Re: [Dev] OSGI bundles startup order

2013-07-25 Thread Shariq Muhammed
Hi Lakmali, You can mark the service as a "ListenerManagerRequiredServices", the the server won't startup until the osgi service is available ... On Thu, Jul 25, 2013 at 12:19 PM, Lakmali Baminiwatta wrote: > Hi all, > > I have a requirement to publish some internal APIs at the server startup.

Re: [Dev] OSGI bundles startup order

2013-07-25 Thread Shariq Muhammed
Correction, it should be "ListenerManager-RequiredServices", check the pom.xml file of org.wso2.carbon.mediation.initializer component ... On Thu, Jul 25, 2013 at 1:34 PM, Shariq Muhammed wrote: > Hi Lakmali, > > You can mark the service as a "ListenerManagerRequiredSer

Re: [Dev] OSGI bundles startup order

2013-07-25 Thread Shariq Muhammed
On Thu, Jul 25, 2013 at 2:10 PM, Lakmali Baminiwatta wrote: > Hi Shariq, > > > On 25 July 2013 13:36, Shariq Muhammed wrote: > >> Correction, it should be "ListenerManager-RequiredServices", check the >> pom.xml file of org.wso2.carbon.mediation.initialize

Re: [Dev] Status of webapp stat publishing for aPaaS

2013-07-25 Thread Shariq Muhammed
ere are quite a lot of other stats that are being published but not being utilized, need to check those and write the additional scripts. Shouldn't be that hard, will sync up with AF team on this. > > > On Tue, Jul 23, 2013 at 5:02 PM, Shariq Muhammed wrote: > >> Hi

[Dev] Build failure in trunk - org.wso2.carbon.deployment.synchronizer.git

2013-08-01 Thread Shariq Muhammed
[INFO] [INFO] BUILD FAILURE [INFO] [INFO] Total time: 48.922s [INFO] Finished at: Thu Aug 01 19:21:44 IST 2013 [INFO] Final Memory: 235M/1040M [INFO] ---

[Dev] Build failure - org.wso2.carbon.identity.oauth.endpoint

2013-08-06 Thread Shariq Muhammed
[ERROR] Failed to execute goal org.apache.maven.plugins: maven-compiler-plugin:2.3.2:compile (default-compile) on project org.wso2. carbon.identity.oauth.endpoint: Compilation failure: Compilation failure: [ERROR] /home/shariq/src/trunk/platform/components/identity/org.wso2.carbon. identity.oauth.e

Re: [Dev] What web request data should publish to the BAM as web statistics

2013-08-12 Thread Shariq Muhammed
On Wed, Aug 7, 2013 at 5:44 PM, Asanka Vithanage wrote: > Hi All, > > With current web stat gathering implementation, when access a (web > statistics enabled) web app one time, BAM Event_KS getting updated more > than one time. > > As observed, reason is AS publishing all web request it made with

[Dev] Build failure - org.wso2.carbon.mashup.utils

2013-08-13 Thread Shariq Muhammed
[INFO] [INFO] BUILD FAILURE [INFO] [INFO] Total time: 15:02.905s [INFO] Finished at: Tue Aug 13 15:17:49 IST 2013 [INFO] Final Memory: 1372M/1863M [INFO]

Re: [Dev] Build failure - org.wso2.carbon.mashup.utils

2013-08-13 Thread Shariq Muhammed
On Tue, Aug 13, 2013 at 3:45 PM, Kasun Gajasinghe wrote: > You need to build components/jaggery. > This did not help, still getting the same error :( I am building from components root pom, so it shouldn't be a problem ..! > > > On Tue, Aug 13, 2013 at 3:39 PM, Sh

Re: [Dev] Build failure - org.wso2.carbon.mashup.utils

2013-08-13 Thread Shariq Muhammed
On Tue, Aug 13, 2013 at 6:15 PM, Madhuka Udantha wrote: > > > > On Tue, Aug 13, 2013 at 3:54 PM, Shariq Muhammed wrote: > >> >> On Tue, Aug 13, 2013 at 3:45 PM, Kasun Gajasinghe wrote: >> >>> You need to build components/jaggery. >>> >> &

Re: [Dev] Build failure - org.wso2.carbon.mashup.utils

2013-08-13 Thread Shariq Muhammed
platform at from root > pomfailed in a clean > repo because it could not find some of the parent poms referenced by > Jaggery. But this is a different issue. > > Thanks, > KasunG > > > On Tue, Aug 13, 2013 at 6:50 PM, Shariq Muhammed wrote: > >> On Tue, Aug 1

[Dev] Build failure in trunk - org.wso2.carbon.mediation.security

2013-08-22 Thread Shariq Muhammed
[INFO] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project org.wso2.carbon.mediation.security: Compilation failure [ERROR] /home/shariq/src/trunk/platform/co

Re: [Dev] SSO issue for tenant users

2013-10-09 Thread Shariq Muhammed
On Tue, Oct 8, 2013 at 11:03 PM, Amila De Silva wrote: > Hi, > Can't we take out the registry loading out of the sso hostobject and do > it from the acs.jag ? The thing is when populating the store/publisher > for a tenant we somehow have to load the tenant registry and doing it in > the sso host

Re: [Dev] SSO issue for tenant users

2013-10-09 Thread Shariq Muhammed
On Wed, Oct 9, 2013 at 6:33 PM, Nuwan Bandara wrote: > > > > On Wed, Oct 9, 2013 at 2:49 PM, Shariq Muhammed wrote: > >> On Tue, Oct 8, 2013 at 11:03 PM, Amila De Silva wrote: >> >>> Hi, >>> Can't we take out the registry loading out of the s

Re: [Dev] SSO issue for tenant users

2013-10-19 Thread Shariq Muhammed
Muhammed wrote: > On Wed, Oct 9, 2013 at 6:33 PM, Nuwan Bandara wrote: > >> >> >> >> On Wed, Oct 9, 2013 at 2:49 PM, Shariq Muhammed wrote: >> >>> On Tue, Oct 8, 2013 at 11:03 PM, Amila De Silva wrote: >>> >>>> Hi, >>>> C

[Dev] Should provide proper error messages when indexingConfiguration is missing in registry.xml

2013-10-23 Thread Shariq Muhammed
Hi folks, We came across an issue where a weird NPE was thrown after upgrading to latest RC packs, the server simply wouldn't start cz of this and there was no helpful error logs that suggest what the issue is. After some debugging we manage to identify that the issue was in registry.xml where "i

Re: [Dev] Should provide proper error messages when indexingConfiguration is missing in registry.xml

2013-10-24 Thread Shariq Muhammed
ply pointing out a code level improvement that would save someone's time .! > thanks > Eranda > > > On Thu, Oct 24, 2013 at 11:20 AM, Shariq Muhammed wrote: > >> Hi folks, >> >> We came across an issue where a weird NPE was thrown after upgrading to >

[Dev] Does script mediator support Python scripts ?

2013-11-12 Thread Shariq Muhammed
Hi folks, Can I know about $subject ?! In docs [1] and also Apache docs [2] it says Python is supported, by going through code [3] it seems we register only js, groovy, rb and jsEngine? Probably I am missing something here .. ?! Also is there any additional jars we need to copy etc ?! [1] - htt

Re: [Dev] Common problem with maintaining one file in many locations in our platform

2013-12-05 Thread Shariq Muhammed
Hi Johann, Yeah this is a common problem in the platform, where some features as well as products maintain certain config files and to override the default once. There are many config files like registr.xml that are maintained locally within products/ as well. In identity.xml case here I think we

Re: [Dev] Common problem with maintaining one file in many locations in our platform

2013-12-05 Thread Shariq Muhammed
l but if the feature itself doesn't have the necessary configs, if you install the feature using feature manager, there will be issues because some configs are missing. > > > On Thu, Dec 5, 2013 at 2:07 PM, Shariq Muhammed wrote: > >> Hi Johann, >> >> Yeah this

Re: [Dev] [Architecture] Proposed code repository restructuring & move to GitHub

2014-01-20 Thread Shariq Muhammed
On Tue, Jan 21, 2014 at 12:38 PM, Kishanthan Thangarajah < kishant...@wso2.com> wrote: > Yes, we don't need to separately say "service-stubs", it should be under > the components level as just another component. > Initially we extracted out the service stubs because it doesn't change frequently.

Re: [Dev] [Architecture] Proposed code repository restructuring & move to GitHub

2014-01-21 Thread Shariq Muhammed
gt; > On Tue, Jan 21, 2014 at 12:51 PM, Shariq Muhammed wrote: > >> On Tue, Jan 21, 2014 at 12:38 PM, Kishanthan Thangarajah < >> kishant...@wso2.com> wrote: >> >>> Yes, we don't need to separately say "service-stubs", it should be under >&g

Re: [Dev] What's the point of having carbon.port.offset in Hive scripts

2013-04-26 Thread Shariq Muhammed
On Fri, Apr 26, 2013 at 2:57 PM, Kasun Weranga wrote: > Hi all, > > Since this thread is too long with lots of suggestions. Let me summarize > all the things that has been discussed in here. > > Issue:- > > We are trying to give better user experience by handling the port offset > so user don't h

Re: [Dev] Tenants created from one node cannot login to other node even we have share the same user-store between two nodes

2013-05-15 Thread Shariq Muhammed
Hi Dinusha, We store some information like activation flags etc in the registry, so you need to share the registry. In a typical deployment the pattern is to share the governance registry across all the services (AS, DSS, ESB) etc and share the config registry across the service cluster .. as in s

Re: [Dev] [Urgent][API Manager] Issue when we deploy API to other server

2013-05-22 Thread Shariq Muhammed
On Sun, May 19, 2013 at 8:46 PM, Afkham Azeez wrote: > > > On Mon, May 20, 2013 at 8:04 AM, Supun Malinga wrote: > >> Hi Guys, >> >> For C5 I think we need to permanently fix the CC related issues. This >> includes both the API related issues we have and the user level issues that >> pops up tim

Re: [Dev] [Urgent][API Manager] Issue when we deploy API to other server

2013-05-23 Thread Shariq Muhammed
On Wed, May 22, 2013 at 9:37 PM, Afkham Azeez wrote: > > > On Thu, May 23, 2013 at 4:05 AM, Shariq Muhammed wrote: > >> On Sun, May 19, 2013 at 8:46 PM, Afkham Azeez wrote: >> >>> >>> >>> On Mon, May 20, 2013 at 8:04 AM, Supun Malinga wrote:

Re: [Dev] Need occasional DepSync polling or depsync message replay

2013-05-28 Thread Shariq Muhammed
On Fri, May 24, 2013 at 11:19 PM, Afkham Azeez wrote: > > > On Sat, May 25, 2013 at 11:37 AM, Supun Malinga wrote: > >> -- >> Supun Malinga >> Sent from my phone. >> >> On 24 May 2013 02:37, "Afkham Azeez" wrote: >> > >> > There is no guarantee that the cluster message will be reliably >> deli

Re: [Dev] Can we have a single string for the domain name of the tenant

2013-05-29 Thread Shariq Muhammed
On Wed, May 29, 2013 at 5:13 AM, Supun Malinga wrote: > > > > On Wed, May 29, 2013 at 5:41 PM, Afkham Azeez wrote: > >> >> >> On Wed, May 29, 2013 at 5:39 PM, Supun Malinga wrote: >> >>> Hi, >>> >>> On Wed, May 29, 2013 at 5:36 PM, Afkham Azeez wrote: >>> On Wed, May 29, 2013 at

Re: [Dev] Registering a tomcat valve programmatically

2013-07-11 Thread Shariq Muhammed
On Thu, Jul 11, 2013 at 2:10 PM, Dinusha Senanayaka wrote: > > > On Thu, Jul 11, 2013 at 1:50 PM, Afkham Azeez wrote: > >> I took a look at the code, and the only problem I see is the order of >> registering valves. If the ordering is not a problem, then we can easily >> implement it. I will look

Re: [Dev] Registering a tomcat valve programmatically

2013-07-11 Thread Shariq Muhammed
On Thu, Jul 11, 2013 at 2:33 PM, Dinusha Senanayaka wrote: > Hi Shariq, > > On Thu, Jul 11, 2013 at 2:24 PM, Shariq Muhammed wrote: > >> On Thu, Jul 11, 2013 at 2:10 PM, Dinusha Senanayaka wrote: >> >>> >>> >>> On Thu, Jul 11, 2013 at 1:50 PM,