After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 644367 - Check NNTP server capabilities before using OVER command
Check NNTP server capabilities before using OVER command
Status: RESOLVED FIXED
Product: evolution-data-server
Classification: Platform
Component: Mailer
2.30.x (obsolete)
Other Linux
: Normal normal
: ---
Assigned To: evolution-mail-maintainers
Evolution QA team
evolution[nntp]
Depends on:
Blocks:
 
 
Reported: 2011-03-10 01:41 UTC by Yasar Arabaci
Modified: 2011-03-15 01:41 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
output of CAMEL_DEBUG=all evolution >& evo.log (101.22 KB, text/x-log)
2011-03-10 01:41 UTC, Yasar Arabaci
  Details
eds patch (3.93 KB, patch)
2011-03-11 15:58 UTC, Milan Crha
committed Details | Review

Description Yasar Arabaci 2011-03-10 01:41:37 UTC
Created attachment 183038 [details]
output of CAMEL_DEBUG=all evolution >& evo.log

Hi, I am positive that I did my account settings correct but I cannot recieve nntp news from forums.opensuse.org. I did CAMEL_DEBUG=all evolution >& evo.log and sending output as an attachment. Additionally, here is the part where I thing is problem accuring:

NNTP_STREAM_LINE(54): '200 Welcome to forums.novell.com! (Typhoon v2.1.2.394)'
NNTP_COMMAND: 'mode reader'
NNTP_STREAM_LINE(54): '200 Welcome to forums.novell.com! (Typhoon v2.1.2.394)'
NNTP_COMMAND: 'date'
NNTP_STREAM_LINE(18): '111 20110310011224'
NNTP_COMMAND: 'group opensuse.org.de.community.allgemeines-gequatsche'
NNTP_STREAM_LINE(62): '211 133 2 134 opensuse.org.de.community.allgemeines-gequatsche'
NNTP_COMMAND: 'over 2-134'
NNTP_STREAM_FILL(ERROR): 0 - 'Bağlantı karşıdan kesildi'
CamelException.setv(0xad1b60d8, 2, 'NNTP Command failed: Bağlantı karşıdan kesildi')
NNTP_COMMAND: 'xover 2-134'
NNTP_STREAM_FILL(ERROR): 0 - 'Bağlantı karşıdan kesildi'
CamelException.setv(0xad1b60d8, 2, 'NNTP Command failed: Bağlantı karşıdan kesildi')

"Bağlantı karşıdan kesildi" means "connection closed remotely" in Turkish
Comment 1 Yasar Arabaci 2011-03-10 02:01:44 UTC
I found out that my nntp server doesn't accept over command but instead accepts xover command. So initial over command breaks the connections. Is there anyway to stop that command to be used?
Comment 2 Jim Henderson 2011-03-10 03:00:56 UTC
I can confirm the issue here (I'm a non-technical administrator on forums.opensuse.org) - it seems that in Evolution 2.28.1 the 'over' command isn't used, and that version works fine.  But in 2.30.x and later, the 'over' command is tried and on servers that don't support it, the connection is terminated.  

That seems to be the cause of this issue.

The server in use at forums.opensuse.org (and forums.novell.com) is Typhoon (as can be seen in the debug info Yasar posted).

It looks like what Evolution probably needs to do is issue a "HELP" command to identify what are and are not valid commands on the server and then not execute commands that aren't part of what the server understands.
Comment 3 Milan Crha 2011-03-11 14:17:08 UTC
Thanks for a bug report. I added there this within bug #518876.

Reading the RFC 3977 I see that HELP command is not suitable for our needs, as it is meant for humans, not for machines. The right property is CAPABILITIES, where the server may advertise OVER when it supports it. I overlooked this when I was working on the mentioned bug, I'm sorry. I'll fix it.
Comment 4 Milan Crha 2011-03-11 15:03:23 UTC
I've a bad news for you, your server is totally broken.

From the above mentioned RFC:
>  5.2. CAPABILITIES
>    5.2.1. Usage
>      This command is mandatory.

But your server just hangs off (Connection reset by peer). So it seems to me that the server is not following the RFC. Maybe something wrong with setup? Either way, this works fine with gmane server, thus I know I wrote the capability command correctly.
Comment 5 Milan Crha 2011-03-11 15:58:03 UTC
Created attachment 183159 [details] [review]
eds patch

for evolution-data-server;

I'm not happy that I should also workaround an error on the CAPABILITY command, but as it's doable, then let's have it there. Please check with the server provider why they do not follow the RFC, or if there's anything overlooked for setting on the server that it disconnects when one tries to invoke such command. Thanks.
Comment 6 Milan Crha 2011-03-11 15:59:58 UTC
Created commit bc68419 in eds master (2.91.92+)
Comment 7 Jim Henderson 2011-03-11 16:08:24 UTC
Thanks - I'll see if I have a contact at Highwinds to find out about the lack of a CAPABILITIES command - it does seem odd that it just hangs up on an invalid command.  Thanks for working around that.