Saturday, May 1, 2010

JDev/ADF sample - JDeveloper 11g PS2 - getUserPrincipalName() Returns Anonymous in prepareSession() Method

  • JDeveloper 11g PS2 - getUserPrincipalName() Returns Anonymous in prepareSession() Method. I should say, migration from JDeveloper 11g PS1 to PS2 went very smoothly for us - we didn't noticed any significant problems. However, there is one issue with getUserPrincipalName() method, when you want to get current user name from ADF BC. Thanks to Steve Muench, there is already bug logged on Oracle Metalink - bug# 9672139. There are also good news about security, we don't have anymore these annoying security warnings in the log, for every protected resource. Today I will tell you, how you can get logged in user name in prepareSession() method, until mentioned bug will be fixed.
    Download - GetUserPrincipalADFModel.zip

No comments: