View Issue Details

IDProjectCategoryView StatusLast Update
0000202easycwmpHelppublic2017-03-14 15:09
Reportersuperkid Assigned Tomohamed.kallel  
PriorityhighSeveritymajorReproducibilityalways
Status resolvedResolutionno change required 
PlatformlinuxOSopenwrtOS Versionbarrier breaker
Summary0000202: download firmware fail
DescriptionI 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>
TagsNo tags attached.
e-mail notification

Activities

superkid

2017-02-15 06:52

reporter   ~0000665

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" }

superkid

2017-02-15 07:22

reporter   ~0000666

looks like busybox wget issue

mohamed.kallel

2017-02-15 10:22

administrator   ~0000668

Last edited: 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

superkid

2017-03-14 04:15

reporter   ~0000682

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)

Issue History

Date Modified Username Field Change
2017-02-15 03:15 superkid New Issue
2017-02-15 06:52 superkid Note Added: 0000665
2017-02-15 07:22 superkid Note Added: 0000666
2017-02-15 10:22 mohamed.kallel Note Added: 0000668
2017-02-15 10:22 mohamed.kallel Note Edited: 0000668
2017-03-14 04:15 superkid Note Added: 0000682
2017-03-14 15:09 mohamed.kallel Status new => resolved
2017-03-14 15:09 mohamed.kallel Resolution open => no change required
2017-03-14 15:09 mohamed.kallel Assigned To => mohamed.kallel