SABnzbd not reporting refusal by newsserver because of missing authentication

Report & discuss bugs found in SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
User avatar
sander
Release Testers
Release Testers
Posts: 9255
Joined: January 22nd, 2008, 2:22 pm

SABnzbd not reporting refusal by newsserver because of missing authentication

Post 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 -> [email protected] -> damn.small.linux-dsl4.4.2.vol006+08.par2 -> damn.small.linux-dsl4.4.2.nzb
          o Thread #2 -> [email protected] -> damn.small.linux-dsl4.4.2.vol014+16.par2 -> damn.small.linux-dsl4.4.2.nzb
          o Thread #3 -> [email protected] -> damn.small.linux-dsl4.4.2.vol002+04.par2 -> damn.small.linux-dsl4.4.2.nzb
          o Thread #4 -> [email protected] -> 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
Last edited by sander on August 11th, 2008, 3:11 pm, edited 1 time in total.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
User avatar
sander
Release Testers
Release Testers
Posts: 9255
Joined: January 22nd, 2008, 2:22 pm

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

Post 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 - [email protected] (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 - [email protected] (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.
Last edited by sander on August 11th, 2008, 4:17 pm, edited 1 time in total.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
User avatar
sander
Release Testers
Release Testers
Posts: 9255
Joined: January 22nd, 2008, 2:22 pm

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

Post 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 - [email protected] (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 - [email protected] (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.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
Post Reply