[jira] [Created] (OFBIZ-4836) Jackrabbit (jcr) doesn't work nice with multi-tenancy aspect of OFBiz

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

[jira] [Created] (OFBIZ-4836) Jackrabbit (jcr) doesn't work nice with multi-tenancy aspect of OFBiz

Nicolas Malin (Jira)
Pierre Smits created OFBIZ-4836:
-----------------------------------

             Summary: Jackrabbit (jcr) doesn't work nice with multi-tenancy aspect of OFBiz
                 Key: OFBIZ-4836
                 URL: https://issues.apache.org/jira/browse/OFBIZ-4836
             Project: OFBiz
          Issue Type: Bug
          Components: framework
    Affects Versions: SVN trunk
            Reporter: Pierre Smits
            Priority: Blocker
             Fix For: SVN trunk


When having multiple tenants and one of the users (of a tenant) creates (uploads) a file to JCR then this file is visible to all users of all tenants

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (OFBIZ-4836) Jackrabbit (jcr) doesn't work nice with multi-tenancy aspect of OFBiz

Nicolas Malin (Jira)

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

Sascha Rodekamp commented on OFBIZ-4836:
----------------------------------------

Hi Pierre,
yes that's possible. A multi-tenancy support isn't implemented yet.
You welcome to provide a patch.

Which information do we need in a content node to provide multi-tenancy?
 
               

> Jackrabbit (jcr) doesn't work nice with multi-tenancy aspect of OFBiz
> ---------------------------------------------------------------------
>
>                 Key: OFBIZ-4836
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4836
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk
>            Reporter: Pierre Smits
>            Priority: Blocker
>             Fix For: SVN trunk
>
>
> When having multiple tenants and one of the users (of a tenant) creates (uploads) a file to JCR then this file is visible to all users of all tenants

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[jira] [Updated] (OFBIZ-4836) Jackrabbit (jcr) doesn't work nice with multi-tenancy aspect of OFBiz

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-4836?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sascha Rodekamp updated OFBIZ-4836:
-----------------------------------

    Issue Type: Sub-task  (was: Bug)
        Parent: OFBIZ-4659
   

> Jackrabbit (jcr) doesn't work nice with multi-tenancy aspect of OFBiz
> ---------------------------------------------------------------------
>
>                 Key: OFBIZ-4836
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4836
>             Project: OFBiz
>          Issue Type: Sub-task
>          Components: framework
>    Affects Versions: SVN trunk
>            Reporter: Pierre Smits
>            Priority: Blocker
>             Fix For: SVN trunk
>
>
> When having multiple tenants and one of the users (of a tenant) creates (uploads) a file to JCR then this file is visible to all users of all tenants

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (OFBIZ-4836) Jackrabbit (jcr) doesn't work nice with multi-tenancy aspect of OFBiz

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

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

Pierre Smits commented on OFBIZ-4836:
-------------------------------------

Hi Sascha,

I am not that well experienced with Jackrabbit, but I would say that the best solution would be similar to multi-tenancy in OFBiz. There we set up for each tenant a different set of databases. For that we use the tenantID as the delegator. And the security is fairly straight-forward. Only tenant users (in accordance with the security schema for him/her) have access to their own tenant data, and perform actions/functions accordingly.

That should also work with JCR, i think. But I might be mistaken.

Wouldn't creating tenants as nodes introduce the issue (risk?) of a user of a higher node having access to data in lower nodes? That would be hard to sell to (potential) customers.

What if there was a repository for each tenant? Is that feasible?

Regards,

Pierre
               

> Jackrabbit (jcr) doesn't work nice with multi-tenancy aspect of OFBiz
> ---------------------------------------------------------------------
>
>                 Key: OFBIZ-4836
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4836
>             Project: OFBiz
>          Issue Type: Sub-task
>          Components: framework
>    Affects Versions: SVN trunk
>            Reporter: Pierre Smits
>            Priority: Blocker
>             Fix For: SVN trunk
>
>
> When having multiple tenants and one of the users (of a tenant) creates (uploads) a file to JCR then this file is visible to all users of all tenants

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (OFBIZ-4836) Jackrabbit (jcr) doesn't work nice with multi-tenancy aspect of OFBiz

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

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

