mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Fix order and TX
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4606 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -214,15 +214,16 @@ public class NovellIChainsHTTPRequestAuthenticationFilter extends AbstractAuthen
|
|||||||
// Set the authentication
|
// Set the authentication
|
||||||
authComponent.setCurrentUser(userName);
|
authComponent.setCurrentUser(userName);
|
||||||
|
|
||||||
User user = new User(userName, authService.getCurrentTicket(), personService.getPerson(userName));
|
|
||||||
|
|
||||||
// Set up the user information
|
// Set up the user information
|
||||||
UserTransaction tx = transactionService.getUserTransaction();
|
UserTransaction tx = transactionService.getUserTransaction();
|
||||||
NodeRef homeSpaceRef = null;
|
NodeRef homeSpaceRef = null;
|
||||||
|
User user;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
tx.begin();
|
tx.begin();
|
||||||
|
user = new User(userName, authService.getCurrentTicket(), personService.getPerson(userName));
|
||||||
homeSpaceRef = (NodeRef) nodeService.getProperty(personService.getPerson(userName),
|
homeSpaceRef = (NodeRef) nodeService.getProperty(personService.getPerson(userName),
|
||||||
ContentModel.PROP_HOMEFOLDER);
|
ContentModel.PROP_HOMEFOLDER);
|
||||||
user.setHomeSpaceId(homeSpaceRef.getId());
|
user.setHomeSpaceId(homeSpaceRef.getId());
|
||||||
|
Reference in New Issue
Block a user