Ignore:
Timestamp:
2008-10-28T19:04:39+13:00 (16 years ago)
Author:
ak19
Message:

Correction to previous changes I made to GAuthenticator: it now only uses any previously stored values for username and password when the GAuthenticator operates in the new DOWNLOAD mode, which is set (and soon thereafter restored to the default REGULAR mode) in DownloadPane.java for (wget) downloads.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gli/trunk/src/org/greenstone/gatherer/gui/DownloadPane.java

    r17282 r17621  
    634634       
    635635            int count = 0;
     636        // Only for wget, need to avoid a second automatic authentication popup (first asks
     637        // the proxy authentication for wget, and the second will ask the same for the realm)
     638        GAuthenticator.setMode(GAuthenticator.DOWNLOAD);
    636639        while(count < 3 && (user_pass = (String) GAuthenticator.authentications.get(address)) == null) {
    637640        Authenticator.requestPasswordAuthentication(proxy_host, null, Integer.parseInt(proxy_port), "http://", Dictionary.get("WGet.Prompt"), "HTTP");
    638641        count++;
    639642        }
    640 
     643        GAuthenticator.setMode(GAuthenticator.REGULAR); // reset the state to default (of how the authentication popup functions)
    641644        if(count >= 3) {
    642645        return false;
Note: See TracChangeset for help on using the changeset viewer.