public inbox for gnats-devel@sourceware.org
 help / color / mirror / Atom feed
From: "Marcus Williams" <marcus@quintic.co.uk>
To: "GNATS Development Mailing List" <gnats-devel@sources.redhat.com>
Subject: RE: gnatsd output question
Date: Wed, 05 Sep 2001 01:53:00 -0000	[thread overview]
Message-ID: <003e01c135e8$588d3ae0$a0c809c0@itchy.quintic.bogus> (raw)
In-Reply-To: <87snezizbn.fsf@blackbird.zamazal.org>

> -----Original Message-----
> From: pdm@blackbird.zamazal.org [ mailto:pdm@blackbird.zamazal.org]On
> Behalf Of Milan Zamazal
> Sent: 10 August 2001 18:45
> To: GNATS Development Mailing List
> Subject: gnatsd output question
[snip]
>   211 Ok.
>   <the report text>
>   .
>   210 GNATS database is now locked.
>   210 PR added.
>   210 GNATS database is now unlocked.
>
> or, in the case of failure, like this:
>
>   subm
>   211 Ok.
>   .
>   210 GNATS database is now locked.
>   402 Failure reading header
>   210 GNATS database is now unlocked.
>
> As you can see above, after submitting the report text
> gnatsd outputs
> *three* status report lines as single messages, the overall result
> message is wrapped by the locking status messages.  Is this behavior
> and/or format right?  If not, how should the output look?
[snip]

I'd tend to agree with Rick Macdonald that the lock messages are
internal to Gnats so dont need to be displayed (unless they fail).

It may be worth doing something like the FTP specs (RFC 0959?) say and
wrap the three messages inside a multiline result so it becomes (from
what I remember of the RFC):

subm
211 Ok.
.
210- GNATS database is now locked
402- Failure reading header
210- GNATS database is now unlocked

The trailing dash after the result code indicates a multiline
continuation. However, this is wrong as well as we're only interested
in the 402 in the middle so it probably should be

subm
211 Ok.
.
402- GNATS database is now locked
402- Failure reading header
402- GNATS database is now unlocked

Since you can only tell that theres a header error by reading the full
message, maybe more error codes should be added so then we can
exchange 402 for whatever the code is for "Failure reading header".
The multiline reply is then only for interactive/information purposes.

Marcus

--
Marcus Williams - http://www.onq2.com
Quintic Ltd, 39 Newnham Rd, Cambridge, CB3 9EY

  reply	other threads:[~2001-09-05  1:53 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-10 11:54 Milan Zamazal
2001-09-05  1:53 ` Marcus Williams [this message]
2001-09-05  5:59   ` Rick Macdonald
2001-09-05  6:09     ` Jasper O'Malley
2001-09-05  7:13       ` Rick Macdonald
2001-09-06 12:01         ` Milan Zamazal
2001-09-05 13:16   ` Mark D. Baushke

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='003e01c135e8$588d3ae0$a0c809c0@itchy.quintic.bogus' \
    --to=marcus@quintic.co.uk \
    --cc=gnats-devel@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).