Project

General

Profile

Bug #2730

http auth does not send WWW-Authenticate header in git rev 598cdd0

Added by roytam1 12 months ago. Updated 12 months ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
Category:
mod_auth
Target version:
Start date:
2016-05-11
Due date:
% Done:

100%

Missing in 1.5.x:

Description

I tested latest git rev (598cdd0) and it always returns "HTTP/1.1 401 Unauthorized" without WWW-Authenticate header.

Config:

#### auth module
auth.backend               = "plain" 
auth.backend.plain.userfile = "/etc/lighttpd/lighttpd.user" 

auth.require = ( "/protected/" =>
    ( "method" => "basic",
      "realm" => "Password protected area",
      "require" => "user=puser" 
    )
)

Associated revisions

Revision 29e7468d (diff)
Added by gstrauss 12 months ago

[mod_auth] preserve WWW-Authenticate for error docs (fixes #2730)

fixes auth broken by 9973fdb0:
[core] reset response headers, write_queue for error docs

x-ref:
"http auth does not send WWW-Authenticate header in git rev 598cdd0"
https://redmine.lighttpd.net/issues/2730

History

#1 Updated by gstrauss 12 months ago

Thanks for testing HEAD.

The issue is due to

commit 299173a3b5fc5b79b80f24c8378c20586d473919
Author: Glenn Strauss <gstrauss@gluelogic.com>
Date:   Mon May 2 16:23:51 2016 -0400

    reset response headers, write_queue for error docs

I'll prepare a fix.

#2 Updated by gstrauss 12 months ago

  • Status changed from New to Fixed
  • % Done changed from 0 to 100

#3 Updated by gstrauss 12 months ago

Fixed in 29e7468d

Thanks for your report.

Also available in: Atom