Sascha Rodekamp commented on OFBIZ-4836:
----------------------------------------

Hi Pierre,
yes i would also go this way. A separate repository for each tenant. Having "tenant nodes" would be a high effort and a lot of code. A lot of code means many potential security issues :-)





               

> Jackrabbit (jcr) doesn't work nice with multi-tenancy aspect of OFBiz
> ---------------------------------------------------------------------
>
>                 Key: OFBIZ-4836
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4836
>             Project: OFBiz
>          Issue Type: Sub-task
>          Components: framework
>    Affects Versions: SVN trunk
>            Reporter: Pierre Smits
>            Priority: Blocker
>             Fix For: SVN trunk
>
>
> When having multiple tenants and one of the users (of a tenant) creates (uploads) a file to JCR then this file is visible to all users of all tenants

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (OFBIZ-4836) Jackrabbit (jcr) doesn't work nice with multi-tenancy aspect of OFBiz

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

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

Pierre Smits commented on OFBIZ-4836:
-------------------------------------

Hi Sascha,

In JCRFactoryImpl.java we have:
homeDir = UtilXml.childElementAttribute(configRootElement, "home-dir", "path", "runtime/data/jcr/")

Which is then retrieved by:
repository = new TransientRepository(jackrabbitConfigFile, homeDir)

What if we inject the delegator in the homedir? That would work out, wouldn't?

Regards,

Pierre
               

> Jackrabbit (jcr) doesn't work nice with multi-tenancy aspect of OFBiz
> ---------------------------------------------------------------------
>
>                 Key: OFBIZ-4836
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4836
>             Project: OFBiz
>          Issue Type: Sub-task
>          Components: framework
>    Affects Versions: SVN trunk
>            Reporter: Pierre Smits
>            Priority: Blocker
>             Fix For: SVN trunk
>
>
> When having multiple tenants and one of the users (of a tenant) creates (uploads) a file to JCR then this file is visible to all users of all tenants

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (OFBIZ-4836) Jackrabbit (jcr) doesn't work nice with multi-tenancy aspect of OFBiz

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

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

Sascha Rodekamp commented on OFBIZ-4836:
----------------------------------------

Hi Pierre,
not sure if i understand you right. Why we have to inject the delegator in the homedir?

I'm looking for a way to configure different homedirs in the jcr-config.xml.

Somthing like:
{code}
    <!-- jcr home directory -->
    <home-dirs>
            <home-dir path="runtime/data/jcr_1/" />
            <home-dir path="runtime/data/jcr_2/" />
    </home-dirs>
{code}

Than i'm able to load a repository instance for each tenant. But I'm not sure where to store the reference between the tenant and his repository instance, do you have an idea?

               

> Jackrabbit (jcr) doesn't work nice with multi-tenancy aspect of OFBiz
> ---------------------------------------------------------------------
>
>                 Key: OFBIZ-4836
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4836
>             Project: OFBiz
>          Issue Type: Sub-task
>          Components: framework
>    Affects Versions: SVN trunk
>            Reporter: Pierre Smits
>            Priority: Blocker
>             Fix For: SVN trunk
>
>
> When having multiple tenants and one of the users (of a tenant) creates (uploads) a file to JCR then this file is visible to all users of all tenants

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (OFBIZ-4836) Jackrabbit (jcr) doesn't work nice with multi-tenancy aspect of OFBiz

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

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

Pierre Smits commented on OFBIZ-4836:
-------------------------------------

Hi Sascha,

References to tenants are stored in entity Tenant. See https://demo-trunk.ofbiz.apache.org:8443/webtools/control/FindGeneric?entityName=Tenant&find=true

The tenantId is used as the delegator to persist the OFBiz data in the TenantDataSouce.

Each tenant has its own OFBiz data storage and that is defined in TenantDataSource. See https://demo-trunk.ofbiz.apache.org:8443/webtools/control/FindGeneric?entityName=TenantDataSource&find=true

If we can reuse that data then a JCR repository could be like: <home-dir path="runtime/data/jcr/<tenantId>/" />

