ofbiz-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Taher Alkhateeb (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (OFBIZ-9278) Login after multitenant
Date Fri, 29 Sep 2017 15:04:00 GMT

    [ https://issues.apache.org/jira/browse/OFBIZ-9278?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16185945#comment-16185945
] 

Taher Alkhateeb commented on OFBIZ-9278:
----------------------------------------

So I'm not sure based on this whether the problem is from the build system or the framework
itself during the loading process. I note the following sequence when calling the task createTenant:

# generate a template file for the tenant database
# generate a template file for the admin user of the tenant
# load the tenant information on the default delegator "default" using the tenant template
# load the actual data on the tenant delegator i.e. "default#tenantId"
# load the admin user on the tenant delegator i.e. "default#tenantId"

So maybe the mistake is in loading the tenant database information on the "delegator" delegator
because that maps to org.apache.ofbiz instead of org.apache.ofbiz.tenant? I'm not sure, but
I suspect this might be the reason.


> Login after multitenant
> -----------------------
>
>                 Key: OFBIZ-9278
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-9278
>             Project: OFBiz
>          Issue Type: Bug
>    Affects Versions: Release Branch 16.11
>         Environment: linux mint 17.1, MySql 5.5.54
>            Reporter: Guillaume Fortin
>            Priority: Minor
>              Labels: multitenancy, multitenant
>         Attachments: OFBIZ-9278.patch
>
>
> I want to create two tenants named respectively e3 and psp. To create
> them, I use those command lines:
> ./gradlew createTenant -PtenantId=PSP -PtenantReaders=seed,seed-initial
> -PdbPlatform=M -PdbUser=XXXX -PdbPassword=XXXX
> ./gradlew createTenant -PtenantId=E3 -PtenantReaders=seed,seed-initial
> -PdbPlatform=M -PdbUser=XXXX -PdbPassword=XXXXX
> After creating the first tenant, I was able to connect with psp-admin
> user. After I created the second one, I was able to connect to the second
> database e3 with the e3-admin user but impossible to connect again on the
> PSP application.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message