From dgilbert@office.tor.velocet.net  Fri Jun 30 08:32:06 2000
Return-Path: <dgilbert@office.tor.velocet.net>
Received: from sabre.velocet.net (sabre.velocet.net [198.96.118.66])
	by hub.freebsd.org (Postfix) with ESMTP id A484A37C003
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 30 Jun 2000 08:32:05 -0700 (PDT)
	(envelope-from dgilbert@office.tor.velocet.net)
Received: from office.tor.velocet.net (trooper.velocet.net [216.126.82.226])
	by sabre.velocet.net (Postfix) with ESMTP id F37BF137F15
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 30 Jun 2000 11:32:00 -0400 (EDT)
Received: (from dgilbert@localhost)
	by office.tor.velocet.net (8.9.3/8.9.3) id LAA91460;
	Fri, 30 Jun 2000 11:31:21 -0400 (EDT)
	(envelope-from dgilbert)
Message-Id: <200006301531.LAA91460@office.tor.velocet.net>
Date: Fri, 30 Jun 2000 11:31:21 -0400 (EDT)
From: David Gilbert <dgilbert@velocet.ca>
Sender: dgilbert@office.tor.velocet.net
Reply-To: dgilbert@velocet.ca
To: FreeBSD-gnats-submit@freebsd.org
Subject: Web query interface doesn't seem to work.
X-Send-Pr-Version: 3.2

>Number:         19604
>Category:       docs
>Synopsis:       Web query interface doesn't search or Originator correctly
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    steve
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jun 30 08:40:01 PDT 2000
>Closed-Date:    Fri Nov 07 12:58:33 PST 2003
>Last-Modified:  Fri Nov 07 12:58:33 PST 2003
>Originator:     David Gilbert
>Release:        FreeBSD 4.0-STABLE i386
>Organization:
Velocet Communications
>Environment:

Netscape 4.7, on FreeBSD-4.0-STALE, I suppose.

>Description:

When I'm hitting 

http://www.FreeBSD.org/cgi/query-pr-summary.cgi?query

and I enter the Originator of one of my PRs in either the originator
field or the single line field of the form, the search comes back
blank.

This happens whether I search for the whole string or some substring
of the originator.

>How-To-Repeat:

My example originator strings are "dgilbert" and
"David Gilbert <dgilbert@velocet.ca>"

>Fix:

None known.


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: alex 
State-Changed-When: Sun Jul 9 08:17:09 PDT 2000 
State-Changed-Why:  
I wonder why _I_ can do such queries. 

If I use "alex", it shows some of my PR's and also some of other people, 
such as Alexey Foo <alexbar@baz.barf> 

However, dgilbert did not appear in the query, correct. 

Maybe it has not been received by GNATS. 
Did you receive a confirmation? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=19604 

From: David Gilbert <dgilbert@velocet.ca>
To: alex@FreeBSD.org
Cc: dgilbert@velocet.ca, freebsd-doc@FreeBSD.org
Subject: Re: docs/19604: Web query interface doesn't search or Originator correctly
Date: Sun, 9 Jul 2000 13:42:35 -0400 (EDT)

 >>>>> "alex" == alex  <alex@FreeBSD.org> writes:
 
 alex> If I use "alex", it shows some of my PR's and also some of other
 alex> people, such as Alexey Foo <alexbar@baz.barf>
 
 alex> However, dgilbert did not appear in the query, correct.
 
 alex> Maybe it has not been received by GNATS.  Did you receive a
 alex> confirmation?
 
 alex> http://www.freebsd.org/cgi/query-pr.cgi?pr=19604
 
 Yes I did.  The PR kern/19604 is not only there, but we've had several 
 back-and-forth rounds of discussion on it.  dgilbert clearly appears
 is about a dozen FreeBSD PR's ... both open and closed... but the
 search form does not bring it up.
 
 Dave.
 
 -- 
 ============================================================================
 |David Gilbert, Velocet Communications.       | Two things can only be     |
 |Mail:       dgilbert@velocet.net             |  equal if and only if they |
 |http://www.velocet.net/~dgilbert             |   are precisely opposite.  |
 =========================================================GLO================
 

From: Udo Erdelhoff <ue@nathan.ruhr.de>
To: alex@FreeBSD.ORG
Cc: dgilbert@velocet.ca
Subject: Re: docs/19604: Web query interface doesn't search or Originator correctly
Date: Sun, 9 Jul 2000 20:23:44 +0200

 [BCCed to freebsd-gnats-submit to get it archived]
 On Sun, Jul 09, 2000 at 08:20:01AM -0700, alex@FreeBSD.ORG wrote:
 > I wonder why _I_ can do such queries.
 
 Your username is a substring of your first name and the query is not
 case-sensitive.
 
 send-pr uses the first part of the GCOS field (full name) as default value
 for Originator. Most people don't change the value. If you query the PR
 database, the search string will be matched against this value.
 
 [send-pr 3.2 on -current]
 
 The confusion is caused by the output of the search script: it reports the
 contents of the mail's From: field as "originator".
 
 In David's case, searching for gilbert, david gilbert or any substring
 of it will display his PRs.
 
 Somebody should fix query-pr.cgi to
 a) report the "real" originator
 b) report "Sent in by: " instead of "Originator:"
 c) both. This could be useful to deal with PRs sent in by organisations.
    Originator: Columbia Internet
    Sent in by: <stef@columbia.net>
 
 /s/Udo
 
 
