Page 1 of 1

SABnzbd not reporting refusal by newsserver because of missing authentication

Posted: August 11th, 2008, 2:04 pm
by sander
As reported on Aug 11 in the thread "Free Newsservers", it seems SABnzbd does not report any useful warning if SABnzbd is not let in by the newsserver because of lacking authentication.

Proof: use newsreader2.eweka.nl as newsserver without username/password, and start a download. SABnzbd will just show Connections, with no warnings at all. Only very seldom you will see a "time-out message". That's it.

I suppose this is a bug.


Code: Select all

Connections

    * newsreader2.eweka.nl:119: 4
          o Thread #1 -> 00236045$0$17921$c3e8da3@news.astraweb.com -> damn.small.linux-dsl4.4.2.vol006+08.par2 -> damn.small.linux-dsl4.4.2.nzb
          o Thread #2 -> 00236050$0$17921$c3e8da3@news.astraweb.com -> damn.small.linux-dsl4.4.2.vol014+16.par2 -> damn.small.linux-dsl4.4.2.nzb
          o Thread #3 -> 0023603e$0$17921$c3e8da3@news.astraweb.com -> damn.small.linux-dsl4.4.2.vol002+04.par2 -> damn.small.linux-dsl4.4.2.nzb
          o Thread #4 -> 0023603a$0$17921$c3e8da3@news.astraweb.com -> damn.small.linux-dsl4.4.2.vol000+02.par2 -> damn.small.linux-dsl4.4.2.nzb

Download Dir: 4.44 GB - Complete Dir: 4.44 GB - Download speed: 0.07 KB/s - Queued: 58.31/58.31 MB
 SAB: Q: 58/58 MB  Comp: 4.44 GB

Re: SABnzbd not reporting refusal by newsserver because of missing authentication

Posted: August 11th, 2008, 2:33 pm
by switch
Thanks, filed as ticket #80

Re: SABnzbd not reporting refusal by newsserver because of missing authentication

Posted: August 11th, 2008, 3:27 pm
by sander
I guess SABnzbd should watch out for something like "480 Authentication required for command".

Code: Select all

sander@fujitsu:~$ telnet newsreader2.eweka.nl nntp
Trying 81.171.88.253...
Connected to newsreader2.eweka.nl.
Escape character is '^]'.
201 newsreader.eweka.nl NNRP Service Ready - news@eweka.nl (no posting).
group xs4all.test
480 Authentication required for command
quit
205 Transferred 126 bytes in 0 articles, 0 groups.  Disconnecting.
Connection closed by foreign host.
sander@fujitsu:~$
An open server does not say 480, but 211:

Code: Select all

sander@fujitsu:~$ telnet newszilla6.xs4all.nl nntp
Trying 2001:888::119...
Connected to newszilla6.xs4all.nl.
Escape character is '^]'.
201 dreader10.news.xs4all.nl NNRP Service Ready - newsmaster@xs4all.nl (no posting).
group xs4all.test
211 712 28007 28718 xs4all.test
quit
205 Transferred 119 bytes in 0 articles, 1 group.  Disconnecting.
Connection closed by foreign host.
sander@fujitsu:~$ 
All compliant with RFC 977: 2xx means OK, 4xx means something not OK:

Code: Select all

   The first digit of the response broadly indicates the success,
   failure, or progress of the previous command.

      1xx - Informative message
      2xx - Command ok
      3xx - Command ok so far, send the rest of it.
      4xx - Command was correct, but couldn't be performed for
            some reason.
      5xx - Command unimplemented, or incorrect, or a serious
            program error occurred.

Re: SABnzbd not reporting refusal by newsserver because of missing authentication

Posted: August 11th, 2008, 4:19 pm
by sander
sander wrote: I guess SABnzbd should watch out for something like "480 Authentication required for command".

Code: Select all

sander@fujitsu:~$ telnet newsreader2.eweka.nl nntp
Trying 81.171.88.253...
Connected to newsreader2.eweka.nl.
Escape character is '^]'.
201 newsreader.eweka.nl NNRP Service Ready - news@eweka.nl (no posting).
group xs4all.test
480 Authentication required for command
quit
205 Transferred 126 bytes in 0 articles, 0 groups.  Disconnecting.
Connection closed by foreign host.
sander@fujitsu:~$
An open server does not say 480, but 211:

Code: Select all

sander@fujitsu:~$ telnet newszilla6.xs4all.nl nntp
Trying 2001:888::119...
Connected to newszilla6.xs4all.nl.
Escape character is '^]'.
201 dreader10.news.xs4all.nl NNRP Service Ready - newsmaster@xs4all.nl (no posting).
group xs4all.test
211 712 28007 28718 xs4all.test
quit
205 Transferred 119 bytes in 0 articles, 1 group.  Disconnecting.
Connection closed by foreign host.
sander@fujitsu:~$ 
All compliant with RFC 977: 2xx means OK, 4xx means something not OK:

Code: Select all

   The first digit of the response broadly indicates the success,
   failure, or progress of the previous command.

      1xx - Informative message
      2xx - Command ok
      3xx - Command ok so far, send the rest of it.
      4xx - Command was correct, but couldn't be performed for
            some reason.
      5xx - Command unimplemented, or incorrect, or a serious
            program error occurred.