directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shawn McKinney (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FC-252) Fix Multitenancy bugs in addRoleConstraint
Date Thu, 25 Oct 2018 15:58:00 GMT
Shawn McKinney created FC-252:
---------------------------------

             Summary: Fix Multitenancy bugs in addRoleConstraint
                 Key: FC-252
                 URL: https://issues.apache.org/jira/browse/FC-252
             Project: FORTRESS
          Issue Type: Bug
    Affects Versions: 2.0.2
            Reporter: Shawn McKinney
            Assignee: Shawn McKinney
             Fix For: 2.0.3


In order for multitenancy to work, manager impl level code must set the context id after instantiating
a model object.

e.g.

User user = new User( uRole.getUserId());
user.setContextId( contextId );

 

This is how the tenant is then passed down into DAO layer, in order to navigate to correct
sub-tree. 

This issue fixes problems found in add and removeRoleConstraint methods in the AdminMgrImpl
class.

 

Commits have already been made (and tested)...

 

removeRoleConstraint

[https://github.com/apache/directory-fortress-core/commit/03dda314fcf278e8b7738d3471963a0a204cdaf9]

addRoleConstraint:

https://github.com/apache/directory-fortress-core/commit/4d2a6130265dd23dcefc0d693398920f8dccfabc



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message