bugGNU Wget - Bugs: bug #36365, WGet returns incorrect error level...

 
 

bug #36365: WGet returns incorrect error level for self-signed SSL with --recursive option

Submitter:  David Hooker <davidhooker>
Submitted:  Wed 02 May 2012 12:35:22 AM UTC
   
 
Category:  Program Logic Severity:  3 - Normal
Priority:  5 - Normal Status:  None
Privacy:  Public Assigned to:  None
Originator Name:  Open/Closed:  Open
Release:  1.11.4 Operating System:  Microsoft Windows
Reproducibility:  Every Time Fixed Release:  None
Planned Release:  None Regression:  None
Work Required:  None Patch Included:  No
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 02 May 2012 12:35:22 AM UTC, original submission:  

(Sorry for reporting for an old version, but this is the latest Win32 build I have access to -- I don't have a toolchain to build on Win32, and my corporate antivirus is deleting http://code.google.com/p/osspack32/downloads/detail?name=wget.exe&can=2&q= because it has a slight negative reputation.)

I have a HTTPS server on DNS name "CA".  It is using a self-signed cert to identity itself.  When debugging my program that uses wget, I moved a bunch of files into a fresh directory for testing and tickled this bug.

If I run:
wget --recursive https://ca/
it fails with "self-signed cert encountered" and failing to connect - as it should.  However, errorlevel is 0, causing my program to think that all went well.

wget https://ca/
fails the same way but returns errorlevel = 1.

wget should return a nonzero errorlevel in all cases it cannot connect to a HTTPS server due to bad/unspecified cert.

David Hooker <davidhooker>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by davidhooker (Submitted the item)
  •  

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code