Return-Path: X-Original-To: apmail-ofbiz-dev-archive@www.apache.org Delivered-To: apmail-ofbiz-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 66DD1DF70 for ; Tue, 18 Sep 2012 14:09:09 +0000 (UTC) Received: (qmail 35046 invoked by uid 500); 18 Sep 2012 14:09:08 -0000 Delivered-To: apmail-ofbiz-dev-archive@ofbiz.apache.org Received: (qmail 35028 invoked by uid 500); 18 Sep 2012 14:09:08 -0000 Mailing-List: contact dev-help@ofbiz.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ofbiz.apache.org Delivered-To: mailing list dev@ofbiz.apache.org Received: (qmail 34978 invoked by uid 99); 18 Sep 2012 14:09:08 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Sep 2012 14:09:08 +0000 Date: Wed, 19 Sep 2012 01:09:08 +1100 (NCT) From: "Dale E. Moore (JIRA)" To: dev@ofbiz.apache.org Message-ID: <1593143466.92427.1347977348666.JavaMail.jiratomcat@arcas> In-Reply-To: <1078870971.11441.1346243647437.JavaMail.jiratomcat@arcas> Subject: [jira] [Updated] (OFBIZ-5019) Multitenant delegator assignment not working correctly MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/OFBIZ-5019?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:all-tabpanel ] Dale E. Moore updated OFBIZ-5019: --------------------------------- Comment: was deleted (was: Please pardon my ignorance Carsten, but; I would like to try your pat= ch and see if I'm able to start using ofBiz multitenant and wonder if I'm p= roceeding properly. Here is what I've done: 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= =3Dcom.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel to parent f= older. patch -p0 < ../OFBIZ-5019_Multitenant_delegator_assignment_not_working_corr= ectly.patch ./ant load-tenant-admin-user-login -DdelegatorId=3DDEMO1 -DuserLoginId=3Dad= minDemo ./ant load-tenant-admin-user-login -DdelegatorId=3DDEMO2 -DuserLoginId=3Dad= minDemo ./ant start Here are the results from my attempt to start ofBiz: Buildfile: /home/dalem/workspace/ofbiz.trunk/build.xml start: [java] Start.java using configuration file org/ofbiz/base/start/start.= properties [java] Set OFBIZ_HOME to - /home/dalem/workspace/ofbiz.trunk [java] Exception in thread "main" org.ofbiz.base.start.StartupExceptio= n: Couldn't create server socket(/127.0.0.1:10523) [java] at org.ofbiz.base.start.Start$AdminPortThread.(Start.= java:387) [java] at org.ofbiz.base.start.Start.createListenerThread(Start.ja= va:140) [java] at org.ofbiz.base.start.Start.init(Start.java:199) [java] at org.ofbiz.base.start.Start.main(Start.java:112) [java] Caused by: java.net.BindException: Address already in use [java] at java.net.PlainSocketImpl.socketBind(Native Method) [java] at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:383) [java] at java.net.ServerSocket.bind(ServerSocket.java:328) [java] at java.net.ServerSocket.(ServerSocket.java:194) [java] at org.ofbiz.base.start.Start$AdminPortThread.(Start.= java:385) [java] ... 3 more [java] Java Result: 1 BUILD SUCCESSFUL Total time: 1 second I am suspicious that this is not the result for which you had hoped. Perhaps I should start from some ofBiz version other than https://svn.apach= e.org/repos/asf/ofbiz/trunk? Any suggestions you have are very much appreciated, DaleEMoore@gMail.Com) =20 > 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 =3D "Y" > Tenant with no Domain setting or Tenant using different domain for backen= d applications > Reporter: Carsten Schinzer > Labels: authentication, context, multitenancy, security > Attachments: OFBIZ-5019_Multitenant_delegator_assignment_not_work= ing_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 conte= xt variable defined in web.xml to determin the delegator to be used (ie. th= e database to use for data lookups etc). > The issue manifests as follows: > * the wrong data is read for standard backoffice displays (e.g. orders, a= ccounts, etc.); it is the dataa from the default datasource, not the tenant= =C2=B4s data source > * in the backend apps certain functions require authentication (checked d= ynamically) 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 administrato= rs For more information on JIRA, see: http://www.atlassian.com/software/jira