From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19409 invoked from network); 9 Dec 2002 07:11:58 -0000 Received: from unknown (HELO monty-python.gnu.org) (199.232.76.173) by sources.redhat.com with SMTP; 9 Dec 2002 07:11:58 -0000 Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18LHrR-0003YM-05 for listarch-gnats-devel@sources.redhat.com; Mon, 09 Dec 2002 01:57:49 -0500 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18LHrG-0003Xw-00 for help-gnats@gnu.org; Mon, 09 Dec 2002 01:57:38 -0500 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18LHrD-0003XH-00 for help-gnats@gnu.org; Mon, 09 Dec 2002 01:57:37 -0500 Received: from natint.juniper.net ([207.17.136.129] helo=merlot.juniper.net) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18LHrB-0003X5-00; Mon, 09 Dec 2002 01:57:34 -0500 Received: from juniper.net (foo.juniper.net [172.16.10.130]) by merlot.juniper.net (8.11.3/8.11.3) with ESMTP id gB96vSS88534; Sun, 8 Dec 2002 22:57:28 -0800 (PST) (envelope-from dirk@juniper.net) Message-ID: <3DF43E98.90104@juniper.net> Date: Mon, 09 Dec 2002 10:54:00 -0000 From: dirk bergstrom User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2) Gecko/20021126 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Andrew J. Gray" References: <200212021037.gB2Ab8D04083@localhost.localdomain> <3DEBE798.4030702@juniper.net> <200212080625.gB86Pvh07876@localhost.localdomain> In-Reply-To: <200212080625.gB86Pvh07876@localhost.localdomain> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: hatzis@juniper.net cc: help-gnats@gnu.org Subject: Re: patch to display new PR number for new submissions X-BeenThere: help-gnats@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: General discussion about GNU GNATS List-Help: List-Post: List-Subscribe: , List-Archive: Sender: help-gnats-bounces+listarch-gnats-devel=sources.redhat.com@gnu.org Errors-To: help-gnats-bounces+listarch-gnats-devel=sources.redhat.com@gnu.org X-SW-Source: 2002-q4/txt/msg00085.txt.bz2 Andrew J. Gray expounded at length upon: > I have a concern that the changes it makes to the gnatsd command > protocol break the assumption that clients should not attempt to parse > the message strings on response lines from the server > I was thinking that it would be more consistent to have the server > return: > 351-The added PR number is: > 350 68 hmmm. very good point. i think that's a heck of a lot easier to program to. if i may make a suggestion, it might be clearer as: 210-PR submission accepted. 351-The new PR was assigned number: 350 68 that way you get a clear 210 (OK) response, and the PR number as additional information. furthermore, if you're going to make the change to SUBM, i think it would be good to consider the response to the CHDB command. currently gnats replies with the access level, but it must be parsed out of the string: 200 snowy.juniper.net GNATS server 4.0-beta2 ready. chdb default dbergstr foo 210-Now accessing GNATS database 'default' 210 User access level set to 'edit' this might be better as: 200 snowy.juniper.net GNATS server 4.0-beta2 ready. chdb default dbergstr foo 210-Now accessing GNATS database: 350-default 351-User access level set to: 350 edit or something like that... i bring this up because i've just written a java gnats client, and had to go out of my way to parse both replies... -- Dirk Bergstrom dirk@juniper.net _____________________________________________ Juniper Networks Inc., Computer Geek Tel: 408.745.3182 Fax: 408.745.8905 _______________________________________________ Help-gnats mailing list Help-gnats@gnu.org http://mail.gnu.org/mailman/listinfo/help-gnats