AW: multitenant users?

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

AW: multitenant users?

c.schinzer-2
Dale,


This seems to be a manifest bug which I have reported on last week on this list. I have done some issue analysis and will open a Jira next thing.

Imho the issue is caused by wrong assumptions in ContextFilter.java which defines the delegator to use and - even with multitenant databases - results in default delegatorr instead of the tenant's .

@Jacques + other committers: I definitely require assistance to fix this since my knowledge and understanding of session parameter handling does not suffice.

Along with the Jira ticket, I shall post my draft solution.

Regards


Carsten

------Originalnachricht------
Von: Dale E. Moore
An:[hidden email]
Antwort an:[hidden email]
Betreff: multitenant users?
Gesendet: 28. Aug. 2012 16:20

I'm having a spot of problem logging in and using tenant DEMO1 and DEMO2.

If I log in to DEMO1 or DEMO2 tenant as admin and create users I get errors
when I try to use those users.

If I run

./ant load-tenant-admin-user-login -DdelegatorId=DEMO1
-DuserLoginId=adminDemo

which seems to run fine I get

The Following Errors Occurred:
following error occurred during login: User not found.

I created my ofBiz install via:

svn co https://svn.apache.org/repos/asf/ofbiz/trunk ofbiz.12.04-tenants
cd ofbiz.12.04-tenants
./ant load-demo-multitenant
vi framework/common/config/general.properties
Change multitenant to Y
./ant start
http://localhost:8080/catalog

Are there instructions, documentation or hints somewhere that I am
overlooking that guide me in the setup of multitenant installation, setup
and configuration? If I can get past this step my next step will be to add a
new tenant, over which I've already started scratching my head.

I appreciate any suggestions, guidance or help! Would somebody please tell
me where to go (grin?)

I look forward to hearing from you,
[hidden email]



--
View this message in context: http://ofbiz.135035.n4.nabble.com/multitenant-users-tp4635997.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


Gesendet mit BlackBerry® Webmail von Telekom Deutschland  
Reply | Threaded
Open this post in threaded view
|

Re: multitenant users?

Jacques Le Roux
Administrator
Dale, Carsten,

To help you we 1st need to know which Release.revision you are using. It would be easier to help you Dale if you used the trunk
for this point. Then if we find and fix a bug it will be backported to R12.04

Jacques

From: <[hidden email]>

> Dale,
>
>
> This seems to be a manifest bug which I have reported on last week on this list. I have done some issue analysis and will open a
> Jira next thing.
>
> Imho the issue is caused by wrong assumptions in ContextFilter.java which defines the delegator to use and - even with multitenant
> databases - results in default delegatorr instead of the tenant's .
>
> @Jacques + other committers: I definitely require assistance to fix this since my knowledge and understanding of session parameter
> handling does not suffice.
>
> Along with the Jira ticket, I shall post my draft solution.
>
> Regards
>
>
> Carsten
>
> ------Originalnachricht------
> Von: Dale E. Moore
> An:[hidden email]
> Antwort an:[hidden email]
> Betreff: multitenant users?
> Gesendet: 28. Aug. 2012 16:20
>
> I'm having a spot of problem logging in and using tenant DEMO1 and DEMO2.
>
> If I log in to DEMO1 or DEMO2 tenant as admin and create users I get errors
> when I try to use those users.
>
> If I run
>
> ./ant load-tenant-admin-user-login -DdelegatorId=DEMO1
> -DuserLoginId=adminDemo
>
> which seems to run fine I get
>
> The Following Errors Occurred:
> following error occurred during login: User not found.
>
> I created my ofBiz install via:
>
> svn co https://svn.apache.org/repos/asf/ofbiz/trunk ofbiz.12.04-tenants
> cd ofbiz.12.04-tenants
> ./ant load-demo-multitenant
> vi framework/common/config/general.properties
> Change multitenant to Y
> ./ant start
> http://localhost:8080/catalog
>
> Are there instructions, documentation or hints somewhere that I am
> overlooking that guide me in the setup of multitenant installation, setup
> and configuration? If I can get past this step my next step will be to add a
> new tenant, over which I've already started scratching my head.
>
> I appreciate any suggestions, guidance or help! Would somebody please tell
> me where to go (grin?)
>
> I look forward to hearing from you,
> [hidden email]
>
>
>
> --
> View this message in context: http://ofbiz.135035.n4.nabble.com/multitenant-users-tp4635997.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>
>
> Gesendet mit BlackBerry® Webmail von Telekom Deutschland
>
Reply | Threaded
Open this post in threaded view
|

