[
https://issues.apache.org/jira/browse/OAK-1984?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tobias Bocanegra resolved OAK-1984.
-----------------------------------
Resolution: Won't Fix
[~anchela] I forgot about that contract :-) let's close this issue then.
> Repository.login(creds).getUserId() should return the 'real' user's id.
> -----------------------------------------------------------------------
>
> Key: OAK-1984
> URL: https://issues.apache.org/jira/browse/OAK-1984
> Project: Jackrabbit Oak
> Issue Type: Wish
> Reporter: Tobias Bocanegra
>
> Session.getUserId() uses ContentSession.getAuthInfo().getUserId() which
> returns the user id passed in the simple credentials during login.
> since the user-lookup is case insensitive, the Session.getUserId() might not
> be equal to authorizable.getId().
> * Session.getUserID() should always return the user.getId()
> * add new method: AuthInfo.getLoginId() to internally remember the id used
> during login.
--
This message was sent by Atlassian JIRA
(v6.2#6252)