While keeping in mind that the first part of the  home-dir path (runtime/data/jcr) is set through jcr-config.xml.

Regards,

Pierre
               

> Jackrabbit (jcr) doesn't work nice with multi-tenancy aspect of OFBiz
> ---------------------------------------------------------------------
>
>                 Key: OFBIZ-4836
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4836
>             Project: OFBiz
>          Issue Type: Sub-task
>          Components: framework
>    Affects Versions: SVN trunk
>            Reporter: Pierre Smits
>            Priority: Blocker
>             Fix For: SVN trunk
>
>
> When having multiple tenants and one of the users (of a tenant) creates (uploads) a file to JCR then this file is visible to all users of all tenants

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[jira] [Updated] (OFBIZ-4836) Jackrabbit (jcr) doesn't work nice with multi-tenancy aspect of OFBiz

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-4836?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sascha Rodekamp updated OFBIZ-4836:
-----------------------------------

    Attachment: jcr-config.xml

Maybe it's better to extend the whole config not only the home dir. That gives us the possibility to use a tenant independent JCR implementation.
What do you think?
               

> Jackrabbit (jcr) doesn't work nice with multi-tenancy aspect of OFBiz
> ---------------------------------------------------------------------
>
>                 Key: OFBIZ-4836
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4836
>             Project: OFBiz
>          Issue Type: Sub-task
>          Components: framework
>    Affects Versions: SVN trunk
>            Reporter: Pierre Smits
>            Priority: Blocker
>             Fix For: SVN trunk
>
>         Attachments: jcr-config.xml
>
>
> When having multiple tenants and one of the users (of a tenant) creates (uploads) a file to JCR then this file is visible to all users of all tenants

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[jira] [Issue Comment Edited] (OFBIZ-4836) Jackrabbit (jcr) doesn't work nice with multi-tenancy aspect of OFBiz

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

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

Sascha Rodekamp edited comment on OFBIZ-4836 at 4/24/12 2:09 PM:
-----------------------------------------------------------------

Maybe it's better to extend the whole config not only the home dir (see jcr-config.xml file). That gives us the possibility to use a tenant independent JCR implementation.
What do you think?
               
      was (Author: sascha):
    Maybe it's better to extend the whole config not only the home dir. That gives us the possibility to use a tenant independent JCR implementation.
What do you think?
                 

> Jackrabbit (jcr) doesn't work nice with multi-tenancy aspect of OFBiz
> ---------------------------------------------------------------------
>
>                 Key: OFBIZ-4836
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4836
>             Project: OFBiz
>          Issue Type: Sub-task
>          Components: framework
>    Affects Versions: SVN trunk
>            Reporter: Pierre Smits
>            Priority: Blocker
>             Fix For: SVN trunk
>
>         Attachments: jcr-config.xml
>
>
> When having multiple tenants and one of the users (of a tenant) creates (uploads) a file to JCR then this file is visible to all users of all tenants

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (OFBIZ-4836) Jackrabbit (jcr) doesn't work nice with multi-tenancy aspect of OFBiz

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

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

Sascha Rodekamp commented on OFBIZ-4836:
----------------------------------------

Ah ok Pierre i got it. Maybe this will work also for the repository. I will try a few things and come back to you.

Best Regards
Sascha

               

> Jackrabbit (jcr) doesn't work nice with multi-tenancy aspect of OFBiz
> ---------------------------------------------------------------------
>
>                 Key: OFBIZ-4836
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4836
>             Project: OFBiz
>          Issue Type: Sub-task
>          Components: framework
>    Affects Versions: SVN trunk
>            Reporter: Pierre Smits
>            Priority: Blocker
>             Fix For: SVN trunk
>
>         Attachments: jcr-config.xml
>
>
> When having multiple tenants and one of the users (of a tenant) creates (uploads) a file to JCR then this file is visible to all users of all tenants

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (OFBIZ-4836) Jackrabbit (jcr) doesn't work nice with multi-tenancy aspect of OFBiz

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

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

Pierre Smits commented on OFBIZ-4836:
-------------------------------------

