cancel
Showing results for 
Search instead for 
Did you mean: 

solved] Alfresco upgrade from 220 to 223: AuthenticationUtil

zomurn
Champ in-the-making
Champ in-the-making
Hello,

I'am migrating from alfresco 220 to alfresco 223.
My application code crash because of AuthenticationUtil.getCurrentUsername() not found.
And, indeed, this method doesn't exist anymore into alfresco-repository.jar\org\alfresco\repo\security\authentication\AuthenticationUtil.
I suppose it is deprecated but inside the javadoc on the wiki : http://wiki.alfresco.com/wiki/Alfresco_JavaDoc
Nothing is deprecated neither recommended.
Which method has replaced it hence ?

Thanks.
1 REPLY 1

zomurn
Champ in-the-making
Champ in-the-making
I saw the issue quoted here…the method has been renamed to getRunAsUser().

https://issues.alfresco.com/jira/browse/ETWOTWO-739

I hope there are not so much method to rename…it implies to refactor all my code.  :?