public inbox for gnats-devel@sourceware.org
 help / color / mirror / Atom feed
* gnatsd protocol inconsistency
@ 2002-12-01 14:21 Mike Hoolehan
  0 siblings, 0 replies; only message in thread
From: Mike Hoolehan @ 2002-12-01 14:21 UTC (permalink / raw)
  To: help-gnats

In working with gnatsd, I've found a gnatsd response that doesn't seem to
conform to the stated protocol.  With the CHEK initial command, gnatsd will
response with something like:

411 There is a bad value `foo' for the field `Category'.
403 Errors found checking PR text.

when an invalid field is supplied.  However, according to the gnatsd 
description in the documentation, the first error message should have a 
hyphen after the 411.  

The code in cmds.c which handles the printing of the 411 error will put
hyphen on the first n-1 411 errors messages (there may be multiple) but not 
on the nth message.  In other words, it doesn't seem to expect that 403
error to bring up the rear.  

So there are two solutions, I suppose:  Drop that last 403 error (line 726 
of cmds.c in 3.999.1) or always put a hypen in those 411 errors (line 86 
of same).  

I don't think that final 403 error is very handy since it's clear from the 
existence of the previous 411 lines that errors were found.  But I may not
be aware of other circumstances which account for its presence.  

Below is the part of the gnatsd documentation I referred to earlier.

Thanks,
Mike Hoolehan



Codes 400-599
An error occurred, usually because of invalid command parameters or
invalid input from the client, missing arguments to the command, or a
command was issued out of sequence. The human-readable message associated
with the response line describes the general problem encountered with the
command.
Multiple error messages may be returned from a command; in this case the `-'
continuation character is used on all but the last response line. 


_______________________________________________
Help-gnats mailing list
Help-gnats@gnu.org
http://mail.gnu.org/mailman/listinfo/help-gnats

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-11-26 19:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-01 14:21 gnatsd protocol inconsistency Mike Hoolehan

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).