You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Jacopo Cappellato (JIRA)" <ji...@apache.org> on 2015/04/10 17:30:12 UTC

[jira] [Closed] (OFBIZ-6061) When logging out in a multi-tenant environment, loginWorker strips the tenantId from the delegator - reverting to default. This is fine for the back-end, but it causes havoc with front-end applications.

     [ https://issues.apache.org/jira/browse/OFBIZ-6061?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jacopo Cappellato closed OFBIZ-6061.
------------------------------------

> When logging out in a multi-tenant environment, loginWorker strips the tenantId from the delegator - reverting  to default.  This is fine for the back-end, but it causes havoc with front-end applications. 
> -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-6061
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-6061
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: framework
>    Affects Versions: Trunk, 12.04.04, 12.04.05, 13.07.01
>            Reporter: Gavin Mabie
>            Assignee: Gavin Mabie
>            Priority: Minor
>              Labels: login, multi-tenant
>             Fix For: Release Branch 11.04, Release Branch 12.04, Release Branch 13.07, Trunk
>
>         Attachments: MultiTenantLoginWorker.patch
>
>
> 1. When logging out in a multi-tenant environment, users have the ability to 2. specify a tenantId when they want to login again;
> 3. This is the result of the doBasicLogout method in LoginWorker.java which basically resets the delegator to default when a logout occurs;
> 4. While this works well for back-end multi-tenant applications, it presents an issue with tenant-specific applications.  The tenant-specific application data resides in the tenant db andthis creates problems when the logout resets to 
> default.
> 5. This proposal utilises the entityDelegatorName as specified in the component's web.xml to:
> 5.1 Check if there is a tenant involved, in which case it will use this as reset delegator;
> 5.2 If not, it reverts to the default delegator.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)