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

Dale E. Moore edited comment on OFBIZ-5019 at 9/19/12 3:44 AM:
---------------------------------------------------------------

When I try to login as adminDemo, ofbiz, DEMO1; DEMO2; or, <blank> for default 
I get:
The Following Errors Occurred:
following error occurred during login: User not found.

When I login as admin, ofbiz, <blank> I can find no parties named adminDemo. I 
think that this is as it should be; the each adminDemo party should be in it's 
tenant DB, right?

Here's what I did to setup my test run:

svn co https://svn.apache.org/repos/asf/ofbiz/trunk ofbiz.trunk 
cd ofbiz.trunk 
./ant load-demo-multitenant 
vi framework/common/config/general.properties 
Change multitenant to Y 
Download patch from 
https://issues.apache.org/jira/browse/OFBIZ-5019?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 to parent folder. 
patch -p0 < 
../OFBIZ-5019_Multitenant_delegator_assignment_not_working_correctly.patch
./ant load-tenant-admin-user-login -DdelegatorId=DEMO1 -DuserLoginId=adminDemo 
./ant load-tenant-admin-user-login -DdelegatorId=DEMO2 -DuserLoginId=adminDemo 
./ant start 

Using Release-revision : trunk-r1387076,
[email protected]
                
      was (Author: daleemoore):
    Please pardon my previous comment (if my delete was ignored and it's still 
present,) I still had another instance of ofBiz running. ofBiz launches 
successfully!

When I try to login as adminDemo, ofbiz, DEMO1; DEMO2; or, <blank> for default 
I get:
The Following Errors Occurred:
following error occurred during login: User not found.

When I login as admin, ofbiz, <blank> I can find no parties named adminDemo.

Using Release-revision : trunk-r1387076,
[email protected]

                  
> Multitenant delegator assignment not working  correctly
> -------------------------------------------------------
>
>                 Key: OFBIZ-5019
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-5019
>             Project: OFBiz
>          Issue Type: Bug
>          Components: ALL APPLICATIONS, framework
>    Affects Versions: SVN trunk
>         Environment: multitenantuse = "Y"
> Tenant with no Domain setting or Tenant using different domain for backend 
> applications
>            Reporter: Carsten Schinzer
>              Labels: authentication, context, multitenancy, security
>         Attachments: 
> OFBIZ-5019_Multitenant_delegator_assignment_not_working_correctly.patch
>
>   Original Estimate: 168h
>  Remaining Estimate: 168h
>
> This issue arises when Multitenancy is in use. It arises only on backend 
> applications (as typically the frontend store applications will use a context 
> variable defined in web.xml to determin the delegator to be used (ie. the 
> database to use for data lookups etc).
> The issue manifests as follows:
> * the wrong data is read for standard backoffice displays (e.g. orders, 
> accounts, etc.); it is the dataa from the default datasource, not the 
> tenant´s data source
> * in the backend apps certain functions require authentication (checked 
> dynamically) and this will fail when the default delegator is used since the 
> tenant's user accounts will differ (if not in name then in password hashes) 
> from the default datasource -- this leads to authentication warnings all over 
> the place
> * one will not be able to mainpulate data of course, either

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to