EasyCwmp - easycwmp
View Issue Details
0000202easycwmp[All Projects] Helppublic2017-02-15 03:152017-03-14 15:09
superkid 
mohamed.kallel 
highmajoralways
resolvedno change required 
linuxopenwrtbarrier breaker
0000202: download firmware fail
I was trying to update my cpe but download fails because it requires authentication,
I'm using libcurl v7.5 and enabled openssl and crypto auth


GET /tr/fwStore/sample_update_v3.bin HTTP/1.1
Host: 123.150.209.82:38180
User-Agent: Wget
Connection: close
Authorization: Basic ZG93bmxvYWQ6ZG93bmxvYWQ=

HTTP/1.1 401 Authorization Required
Date: Wed, 15 Feb 2017 02:05:24 GMT
Server: /0.0.0 (Unix) DAV/2 mod_ssl/0.0.0 OpenSSL/1.0.2f
WWW-Authenticate: Digest realm="Digest Auth", nonce="/eQdHYhIBQA=31057a26239cb982bbd76c35c5e4d625a80e5f5d", algorithm=MD5, qop="auth"
Content-Length: 401
Connection: close
Content-Type: text/html; charset=iso-8859-1

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>401 Authorization Required</title>
</head><body>
<h1>Authorization Required</h1>

This server could not verify that you
are authorized to access the document
requested. Either you supplied the wrong
credentials (e.g., bad password), or your
browser doesn't understand how to supply
the credentials required.


</body></html>
No tags attached.
Issue History
2017-02-15 03:15superkidNew Issue
2017-02-15 06:52superkidNote Added: 0000665
2017-02-15 07:22superkidNote Added: 0000666
2017-02-15 10:22mohamed.kallelNote Added: 0000668
2017-02-15 10:22mohamed.kallelNote Edited: 0000668bug_revision_view_page.php?bugnote_id=668#r310
2017-03-14 04:15superkidNote Added: 0000682
2017-03-14 15:09mohamed.kallelStatusnew => resolved
2017-03-14 15:09mohamed.kallelResolutionopen => no change required
2017-03-14 15:09mohamed.kallelAssigned To => mohamed.kallel

Notes
(0000665)
superkid   
2017-02-15 06:52   
tried manual download, download/download is the username/password from acs

easycwmp download http://123.150.209.82:38180/tr/fwStore/sample_update_v3.bin [^] "1 Firmware Upgrade Image" "0" download download
{ "fault_code": "9010" }
(0000666)
superkid   
2017-02-15 07:22   
looks like busybox wget issue
(0000668)
mohamed.kallel   
2017-02-15 10:22   
I think busybox wget does not support digest auth. It supports only basic auth
Try to edit the easycwmp.sh script and use curl command instead. And do not forget to add curl command dependencie in the ext/opewrt/Makefile

Please share your patch

(0000682)
superkid   
2017-03-14 04:15   
yes busybox wget does not support digest auth, what we did is to enable full package of wget

Network
    -> File Transfer
        -> <*> wget............... Non-interactive network downloader
                    (with SSL support)