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

 
 

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

Submitted by:  Tim Landscheidt <scfcde>
Submitted on:  Wed 20 Sep 2017 03:18:45 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalStatus: Fixed
Privacy: PublicAssigned to: Tim Ruehsen <rockdaboot>
Originator Name: Open/Closed: Closed
Release: trunkOperating System: GNU/Linux
Reproducibility: Every TimeFixed Release: None
Planned Release: 1.19.2Regression: No
Work Required: 0 - HoursPatch Included: No

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

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>
Project AdministratorIn charge of this item.
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>
Project AdministratorIn charge of this item.
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 http://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 http://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 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 rockdaboot (Posted a comment)
  • -unavailable- added by scfcde (Submitted the item)
  •  

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

     

     

    Follow 7 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 27 Sep 2017 11:15:14 AM UTCrockdabootStatusConfirmed=>Fixed
      Assigned toNone=>rockdaboot
      Open/ClosedOpen=>Closed
    Wed 20 Sep 2017 08:00:48 AM UTCrockdabootStatusNone=>Confirmed
      Release1.18=>trunk
      Planned ReleaseNone=>1.19.2
      Work RequiredNone=>0 - Hours

    Back to the top


    Powered by Savane 3.1-cleanup1