Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-2175

Lots of JAAS FailedLoginException after configuring http proxy

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • jboss-fuse-6.2
    • jboss-fuse-6.1
    • None
    • None

      When org.ops4j.pax.url.mvn PID is configured with http proxy settings as described here, there's this ugly code invoked here which sets static Authenticator. This authenticator is then used also when connecting to internal Git servlet.

      Git operations work, because after several attempts to handle HTTP 401 by sun.net.www.protocol.http.HttpURLConnection itself, 401 is returned to JGit and it then sets correct Authorization header (with container credentials, not proxy ones)

              ggrzybek Grzegorz Grzybek
              ggrzybek Grzegorz Grzybek
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: