Open Bug 250216 Opened 20 years ago Updated 2 years ago

Mozilla ignores news server errors when cancelling

Categories

(MailNews Core :: Networking: NNTP, defect)

defect

Tracking

(Not tracked)

People

(Reporter: mcsmurf, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8a2) Gecko/20040706
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8a2) Gecko/20040706

see below

Reproducible: Always
Steps to Reproduce:
1. Get a newsserver, which produces a error when you want to cancel a message
(i've used my own one)
2. Post a test posting in a test group
(2.1. make your news server produce a nntp error, i've then here denied write
access to this group)
3. Try to cancel this posting

Actual Results:  
The message "Message cancelled" appears, the news posting disappears in header
and message pane and then after few seconds a second message "A News (NNTP)
error occurred: [error from server]" appears. This means the posting did not
actually get cancelled.

Expected Results:  
Give the error message first and not try to cancel the message further (as
Mozilla does, see the log below). Also Mozilla should then keep the message in
it's DB.

Log from the newsserver:
2004.07.07 18:28:54 I   {584} < 200 NNTP-Server Classic Hamster Version 2.0
(Build 2.0.5.5) (post ok) on mcsmurf says: Hi!
2004.07.07 18:28:54 I   {584} > MODE READER
2004.07.07 18:28:54 I   {584} < 200 ignored
2004.07.07 18:28:54 I   {584} > HEAD <cchfce.js.1@mcsmurf>
2004.07.07 18:28:54 I   {584} < 480 Authentication required
2004.07.07 18:28:54 I   {584} > AUTHINFO user Frank
2004.07.07 18:28:54 I   {584} < 381 More authentication information required
2004.07.07 18:28:54 I   {584} > AUTHINFO PASS [...]
2004.07.07 18:28:54 I   {584} < 281 Authentication accepted
2004.07.07 18:28:54 I   {584} > HEAD <cchfce.js.1@mcsmurf>
2004.07.07 18:28:54 I   {584} < 221 29 <cchfce.js.1@mcsmurf> head
2004.07.07 18:28:54 I   {584} > POST
2004.07.07 18:28:54 I   {584} < 440 posting not allowed  <-- ERROR from newserver
2004.07.07 18:28:55 I   {584} > From: mcsmurfREMOVEMICH@gmx.de
2004.07.07 18:28:55 I   {584} < 500 Command not implemented.
2004.07.07 18:28:55 I   {584} Unsupported NNTP-command: From:
mcsmurfREMOVEMICH@gmx.de
2004.07.07 18:28:55 I   {584} > Newsgroups: hamster.lokal.test
2004.07.07 18:28:55 I   {584} < 500 Command not implemented.
2004.07.07 18:28:55 I   {584} Unsupported NNTP-command: Newsgroups:
hamster.lokal.test
2004.07.07 18:28:55 I   {584} > Subject: cancel <cchfce.js.1@mcsmurf>
2004.07.07 18:28:55 I   {584} < 500 Command not implemented.
2004.07.07 18:28:55 I   {584} Unsupported NNTP-command: Subject: cancel
<cchfce.js.1@mcsmurf>
2004.07.07 18:28:55 I   {584} > References: <cchfce.js.1@mcsmurf>
2004.07.07 18:28:55 I   {584} < 500 Command not implemented.
2004.07.07 18:28:55 I   {584} Unsupported NNTP-command: References:
<cchfce.js.1@mcsmurf>
2004.07.07 18:28:55 I   {584} > Control: cancel <cchfce.js.1@mcsmurf>
2004.07.07 18:28:55 I   {584} < 500 Command not implemented.
2004.07.07 18:28:55 I   {584} Unsupported NNTP-command: Control: cancel
<cchfce.js.1@mcsmurf>
2004.07.07 18:28:55 I   {584} > 
2004.07.07 18:28:55 I   {584} > This message was cancelled from within Mozilla.
2004.07.07 18:28:55 I   {584} < 500 Command not implemented.
2004.07.07 18:28:55 I   {584} Unsupported NNTP-command: This message was
cancelled from within Mozilla.
2004.07.07 18:28:55 I   {584} > .
2004.07.07 18:28:55 I   {584} < 500 Command not implemented.
2004.07.07 18:28:55 I   {584} Unsupported NNTP-command: .
btw: When doing a normal post and when then news server sends a error,
everything's ok:
-----------------
2004.07.07 18:47:33 I   {430} < 200 NNTP-Server Classic Hamster Version 2.0
(Build 2.0.5.5) (post ok) on mcsmurf says: Hi!
2004.07.07 18:47:33 I   {430} > MODE READER
2004.07.07 18:47:33 I   {430} < 200 ignored
2004.07.07 18:47:33 I   {430} > GROUP hamster.lokal.test
2004.07.07 18:47:33 I   {430} < 480 Authentication required
2004.07.07 18:47:33 I   {430} > AUTHINFO user Frank
2004.07.07 18:47:33 I   {430} < 381 More authentication information required
2004.07.07 18:47:33 I   {430} > AUTHINFO PASS [...]
2004.07.07 18:47:33 I   {430} < 281 Authentication accepted
2004.07.07 18:47:33 I   {430} > GROUP hamster.lokal.test
2004.07.07 18:47:33 I   {430} < 211 26 1 29 hamster.lokal.test
2004.07.07 18:47:40 I   {430} > POST
2004.07.07 18:47:40 I   {430} < 440 posting not allowed
-----------------
and Mozilla gives a error message when trying to send the posting.
Perhaps related, but I'm not sure -> bug 105317.
Product: MailNews → Core
Possibly related to bug 168179.
sorry for the spam.  making bugzilla reflect reality as I'm not working on these bugs.  filter on FOOBARCHEESE to remove these in bulk.
Assignee: sspitzer → nobody
Still exists, and mozilla is executing arbitrary commands -> critical.
Severity: normal → critical
OS: Windows 2000 → All
QA Contact: networking.news
Hardware: PC → All
Product: Core → MailNews Core
Is this dataloss?

If not, it's not critical AFAICT
Severity: critical → normal
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.