This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author msapiro
Recipients msapiro
Date 2019-08-22.17:22:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1566494552.99.0.566197119137.issue37919@roundup.psfhosted.org>
In-reply-to
Content
This is really due to an nntp server bug, but here's the scenerio.

A connection is opened to the server.

An article is posted via the connection's post() method.

The server responds to the article data with

240 Article posted <value of message-id>

but due to the server bug, if the message-id is long, this response comes on two lines as

240 Article posted
 <value of message-id>

The post() method reads only the first line and returns it.

Then the connection's quit() method (or some other method) is called, and it sees the second line of the prior response as the server's response rather than the actual response, and raises NNTPProtocolError.

Arguably, NNTPProtocolError is appropriate in this scenario, but if so, it should be raised by the post() method and not by a subsequent method.
History
Date User Action Args
2019-08-22 17:22:33msapirosetrecipients: + msapiro
2019-08-22 17:22:32msapirosetmessageid: <1566494552.99.0.566197119137.issue37919@roundup.psfhosted.org>
2019-08-22 17:22:32msapirolinkissue37919 messages
2019-08-22 17:22:32msapirocreate