State-Changed-From-To: feedback->open 
State-Changed-By: alex 
State-Changed-When: Sat Jul 15 00:31:24 PDT 2000 
State-Changed-Why:  
Re-Open, this seems to be a problem. 



Responsible-Changed-From-To: freebsd-doc->steve 
Responsible-Changed-By: alex 
Responsible-Changed-When: Sat Jul 15 00:31:24 PDT 2000 
Responsible-Changed-Why:  
Over to GNATS admin 

http://www.freebsd.org/cgi/query-pr.cgi?pr=19604 

From: Steve Price <sprice@hiwaay.net>
To: freebsd-gnats-submit@freebsd.org
Cc: Udo Erdelhoff <ue@nathan.ruhr.de>, alex@freebsd.org,
	dgilbert@velocet.ca
Subject: Re: docs/19604
Date: Sat, 15 Jul 2000 10:58:50 -0500

 # The confusion is caused by the output of the search script: it reports the
 # contents of the mail's From: field as "originator".
 
 This is not the case.  The search script uses query-pr to return
 the results.  In David's case searching on the Originator field
 it would look something like this:
 
 	query-pr -O 'David Gilbert'
 
 If you look at all the PRs (and I just did) in no instance is
 'dgilbert' the in '>Originator:' field.  So inputing dgilbert
 in the originator field (or any field other than the multi-line
 field) on the WWW page should return no matches.  And it does.
 
 Perhaps the confusion is related to the fact that although the
 mail headers are part of the file stored by GNATS, they are not
 searchable by GNATS.  The searchable fields are those that look
 like '>SomeWord:'.
 
 # In David's case, searching for gilbert, david gilbert or any substring
 # of it will display his PRs.
 # 
 # Somebody should fix query-pr.cgi to
 
 I think you mean query-summary-pr.cgi since query-pr.cgi only allows
 you to search on PRs by number.  In either case I'm not entirely clear
 on what needs to be fixed.
 
 # a) report the "real" originator
 
 The real originator is used.  When using send-pr the originator is
 gleened initially from /etc/passwd but you are free to change it.  When
 submitting a PR with the WWW interface the From: header of the mail
 message is used.  What part of that is broken and how would you propose
 to fix it?
 
 # b) report "Sent in by: " instead of "Originator:"
 
 See above.  David's PRs were sent in by David Gilbert <dgilbert@velocet.ca>
 and the Originator field was set to 'David Gilbert' accordingly.
 
 # c) both. This could be useful to deal with PRs sent in by organisations.
 #    Originator: Columbia Internet
 #    Sent in by: <stef@columbia.net>
 
 This is a semantic issue really.  A PR is not originated by an
 organization but by the individual that sent in the PR.  There is an
 '>Organization:' field that you can search on by using the multi-line
 input field on the WWW page if need be.
 
 I'm clearly missing the problem(s) here.  Perhaps you could clue me in
 with a set of patches? :)
 
 -steve
 

From: Udo Erdelhoff <ue@nathan.ruhr.de>
To: Steve Price <sprice@hiwaay.net>
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: docs/19604
Date: Mon, 17 Jul 2000 02:48:23 +0200

 Steve,
 > If you look at all the PRs (and I just did) in no instance is
 > 'dgilbert' the in '>Originator:' field.
 
 that is correct - the original Originator field is filled by send-pr and
 only contains the user's full name by default.
 
 > Perhaps the confusion is related to the fact that although the
 > mail headers are part of the file stored by GNATS, they are not
 > searchable by GNATS.  The searchable fields are those that look
 > like '>SomeWord:'.
 
 I'm starting to understand your problem. You're talking about GNATS,
 David and I were talking about the web interface.
 
 > I think you mean query-summary-pr.cgi since query-pr.cgi only allows
 > you to search on PRs by number.  In either case I'm not entirely clear
 > on what needs to be fixed.
 
 Ok, time for an example:
 
 I used send-pr to report the problem with the ID conf/19849. When I 
 started send-pr, the PR contained the line ">Originator: Udo Erdelhoff".
 I did not change the line.
 
 And now, go to http://www.FreeBSD.org/cgi/query-pr.cgi?pr=19849. The result
 of this query is:
 Originator
     Udo Erdelhoff <ue@nathan.ruhr.de>
 
 *This* is one aspect of the problem - query-pr.cgi reports the mail address
 instead of the contents of GNATS-originator. The output is misleading;
 people are lead to believe that the Originator field in GNATS contains
 their mail address.
 
 The second aspect of the problem is send-pr. send-pr should put
 "Joe User <joe@host.domain>" into the ">Originator"-Line, not just "Joe
 User".
 
 Or, if you prepare a single-sentence-problem-description: A bad default
 in send-pr and the misleading output of query-pr.cgi lead the user onto
 the road to madness.
 
 > I'm clearly missing the problem(s) here.  Perhaps you could clue me in
 > with a set of patches? :)
 
 Gladly - if I find a way to download the search engine and the database.
 
 /s/Udo
 -- 
 >Every program evolves until it is capable of sending email.
 Except Microsoft Exchange
 

