Gavin Mabie created OFBIZ-6061: ---------------------------------- Summary: 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: 13.07.01, 12.04.05, 12.04.04, Trunk Reporter: Gavin Mabie Assignee: Gavin Mabie Priority: Minor Fix For: Trunk, Release Branch 13.07, Release Branch 12.04, Release Branch 11.04
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)