Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0004000 [Quercus] minor always 04-16-10 01:35 04-16-10 12:01
Reporter hm2k View Status public  
Assigned To nam
Priority normal Resolution fixed  
Status closed   Product Version 4.0.6
Summary 0004000: WWW-Authenticate does not work
Description Example 0000006 Basic HTTP Authentication example
[CODE]<?php
if (!isset($_SERVER['PHP_AUTH_USER'])) {
    header('WWW-Authenticate: Basic realm="My Realm"');
    header('HTTP/1.0 401 Unauthorized');
    echo 'Text to send if user hits Cancel button';
    exit;
} else {
    echo "

Hello {$_SERVER['PHP_AUTH_USER']}.

";
    echo "

You entered {$_SERVER['PHP_AUTH_PW']} as your password.

";
}
?>
[/CODE]
From: http://php.net/manual/en/features.http-auth.php [^]

Put this code in auth.php and update to Google AppEngine.

Visit http://example.appspot.com/auth.php [^]

You will be prompted for a username and password.

You will never reach the message, it will repeatedly prompt for a username and password.

This suggests that $_SERVER['PHP_AUTH_USER'] and $_SERVER['PHP_AUTH_PW'] are never populated.

I think this is a bug.
Additional Information
Attached Files

- Relationships
has duplicate 0004403closed  PHP_AUTH_USER 

- Notes
(0004537)
nam
04-16-10 12:01

php/082h
php/082i

Fixed in 4.0.7.

Tomcat is not setting the request.getAuthType().
 

- Issue History
Date Modified Username Field Change
04-16-10 01:35 hm2k New Issue
04-16-10 12:00 nam Status new => assigned
04-16-10 12:00 nam Assigned To  => nam
04-16-10 12:01 nam Status assigned => closed
04-16-10 12:01 nam Note Added: 0004537
04-16-10 12:01 nam Resolution open => fixed
06-06-11 05:58 domdorn Relationship added has duplicate 0004403


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
35 total queries executed.
30 unique queries executed.
Powered by Mantis Bugtracker