Re: [Dev] [AF] Database user creation fails with the same user name in different applications.

2015-06-03 Thread Amalka Subasinghe
Hi Pirin, Isn't this issue apply to database names? Can you create 2 databases with same name under two application? On Wed, Jun 3, 2015 at 2:08 PM, Pirinthapan Mahendran wrote: > Hi Amalka, > > The issue is not only during the database creation time. I am considering > the following scenario

Re: [Dev] [AF] Database user creation fails with the same user name in different applications.

2015-06-03 Thread Pirinthapan Mahendran
Hi Amalka, The issue is not only during the database creation time. I am considering the following scenario : After a user created the databases with different names under different apps, he cant create the user (by clicking the button "Add New User") with the same name under these databases. Tha

Re: [Dev] [AF] Database user creation fails with the same user name in different applications.

2015-06-03 Thread Amalka Subasinghe
Without creating user with database name, can't we generate 7 character user name randomly? There's another scenario: if we try create a new database with a name which was deleted earlier, that does not allow to create the user again with the same name. (user is exist although we remove the databa

Re: [Dev] [AF] Database user creation fails with the same user name in different applications.

2015-06-02 Thread Danushka Fernando
Hi Pirinthapan I guess what we need to do is create the final user name as following _ So this won't support by OOTB in SS. @Dimuthu : Is it OK if we add another service to RSSAdmin service to create a application specific database user? WDYT? Thanks & Regards Danushka Fernando Software Engine

Re: [Dev] [AF] Database user creation fails with the same user name in different applications.

2015-06-02 Thread Pirinthapan Mahendran
Hi Rajeevan, The application key is not globally unique. Its unique only within each tenant. So we can't use application key to uniquely identify a user name. Thanks. Mahendran Pirinthapan Software Engineer | WSO2 Inc. Mobile +94772378732. On Wed, Jun 3, 2015 at 12:05 PM, Rajeevan Vimalanatha

Re: [Dev] [AF] Database user creation fails with the same user name in different applications.

2015-06-02 Thread Rajeevan Vimalanathan
Hi Pirinthapan, Since the user name is not unique at the tenant domain (but it should be unique at application domain), can't we simply use the following pattern to the verification of user name? _ I hope this should resolve your issue. Thanks, Rajeevan On Wed, Jun 3, 2015 at 11:52 AM, Pirinth

[Dev] [AF] Database user creation fails with the same user name in different applications.

2015-06-02 Thread Pirinthapan Mahendran
Hi all, In App Factory, the database users are application local. That means if we create a database user under one application its not visible to another application even within the same tenant. So if we try to create a user with the same name in different applications within same tenant, we are