[jira] [Commented] (OFBIZ-9278) Login after multitenant

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (OFBIZ-9278) Login after multitenant

Nicolas Malin (Jira)

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

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

Yesssss! I can confirm after testing that the issue was with readers=tenant. This patch fixes the issue even though we are still left with some weird behavior for default password reset. I tested with tenantId=first and I was able to login with "first-admin" / "ofbiz" / "first"

So the problem was that before my patch above, no matter what you type, you always end up in the default database, not the tenant database because nothing gets loaded to org.apache.ofbiz.tenant. What a creepy little bug huh!

> 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
>            Assignee: Taher Alkhateeb
>            Priority: Minor
>              Labels: multitenancy, multitenant
>         Attachments: OFBIZ-9278.patch, 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)