Re: multitenant users?

Dale E. Moore
Carsten, Jacques;

You folks are wonderful! Thanks for your prompt replies and assistance!

I used "svn co https://svn.apache.org/repos/asf/ofbiz/trunk ofbiz.12.04-tenants" yesterday to create this instance, is that sufficient information to help you recognize my situation? Is there some definitive marking in the svn check out target (folder, file, contents?) that identify the source version? The earliest date/time in the target folder is "Aug 24 11:33."

I've been wondering if demo-stable.ofbiz.apache.org and demo-trunk instances could have multitenant=Y in framework/common/config/general.properties. I would LOVE to be able to verify any of my instances against your gold standards. Is that possible?

Also, I was wondering if it would be helpful to have multitenant test cases to run against default, DEMO1 and DEMO2 tenants as a part of your continuous integration. I might look into contributing here.

Again, thanks for your help and please don't be shy asking for my help (or telling me to do it the right way!)
DaleEMoore@gMail.Com
Reply | Threaded
Open this post in threaded view
|

Re: multitenant users?

Dale E. Moore
I ran my process, below, against release12.04 and got the same results:

The Following Errors Occurred:
following error occurred during login: User not found.

I built this instance via:

dalem@QnD:~/workspace$ svn co https://svn.apache.org/repos/asf/ofbiz/branches/release12.04 ofbiz.12.04
cd ofbiz.12.04
./ant load-demo-multitenant
vi framework/common/config/general.properties
Change multitenant to Y
dalem@QnD:~/workspace/ofbiz.12.04-tenants$ ./ant load-tenant-admin-user-login -DdelegatorId=DEMO1 -DuserLoginId=adminDemo
dalem@QnD:~/workspace/ofbiz.12.04-tenants$ ./ant load-tenant-admin-user-login -DdelegatorId=DEMO2 -DuserLoginId=adminDemo
./ant start
http://localhost:8080/catalog
Reply | Threaded
Open this post in threaded view
|

Re: multitenant users?

Jacques Le Roux
Administrator
In reply to this post by Dale E. Moore
From: "Dale E. Moore" <[hidden email]>

> Carsten, Jacques;
>
> You folks are wonderful! Thanks for your prompt replies and assistance!
>
> I used "svn co https://svn.apache.org/repos/asf/ofbiz/trunk
> ofbiz.12.04-tenants" yesterday to create this instance, is that sufficient
> information to help you recognize my situation? Is there some definitive
> marking in the svn check out target (folder, file, contents?) that identify
> the source version? The earliest date/time in the target folder is "Aug 24
> 11:33."

You can find the Release.revision at bottom of each backend screen
 
> I've been wondering if demo-stable.ofbiz.apache.org and demo-trunk instances
> could have multitenant=Y in framework/common/config/general.properties. I
> would LOVE to be able to verify any of my instances against your gold
> standards. Is that possible?

No sorry would be too complicated for us to maintain

> Also, I was wondering if it would be helpful to have multitenant test cases
> to run against default, DEMO1 and DEMO2 tenants as a part of your continuous
> integration. I might look into contributing here.

This would be certainly helpful

Jacques

> Again, thanks for your help and please don't be shy asking for my help (or
> telling me to do it the right way!)
> [hidden email]
>
>
>
> --
> View this message in context: http://ofbiz.135035.n4.nabble.com/AW-multitenant-users-tp4636001p4636007.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
Reply | Threaded
Open this post in threaded view
|

Re: multitenant users?

Jacques Le Roux
Administrator
In reply to this post by Dale E. Moore
Carsten will open a Jira with what he found so far. It must be related with the issue you spotted, anyway we will see...

Jacques

From: "Dale E. Moore" <[hidden email]>

>I ran my process, below, against release12.04 and got the same results:
>
> The Following Errors Occurred:
> following error occurred during login: User not found.
>
> I built this instance via:
>
> dalem@QnD:~/workspace$ svn co
> https://svn.apache.org/repos/asf/ofbiz/branches/release12.04 ofbiz.12.04
> cd ofbiz.12.04
> ./ant load-demo-multitenant
> vi framework/common/config/general.properties
> Change multitenant to Y
> dalem@QnD:~/workspace/ofbiz.12.04-tenants$ ./ant
> load-tenant-admin-user-login -DdelegatorId=DEMO1 -DuserLoginId=adminDemo
> dalem@QnD:~/workspace/ofbiz.12.04-tenants$ ./ant
> load-tenant-admin-user-login -DdelegatorId=DEMO2 -DuserLoginId=adminDemo
> ./ant start
> http://localhost:8080/catalog
>
>
>
> --
> View this message in context: http://ofbiz.135035.n4.nabble.com/AW-multitenant-users-tp4636001p4636009.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
Reply | Threaded
Open this post in threaded view
|

Re: multitenant users?

c.schinzer-2
In reply to this post by c.schinzer-2
All,

I have opened JIRA ticket as follows and added my first analysis results as
a comment.

https://issues.apache.org/jira/browse/OFBIZ-5019

As indicated, I might need some guidance for the context parameter
setting/persistence of 'tenantId'. The stuff to change in ContextFilter
then is pretty straightforward.

Regards


Carsten


2012/8/29 <[hidden email]>

> Dale,
>
>
> This seems to be a manifest bug which I have reported on last week on this
> list. I have done some issue analysis and will open a Jira next thing.
>
> Imho the issue is caused by wrong assumptions in ContextFilter.java which
> defines the delegator to use and - even with multitenant databases -
> results in default delegatorr instead of the tenant's .
>
> @Jacques + other committers: I definitely require assistance to fix this
> since my knowledge and understanding of session parameter handling does not
> suffice.
>
> Along with the Jira ticket, I shall post my draft solution.
>
> Regards
>
>
> Carsten
>
> ------Originalnachricht------
> Von: Dale E. Moore
> An:[hidden email]
> Antwort an:[hidden email]
> Betreff: multitenant users?
> Gesendet: 28. Aug. 2012 16:20
>
> I'm having a spot of problem logging in and using tenant DEMO1 and DEMO2.
>
> If I log in to DEMO1 or DEMO2 tenant as admin and create users I get errors
> when I try to use those users.
>
> If I run
>
> ./ant load-tenant-admin-user-login -DdelegatorId=DEMO1
> -DuserLoginId=adminDemo
>
> which seems to run fine I get
>
> The Following Errors Occurred:
> following error occurred during login: User not found.
>
> I created my ofBiz install via:
>
> svn co https://svn.apache.org/repos/asf/ofbiz/trunk ofbiz.12.04-tenants
> cd ofbiz.12.04-tenants
> ./ant load-demo-multitenant
> vi framework/common/config/general.properties
> Change multitenant to Y
> ./ant start
> http://localhost:8080/catalog
>
> Are there instructions, documentation or hints somewhere that I am
> overlooking that guide me in the setup of multitenant installation, setup
> and configuration? If I can get past this step my next step will be to add
> a
> new tenant, over which I've already started scratching my head.
>
> I appreciate any suggestions, guidance or help! Would somebody please tell
> me where to go (grin?)
>
> I look forward to hearing from you,
> [hidden email]
>
>
>
> --
> View this message in context:
> http://ofbiz.135035.n4.nabble.com/multitenant-users-tp4635997.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>
>
> Gesendet mit BlackBerry® Webmail von Telekom Deutschland
Reply | Threaded
Open this post in threaded view
|

UtilCache - Cache Cleaning

Saroj C
In reply to this post by Dale E. Moore
Dear All,
  We were trying to use UtilCache and configure the cache to expire after
60 mins. So, will OfBiz engine clear the cache after 60 mins or we need to
have a mechanism to clear the Expired Cache ?

Thanks and Regards,
Saroj
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you


Reply | Threaded
Open this post in threaded view
|

Re: UtilCache - Cache Cleaning

Jacques Le Roux
Administrator
As long as you are not using a cluster (many machines, one DB) it's ok
Else see https://cwiki.apache.org/confluence/display/OFBIZ/Distributed+Entity+Cache+Clear+Mechanism

Jacques

From: "Saroj C" <[hidden email]>

> Dear All,
>  We were trying to use UtilCache and configure the cache to expire after
> 60 mins. So, will OfBiz engine clear the cache after 60 mins or we need to
> have a mechanism to clear the Expired Cache ?
>
> Thanks and Regards,
> Saroj
> =====-----=====-----=====
> Notice: The information contained in this e-mail
> message and/or attachments to it may contain
> confidential or privileged information. If you are
> not the intended recipient, any dissemination, use,
> review, distribution, printing or copying of the
> information contained in this e-mail message
> and/or attachments to it are strictly prohibited. If
> you have received this communication in error,
> please notify us by reply e-mail or telephone and
> immediately and permanently delete the message
> and any attachments. Thank you
>
>
>