From: Steve Price <sprice@hiwaay.net>
To: Udo Erdelhoff <ue@nathan.ruhr.de>
Cc: Steve Price <sprice@hiwaay.net>, freebsd-gnats-submit@freebsd.org
Subject: Re: docs/19604
Date: Sun, 29 Oct 2000 17:15:01 -0600

 On Mon, Jul 17, 2000 at 02:48:23AM +0200, Udo Erdelhoff wrote:
 # Steve,
 # > If you look at all the PRs (and I just did) in no instance is
 # > 'dgilbert' the in '>Originator:' field.
 # 
 # that is correct - the original Originator field is filled by send-pr and
 # only contains the user's full name by default.
 
 This is because it can't possibly just guess this value correctly
 100% of the time.  For example, my machine here calls itself
 bonsai.hiwaay.net and I'm logged in as user steve.  However, my
 real email address is sprice@hiwaay.net.  If it were to try and
 guess my email address it would probably come up with
 steve@bonsai.hiwaay.net which will definitely bounce.  Come up with
 a patch that gets things to work like you want and I'd be happy to
 review/commit it.
 
 # I used send-pr to report the problem with the ID conf/19849. When I 
 # started send-pr, the PR contained the line ">Originator: Udo Erdelhoff".
 # I did not change the line.
 # 
 # And now, go to http://www.FreeBSD.org/cgi/query-pr.cgi?pr=19849. The result
 # of this query is:
 # Originator
 #     Udo Erdelhoff <ue@nathan.ruhr.de>
 # 
 # *This* is one aspect of the problem - query-pr.cgi reports the mail address
 # instead of the contents of GNATS-originator. The output is misleading;
 # people are lead to believe that the Originator field in GNATS contains
 # their mail address.
 
 This is by design.  The stuff in '<...>' is a mailto anchor and
 designed to make it easier for someone to use the web interface
 to send a message to just the Originator of the PR.  Are you
 suggesting that we remove this because it is misleading?
 
 # The second aspect of the problem is send-pr. send-pr should put
 # "Joe User <joe@host.domain>" into the ">Originator"-Line, not just "Joe
 # User".
 
 See above for why this is difficult.  Develop a patch that works
 100% of the time and I'll review/commit it.
 
 # Or, if you prepare a single-sentence-problem-description: A bad default
 # in send-pr and the misleading output of query-pr.cgi lead the user onto
 # the road to madness.
 # 
 # > I'm clearly missing the problem(s) here.  Perhaps you could clue me in
 # > with a set of patches? :)
 # 
 # Gladly - if I find a way to download the search engine and the database.
 
 Work up something you think will work and I'll hone it and get it
 committed.  At this point I'm still confused as to what a fix
 would look like since none of this appears broken to me.  It might
 be slightly confusing but... :)
 
 -steve
 

From: Marc Perisa <perisa@porsche.de>
To: freebsd-gnats-submit@FreeBSD.org, steve@FreeBSD.org
Cc:  
Subject: Re: docs/19604: Web query interface doesn't search or Originator
 correctly
Date: Wed, 29 May 2002 01:41:58 +0200

 Hi,
 
 what I understood from the discussion in the follow-up it is not 
 possible to determine the mail address automagically. But people are 
 looking for the mail address in the originator field ... where it is not 
 recorded.
 
 An idea is to seperate the mail address from the originators name to a 
 seperate field "Originators mail address". It can look like the 
 following in the web interface:
 
 *Last-Modified*
 Sun Oct 29 15:20:01 PST 2000 *Originator*
 David Gilbert 
 *Originators Mail Address*
 <dgilbert@velocet.ca <mailto:dgilbert@velocet.ca>> *Release*
 FreeBSD 4.0-STABLE i386
 
 Then it is perhaps possible to create a seperate search for the email 
 address.
 
 I have not looked into the code yet. If a solution like this is wanted I 
 will try to code it.
 
 Otherwise I think this can be closed due to feedback timeout.
 
 Thanks
 
 Marc
 
 
 
 
State-Changed-From-To: open->closed 
State-Changed-By: ceri 
State-Changed-When: Fri Nov 7 12:58:09 PST 2003 
State-Changed-Why:  
I'm in agreement with steve that this doesn't represent a real problem. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=19604 
>Unformatted:
