HTTP Basic authentication issue

Upload core product.
Post Reply
vlad
Posts: 82
Joined: Sun Jan 04, 2009 6:38 pm

HTTP Basic authentication issue

Post by vlad »

Hi,

I'm having troubles uploading files to a password protected URL.
Could you please tell me what happens, based on the following console log:

Code: Select all

[DEBUG] HttpConnection - Open connection to localhost:80
[DEBUG] header - >> "HEAD /script.php HTT/P/1.1[\r][\n]"
[DEBUG] HttpMethodBase - Adding Host request header
[DEBUG] header - >> "User-Agent: JFileUpload[\r][\n]"
[DEBUG] header - >> "Host: localhost[\r][\n]"
[DEBUG] header - >> "[\r][\n]"
[DEBUG] header - << "HTT/P/1.1 401 Authorization Required[\r][\n]"
[DEBUG] header - << "HTT/P/1.1 401 Authorization Required[\r][\n]"
[DEBUG] header - << "Date: Wed, 22 Apr 2009 09:33:21 GMT[\r][\n]"
[DEBUG] header - << "Server: Apache/2.2.11 (Win32) PHP/5.2.9-1[\r][\n]"
[DEBUG] header - << "WWW-Authenticate: Basic realm="REALM"[\r][\n]"
[DEBUG] header - << "Content-Type: text/html; charset=iso-8859-1[\r][\n]"
[DEBUG] header - << "[\r][\n]"
[DEBUG] HttpMethodBase - Resorting to protocol version default close connection policy
[DEBUG] HttpMethodBase - Should NOT close connection, using HTT/P/1.1
[DEBUG] HttpConnection - Connection is locked.  Call to releaseConnection() ignored.
[DEBUG] HttpMethodDirector - Authorization required
[DEBUG] AuthChallengeProcessor - Supported authentication schemes in the order of preference: [ntlm, digest, basic]
[DEBUG] AuthChallengeProcessor - Challenge for ntlm authentication scheme not available
[DEBUG] AuthChallengeProcessor - Challenge for digest authentication scheme not available
[INFO] AuthChallengeProcessor - basic authentication scheme selected
[DEBUG] AuthChallengeProcessor - Using authentication scheme: basic
[DEBUG] AuthChallengeProcessor - Authorization challenge processed
[DEBUG] HttpMethodDirector - Authentication scope: BASIC 'REALM'@localhost:80
[DEBUG] HttpMethodDirector - Credentials required
[DEBUG] HttpMethodDirector - Credentials provider not available
[INFO] HttpMethodDirector - No credentials available for BASIC 'REALM'@localhost:80
The applet should open the login prompt, but it doesn't.

Thanks,

Vlad

P.S. This forum has a problem, I cannot post new messages with the "HTT/P" (without the slash) word.

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: HTTP Basic authentication issue

Post by support »

Did you enable:
<PARAM NAME="authentication" VALUE="auto">

It is required to make the applet prompt for login/password. If not then the applet expects the username/password to be passed as parameters.

vlad
Posts: 82
Joined: Sun Jan 04, 2009 6:38 pm

Re: HTTP Basic authentication issue

Post by vlad »

Yes, I have enabled it.
Passing the "username" and "password" parameters allows the upload to work fine. But I need the user to be prompted, as the password may change.

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: HTTP Basic authentication issue

Post by support »

You've enabled it an remove username/password parameters ?
Could you check that pop-up is not behind the browser ? You should see the same pop-up as:
http://www.jfileupload.com/products/jfi ... ation.html

If it still fails then could we have a remote desktop session so I could see what's wrong ? If so drop an email to support(at)jfileupload(dot)com

Post Reply