bugGNU Wget - Bugs: bug #46024, wget does not work for a server...

 
 

bug #46024: wget does not work for a server sending RFC 2069 Digest Header

Submitted by:  None
Submitted on:  Tue 22 Sep 2015 09:35:17 AM UTC  
 
Category: Program LogicSeverity: 3 - Normal
Priority: 5 - NormalStatus: Fixed
Privacy: PublicAssigned to: None
Originator Name: Andreas LongwitzOriginator Email: -unavailable-
Open/Closed: ClosedRelease: trunk
Operating System: *BSDReproducibility: Every Time
Fixed Release: NonePlanned Release: None
Regression: NoneWork Required: None
Patch Included: Yes

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Tue 22 Sep 2015 10:16:34 AM UTC, comment #1:

Ideally, servers should not be using the obsolete RFC 2069 Digest Authentication. However, since all the code to handle such authentication still exists in Wget and our test suite, maybe we can re-enable support for the old style Digest Authentication headers.

I'll push an amended patch against the latest master in a while.

Darshit Shah <darnir>
Project Administrator
Tue 22 Sep 2015 09:35:17 AM UTC, original submission:

If a server sends a response

WWW-Authenticate: Digest realm="clt1",
nonce="5601196e8bf88ca8047b8cbee1f9f5eec70419e3"

without algorithm and qop, then wget stops with error.
The breaking commit was 92035dbabd8bb7fc3d10535c97adad2088c9129b
called "Fix erroneous error codes when HTTP Digest Authentication fails."

The following patch against wget 1.16.3 works for me:

--- src/http.c.orig 2015-02-10 22:30:53.000000000 +0100
+++ src/http.c 2015-09-22 11:00:21.489732814 +0200
@@ -3857,7 +3857,7 @@
xfree (qop); /* force freeing mem and return */
}

- if (!realm || !nonce || !user || !passwd || !path || !method || !qop)
+ if (!realm || !nonce || !user || !passwd || !path || !method )
{
xfree (realm);
xfree (opaque);

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by darnir (Posted a comment)
  • -unavailable- added by None (Submitted the item)
  •  

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 22 Sep 2015 11:28:16 AM UTCdarnirStatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1