Tenant independent (or rather delegator independent) would be the best approach from a scalability point of view. Store as much of the parameters as possible in OFBiz (Tenant)DataSource and load on startup (caching the lot).

Think of:
<!-- jcr home directory -->                                  <-- from jcr-config.xml
    <home-dir path="runtime/data/jcr/" />
<!-- jcr workspace credentials -->                           <-- from jcr-config.xml
    <jcr-credentials username="system" password="ofbiz" />


From jackrabbit.xml the params:
${rep.home}
${wsp.name}
${minRecordLength}
${rep.supportHighlighting}
${wsp.supportHighlighting}
 
See below.


<FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
        <param name="path" value="${rep.home}/repository"/>
</FileSystem>
<DataStore class="org.apache.jackrabbit.core.data.FileDataStore" >
        <param name="path" value="${rep.home}/repository/datastore"/>
        <param name="minRecordLength" value="0"/>
</DataStore>
<Workspaces rootPath="${rep.home}/workspaces" defaultWorkspace="default"/>
<Workspace name="${wsp.name}">
<FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
    <param name="path" value="${wsp.home}"/>
</FileSystem>
<PersistenceManager class="org.apache.jackrabbit.core.persistence.pool.DerbyPersistenceManager">
    <param name="url" value="jdbc:derby:${wsp.home}/db;create=true"/>
    <param name="schemaObjectPrefix" value="${wsp.name}_"/>
</PersistenceManager>
<SearchIndex class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
    <param name="path" value="${wsp.home}/index"/>
    <param name="supportHighlighting" value="true"/>
</SearchIndex>
</Workspace>
<SearchIndex class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
    <param name="path" value="${rep.home}/repository/index"/>
    <param name="supportHighlighting" value="true"/>
</SearchIndex>
    -->
               

> Jackrabbit (jcr) doesn't work nice with multi-tenancy aspect of OFBiz
> ---------------------------------------------------------------------
>
>                 Key: OFBIZ-4836
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4836
>             Project: OFBiz
>          Issue Type: Sub-task
>          Components: framework
>    Affects Versions: SVN trunk
>            Reporter: Pierre Smits
>            Priority: Blocker
>             Fix For: SVN trunk
>
>         Attachments: jcr-config.xml
>
>
> When having multiple tenants and one of the users (of a tenant) creates (uploads) a file to JCR then this file is visible to all users of all tenants

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (OFBIZ-4836) Jackrabbit (jcr) doesn't work nice with multi-tenancy aspect of OFBiz

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

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

Pierre Smits commented on OFBIZ-4836:
-------------------------------------

A entry in TenantDataSource could be:

for Derby:
<TenantDataSource tenantId="DEMO1" entityGroupName="jcr.ofbiz" jdbcPassword="ofbiz" jdbcUri="dbc:derby:DEMO1/version/db;create=true" jdbcUsername="ofbiz"/>

for PostgreSQL:
<TenantDataSource tenantId="DEMO2"entityGroupName="jcr.ofbiz" jdbcPassword="ofbiz" jdbcUri="jdbc:postgresql://<IP address>/ofbiz_DEMO2" jdbcUsername="ofbiz"/>
               

> Jackrabbit (jcr) doesn't work nice with multi-tenancy aspect of OFBiz
> ---------------------------------------------------------------------
>
>                 Key: OFBIZ-4836
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4836
>             Project: OFBiz
>          Issue Type: Sub-task
>          Components: framework
>    Affects Versions: SVN trunk
>            Reporter: Pierre Smits
>            Priority: Blocker
>             Fix For: SVN trunk
>
>         Attachments: jcr-config.xml
>
>
> When having multiple tenants and one of the users (of a tenant) creates (uploads) a file to JCR then this file is visible to all users of all tenants

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[jira] [Updated] (OFBIZ-4836) Jackrabbit (jcr) doesn't work nice with multi-tenancy aspect of OFBiz

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-4836?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pierre Smits updated OFBIZ-4836:
--------------------------------

    Attachment: OFBIZ-4836-jcr-entity.patch

THis is an example of the entity for jcr
               

