• Icon: Sub-task Sub-task
    • Resolution: Done
    • Icon: Major Major
    • 7.7.1, 7.8
    • None
    • None
    • None

      The createFileFromUrl and resolveUrl methods in URLHelper currently use an Authenticator implementation for providing username/password credentials when accessing URLs, notably HTTP. However, due to a JVM bug [1] the credentials are cached for the duration of the JVM session and cannot be reset. Thus, once the Authenticator class has been set, it cannot be changed. The effect of this is that the user can enter the wrong credentials for a WSDL once in a wizard and can never change them.

      Replace the Authenticator implementations in URLHelper with a method to set an http request property instead, eg.

      urlConn.setRequestProperty("Authorization", "Basic " + Base64.encodeBytes((userName + ':' + password).getBytes()))

      [1] http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6626700

              parichar@redhat.com Paul Richardson
              parichar@redhat.com Paul Richardson
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: