Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-9854

Openshift Express: Application#getCreationTime fails on 2nd application

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.3.0.M4
    • 3.3.0.M4
    • openshift
    • None

      #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.

            adietish@redhat.com André Dietisheim
            adietish@redhat.com André Dietisheim
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: