[jbosstools-issues] [JBoss JIRA] (JBIDE-9854) Openshift Express: Application#getCreationTime fails on 2nd application

Andre Dietisheim (Resolved) (JIRA) jira-events at lists.jboss.org
Wed Oct 5 17:16:16 EDT 2011


     [ https://issues.jboss.org/browse/JBIDE-9854?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andre Dietisheim resolved JBIDE-9854.
-------------------------------------

    Resolution: Done


committed to TRUNK (M4)
                
> Openshift Express: Application#getCreationTime fails on 2nd application
> -----------------------------------------------------------------------
>
>                 Key: JBIDE-9854
>                 URL: https://issues.jboss.org/browse/JBIDE-9854
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: JBossAS/Servers
>    Affects Versions: 3.3.0.M4
>            Reporter: Andre Dietisheim
>            Assignee: Andre Dietisheim
>             Fix For: 3.3.0.M4
>
>
> #EXECUTE create a new user with valid credentials 
> #EXECUTE create a 1st application 
> #EXECUTE get the creation time on on it
> #EXECUTE create a 2nd application
> #EXECUTE get the creation time on this 2nd application
> Result:
> NPE
> The reason is that the creation time is only available in the user info object that has to be requested separately. So when you create an application and request the creation time for it, it will request the user info from the user behind the scenes. The user will cache that user info object for later requests from the same application. If you now create a 2nd application and request the creation time of it, the application will ask the user for the user info and get the user info that was requested from the server when the 1st application was created. The 2nd application will therefore not find its creation time in that user info. The solution is pretty simple: the 2nd application must force the user to re-request the user info.  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list