[
https://issues.apache.org/jira/browse/OFBIZ-4130?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pierre Smits updated OFBIZ-4130:
--------------------------------
Attachment: error.log
When creating a new tenant with ./ant create-tenant after having applied meta-tenant-db.patch a lot of errors are generated. As can be seen in attached error.log file.
I have set the parameters of the create-tenant actions to load the seed data into the database of the tenant in the Derby rdbms.
The errors are typically:
Failure in findOne operation for entity [Component]: org.ofbiz.entity.GenericEntityException: There is no datasource (Helper) configured for the entity-group [org.ofbiz.tenant]; wa$
Exception: org.ofbiz.entity.GenericEntityException
Message: There is no datasource (Helper) configured for the entity-group [org.ofbiz.tenant]; was trying to find datesource (helper) for entity [Component]
After a ./ant start I see the Tenant and the TenantDatasource when accessing the setup with the (general) admin account.
When using the tenant-admin id to log into the tenant I can access the entity data maintenance functionality. I don't see the Tenant, the TenantComponent and TenantDatasource tables. However, I see the TenantKeyEncryptionKey table. I am not sure whether this should happen or not.
* Importing seed data through 'xml import data readers as a tenant-admin in a tenant generated no errors.
* Importing seed-initial data through 'xml import data readers as a tenant-admin in a tenant generated no errors.
* Importing seed-ext data through 'xml import data readers as a tenant-admin in a tenant generated no errors, as there was no data.
* Importing demo data through 'xml import data readers as a tenant-admin in a tenant generated an error on 'TenantDemoData.xml', which is to be expected as it tries to enter data into the Tenant and TenantDatasource tables where the tenant-admin id has no access to.
The error generated are in the same line as stated above.
> Tenant super user (tenant admin) can view all database details of all tenants
> -----------------------------------------------------------------------------
>
> Key: OFBIZ-4130
> URL:
https://issues.apache.org/jira/browse/OFBIZ-4130> Project: OFBiz
> Issue Type: Bug
> Components: framework
> Affects Versions: Release Branch 10.04, Release Branch 11.04, SVN trunk, Release Branch 12.04, Release Branch 13.07
> Reporter: Pierre Smits
> Assignee: Jacopo Cappellato
> Priority: Critical
> Fix For: Release Branch 10.04, Release Branch 11.04, SVN trunk, Release 11.04.01, Release Branch 12.04, Release Branch 13.07
>
> Attachments: OFBIZ-4130-MultiTenant-visibilty.patch, error.log, meta-tenant-db.patch
>
>
> When a new tenant is created and the super user of the tenant (the tenant-admin) logs in to WebTools and views the tables Tenant and TenantDataSource he/she can see all details of the tenant databases, incl TenantName, userID and password of the tenant databases.
--
This message was sent by Atlassian JIRA
(v6.2#6252)