> Jackrabbit (jcr) doesn't work nice with multi-tenancy aspect of OFBiz
> ---------------------------------------------------------------------
>
>                 Key: OFBIZ-4836
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4836
>             Project: OFBiz
>          Issue Type: Sub-task
>          Components: framework
>    Affects Versions: SVN trunk
>            Reporter: Pierre Smits
>            Priority: Blocker
>             Fix For: SVN trunk
>
>         Attachments: OFBIZ-4836-jcr-entity.patch, jcr-config.xml
>
>
> When having multiple tenants and one of the users (of a tenant) creates (uploads) a file to JCR then this file is visible to all users of all tenants

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[jira] [Updated] (OFBIZ-4836) Jackrabbit (jcr) doesn't work nice with multi-tenancy aspect of OFBiz

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-4836?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sascha Rodekamp updated OFBIZ-4836:
-----------------------------------

    Attachment: OFBIZ-4836_JCR_MultiTenancy .patch

Hi Pierre, here is a first suggestions for multi tenancy and jackrabbit.

In this version each tenant gets is own repository.
               

> Jackrabbit (jcr) doesn't work nice with multi-tenancy aspect of OFBiz
> ---------------------------------------------------------------------
>
>                 Key: OFBIZ-4836
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4836
>             Project: OFBiz
>          Issue Type: Sub-task
>          Components: framework
>    Affects Versions: SVN trunk
>            Reporter: Pierre Smits
>            Priority: Blocker
>             Fix For: SVN trunk
>
>         Attachments: OFBIZ-4836-jcr-entity.patch, OFBIZ-4836_JCR_MultiTenancy .patch, jcr-config.xml
>
>
> When having multiple tenants and one of the users (of a tenant) creates (uploads) a file to JCR then this file is visible to all users of all tenants

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (OFBIZ-4836) Jackrabbit (jcr) doesn't work nice with multi-tenancy aspect of OFBiz

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

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

Pierre Smits commented on OFBIZ-4836:
-------------------------------------

Hi Sascha,

Thanks for providing the patch to test the functionality.
After having applied it to a clean trunk checkout, doing a clean build and install the demo-data and a modification to the 'ant create-tenant' target (and process) to have it create the jcr settings in the database of the main delegator in accordance with following example:

<JcrDataSource tenantId="@tenantId@" jcrMinRecordLength="0" jcrRepHighlighting="1" jcrRepId="@tenantId@" jcrRepPath="runtime/data/jcr/@tenantId@/"/>

I created a new tenant and saw the data in the JcrDataSource.

After subsequently restarting OFBiz and:
- logging in the main environment as admin I created a new entry in the Jackrabbit section of the example application (that worked). I also uploaded the patch into the repository successfully.
- having logged out and logged in again (but now as the tenant-admin in the tenant environment I tried the same, but with no succes. It generated a NPE.

Looking thru the file/folder structure of OFBiz I didn't saw a jcr repository created in location 'runtime/data/jcr/' for the tenant.

Did I miss a step?

Regards,

Pierre
               

> Jackrabbit (jcr) doesn't work nice with multi-tenancy aspect of OFBiz
> ---------------------------------------------------------------------
>
>                 Key: OFBIZ-4836
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4836
>             Project: OFBiz
>          Issue Type: Sub-task
>          Components: framework
>    Affects Versions: SVN trunk
>            Reporter: Pierre Smits
>            Priority: Blocker
>             Fix For: SVN trunk
>
>         Attachments: OFBIZ-4836-jcr-entity.patch, OFBIZ-4836_JCR_MultiTenancy .patch, jcr-config.xml
>
>
> When having multiple tenants and one of the users (of a tenant) creates (uploads) a file to JCR then this file is visible to all users of all tenants

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (OFBIZ-4836) Jackrabbit (jcr) doesn't work nice with multi-tenancy aspect of OFBiz

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

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

Sascha Rodekamp commented on OFBIZ-4836:
----------------------------------------

Hi Pierre,
nope. I think I did something wrong with my tenant setup. I will try to reproduce your issue.

Btw. I use now the new jackrabbit branch for development.

Regards,
Sascha
               

> Jackrabbit (jcr) doesn't work nice with multi-tenancy aspect of OFBiz
> ---------------------------------------------------------------------
>
>                 Key: OFBIZ-4836
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4836
>             Project: OFBiz
>          Issue Type: Sub-task
>          Components: framework
>    Affects Versions: SVN trunk
>            Reporter: Pierre Smits
>            Priority: Blocker
>             Fix For: SVN trunk
>
>         Attachments: OFBIZ-4836-jcr-entity.patch, OFBIZ-4836_JCR_MultiTenancy .patch, jcr-config.xml
>
>
> When having multiple tenants and one of the users (of a tenant) creates (uploads) a file to JCR then this file is visible to all users of all tenants

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[jira] [Updated] (OFBIZ-4836) Jackrabbit (jcr) doesn't work nice with multi-tenancy aspect of OFBiz

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-4836?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sascha Rodekamp updated OFBIZ-4836:
-----------------------------------

    Attachment: OFBIZ-4836_JCR_MultiTenancy.patch

Hi,

now we have different repositories for each tenant.

We have to make sure, that the JcrDataSource is filled for the tenant user. If there is no entry in the entity for a certain tenant defined, i create a default repository path: "/data/jcr/<tenantId>"

               

> Jackrabbit (jcr) doesn't work nice with multi-tenancy aspect of OFBiz
> ---------------------------------------------------------------------
>
>                 Key: OFBIZ-4836
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4836
>             Project: OFBiz
>          Issue Type: Sub-task
>          Components: framework
>    Affects Versions: SVN trunk
>            Reporter: Pierre Smits
>            Priority: Blocker
>             Fix For: SVN trunk
>
>         Attachments: OFBIZ-4836-jcr-entity.patch, OFBIZ-4836_JCR_MultiTenancy .patch, OFBIZ-4836_JCR_MultiTenancy.patch, jcr-config.xml
>
>
> When having multiple tenants and one of the users (of a tenant) creates (uploads) a file to JCR then this file is visible to all users of all tenants

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[jira] [Updated] (OFBIZ-4836) Jackrabbit (jcr) doesn't work nice with multi-tenancy aspect of OFBiz

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-4836?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sascha Rodekamp updated OFBIZ-4836:
-----------------------------------

    Affects Version/s:     (was: SVN trunk)
        Fix Version/s:     (was: SVN trunk)
             Assignee: Sascha Rodekamp
   

> Jackrabbit (jcr) doesn't work nice with multi-tenancy aspect of OFBiz
> ---------------------------------------------------------------------
>
>                 Key: OFBIZ-4836
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4836
>             Project: OFBiz
>          Issue Type: Sub-task
>          Components: framework
>            Reporter: Pierre Smits
>            Assignee: Sascha Rodekamp
>            Priority: Blocker
>         Attachments: OFBIZ-4836-jcr-entity.patch, OFBIZ-4836_JCR_MultiTenancy .patch, OFBIZ-4836_JCR_MultiTenancy.patch, jcr-config.xml
>
>
> When having multiple tenants and one of the users (of a tenant) creates (uploads) a file to JCR then this file is visible to all users of all tenants

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[jira] [Closed] (OFBIZ-4836) Jackrabbit (jcr) doesn't work nice with multi-tenancy aspect of OFBiz

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-4836?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sascha Rodekamp closed OFBIZ-4836.
----------------------------------

    Resolution: Fixed

Issue fixed in jackrabbit20120501 branch @ Rev 1347578
               

> Jackrabbit (jcr) doesn't work nice with multi-tenancy aspect of OFBiz
> ---------------------------------------------------------------------
>
>                 Key: OFBIZ-4836
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4836
>             Project: OFBiz
>          Issue Type: Sub-task
>          Components: framework
>            Reporter: Pierre Smits
>            Assignee: Sascha Rodekamp
>            Priority: Blocker
>         Attachments: OFBIZ-4836-jcr-entity.patch, OFBIZ-4836_JCR_MultiTenancy .patch, OFBIZ-4836_JCR_MultiTenancy.patch, jcr-config.xml
>
>
> When having multiple tenants and one of the users (of a tenant) creates (uploads) a file to JCR then this file is visible to all users of all tenants

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira