bugGNU Wget - Bugs: bug #52066, wget should ignore or implement...

 
 

bug #52066: wget should ignore or implement Gnus syntax extensions for ~/.netrc

Submitter:  Tim Landscheidt <scfcde>
Submitted:  Wed 20 Sep 2017 03:18:45 AM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Status:  Fixed
Privacy:  Public Assigned to:  rockdaboot
Originator Name:  Open/Closed:  Closed
Release:  trunk Operating System:  GNU/Linux
Reproducibility:  Every Time Fixed Release:  None
Planned Release:  1.19.2 Regression:  No
Work Required:  0 - Hours Patch Included:  No
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 27 Sep 2017 11:51:03 AM UTC, comment #3: 

"pop" is a typo in my configuration I only noticed after filing this bug :-).  I've since changed it to "port".  Sorry for the confusion.

Tim Landscheidt <scfcde>
Wed 27 Sep 2017 10:21:31 AM UTC, comment #2: 

Reading your link, they are talking about the .authinfo file format.
It is similar, extends the .netrc format by adding 'port' and 'force' keywords.

What exactly is the 'pop' keyword in your example ?

Tim Ruehsen <rockdaboot>
Group administrator
Wed 20 Sep 2017 08:00:48 AM UTC, comment #1: 

Thanks for the info, didn't even know about those extensions :-)

The corresponding Wget2 issue is https://gitlab.com/gnuwget/wget2/issues/292.

Tim Ruehsen <rockdaboot>
Group administrator
Wed 20 Sep 2017 03:18:45 AM UTC, original submission:  

Gnus extends the syntax for ~/.netrc by adding two keywords: "force" and "port" (cf. http://www.gnu.org/software/emacs/manual/html_node/gnus/NNTP.html#index-nntp_002dauthinfo_002dfunction-2003).  Using a ~/.netrc with for example "port" keywords causes wget to complain:

| [tim@passepartout ~]$ wget -O /dev/null https://www.gnu.org/
| --2017-09-20 03:01:57--  https://www.gnu.org/
| wget: /home/tim/.netrc:3: unbekannter Wortteil »port«
| wget: /home/tim/.netrc:3: unbekannter Wortteil »25«
| wget: /home/tim/.netrc:4: unbekannter Wortteil »pop«
| wget: /home/tim/.netrc:4: unbekannter Wortteil »110«
| Auflösen des Hostnamens »www.gnu.org (www.gnu.org)« … 208.118.235.148, 2001:4830:134:3::a
| Verbindungsaufbau zu www.gnu.org (www.gnu.org)|208.118.235.148|:443 … verbunden.
| HTTP-Anforderung gesendet, auf Antwort wird gewartet … 200 OK
| Länge: nicht spezifiziert [text/html]
| Wird in »»/dev/null«« gespeichert.

| /dev/null                                     [  <=>                                                                                 ]  24,56K  69,5KB/s    in 0,4s   

| 2017-09-20 03:01:58 (69,5 KB/s) - »/dev/null« gespeichert [25151]

| [tim@passepartout ~]$

However, it is easy to work around this issue if one does never use ~/.netrc for wget purposes by setting "netrc = off" in ~/.wgetrc:

| [tim@passepartout ~]$ echo 'netrc = off' > .wgetrc && wget -O /dev/null https://www.gnu.org/
| --2017-09-20 03:02:14--  https://www.gnu.org/
| Auflösen des Hostnamens »www.gnu.org (www.gnu.org)« … 208.118.235.148, 2001:4830:134:3::a
| Verbindungsaufbau zu www.gnu.org (www.gnu.org)|208.118.235.148|:443 … verbunden.
| HTTP-Anforderung gesendet, auf Antwort wird gewartet … 200 OK
| Länge: nicht spezifiziert [text/html]
| Wird in »»/dev/null«« gespeichert.

| /dev/null                                     [  <=>                                                                                 ]  24,56K  70,1KB/s    in 0,4s   

| 2017-09-20 03:02:15 (70,1 KB/s) - »/dev/null« gespeichert [25151]

| [tim@passepartout ~]$

It would be much better if wget supported the Gnus syntax extensions natively.  For most practical purposes, ignoring "force" and "port" keywords would probably be enough as entries with those keywords are unlikely intended for wget, but of course implementing the semantics for wget as well would be even better.

AFAICT, this issue also applies to wget2.

Tim Landscheidt <scfcde>

 

(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 rockdaboot (Posted a comment)
  • -email is unavailable- added by scfcde (Submitted the item)
  •  

    Follow 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-09-27 rockdaboot StatusConfirmed Fixed
        Assigned toNone rockdaboot
        Open/ClosedOpen Closed
    2017-09-20 rockdaboot StatusNone Confirmed
        Release1.18 trunk
        Planned ReleaseNone 1.19.2
        Work RequiredNone 0 - Hours

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code