public inbox for elfutils@sourceware.org
 help / color / mirror / Atom feed
* [Bug debuginfod/27277] New: support HEAD query for debuginfod content probe requests
@ 2021-01-29 16:31 fche at redhat dot com
  2021-02-01  8:47 ` [Bug debuginfod/27277] " mliska at suse dot cz
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: fche at redhat dot com @ 2021-01-29 16:31 UTC (permalink / raw)
  To: elfutils-devel

https://sourceware.org/bugzilla/show_bug.cgi?id=27277

            Bug ID: 27277
           Summary: support HEAD query for debuginfod content probe
                    requests
           Product: elfutils
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: debuginfod
          Assignee: unassigned at sourceware dot org
          Reporter: fche at redhat dot com
                CC: elfutils-devel at sourceware dot org, woodard at redhat dot com
  Target Milestone: ---

There appear to exist use cases that intend to simply check for the existence
of content in a debuginfod server, without actually downloading it.  In HTTP
land, the HEAD operation is the natural expression of this.  We could support
this in the webapi, and give options to debuginfod-find and the client API to
use it.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug debuginfod/27277] support HEAD query for debuginfod content probe requests
  2021-01-29 16:31 [Bug debuginfod/27277] New: support HEAD query for debuginfod content probe requests fche at redhat dot com
@ 2021-02-01  8:47 ` mliska at suse dot cz
  2021-03-30 20:16 ` fche at redhat dot com
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: mliska at suse dot cz @ 2021-02-01  8:47 UTC (permalink / raw)
  To: elfutils-devel

https://sourceware.org/bugzilla/show_bug.cgi?id=27277

Martin Liska <mliska at suse dot cz> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mliska at suse dot cz

--- Comment #1 from Martin Liska <mliska at suse dot cz> ---
I see the suggested functionality quite handy! Thanks.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug debuginfod/27277] support HEAD query for debuginfod content probe requests
  2021-01-29 16:31 [Bug debuginfod/27277] New: support HEAD query for debuginfod content probe requests fche at redhat dot com
  2021-02-01  8:47 ` [Bug debuginfod/27277] " mliska at suse dot cz
@ 2021-03-30 20:16 ` fche at redhat dot com
  2021-07-27 13:09 ` nsanci at redhat dot com
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: fche at redhat dot com @ 2021-03-30 20:16 UTC (permalink / raw)
  To: elfutils-devel

https://sourceware.org/bugzilla/show_bug.cgi?id=27277

--- Comment #2 from Frank Ch. Eigler <fche at redhat dot com> ---
A related idea:
extend the webapi so that returned content includes response headers that
identify the archive & file name where the content was extracted from.
For server privacy, maybe pass back just the basename.  The client API
would need to be extended to store those headers as extra strings a client
could query.

All this can be used by smarter clients to identify in user-friendly ways the
origin of the buildid.  For example:

 % debuginfod-find describe BUILDID
 [runs HEAD query, listens to extra Headers]
 length: 2879342938423 
 server: https://foo/bar
 x-archive: foo-bar-2.3.rpm
 x-file: bin/sudifusdf

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug debuginfod/27277] support HEAD query for debuginfod content probe requests
  2021-01-29 16:31 [Bug debuginfod/27277] New: support HEAD query for debuginfod content probe requests fche at redhat dot com
  2021-02-01  8:47 ` [Bug debuginfod/27277] " mliska at suse dot cz
  2021-03-30 20:16 ` fche at redhat dot com
@ 2021-07-27 13:09 ` nsanci at redhat dot com
  2021-07-27 14:41 ` fche at redhat dot com
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: nsanci at redhat dot com @ 2021-07-27 13:09 UTC (permalink / raw)
  To: elfutils-devel

https://sourceware.org/bugzilla/show_bug.cgi?id=27277

Noah Sanci <nsanci at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nsanci at redhat dot com
           Assignee|unassigned at sourceware dot org   |nsanci at redhat dot com

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug debuginfod/27277] support HEAD query for debuginfod content probe requests
  2021-01-29 16:31 [Bug debuginfod/27277] New: support HEAD query for debuginfod content probe requests fche at redhat dot com
                   ` (2 preceding siblings ...)
  2021-07-27 13:09 ` nsanci at redhat dot com
@ 2021-07-27 14:41 ` fche at redhat dot com
  2021-09-15 17:37 ` [Bug debuginfod/27277] Print http response headers when in verbose mode nsanci at redhat dot com
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: fche at redhat dot com @ 2021-07-27 14:41 UTC (permalink / raw)
  To: elfutils-devel

https://sourceware.org/bugzilla/show_bug.cgi?id=27277

--- Comment #3 from Frank Ch. Eigler <fche at redhat dot com> ---
The initial #c0 impetus is now pretty moot with env DEBUGINFOD_MAXSIZE=0
support.  The server should give us a 404 or a 406 depending on whether the
file exists, but not download content.

The #c2 "debuginfod-find describe ..." idea still may be interesting.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug debuginfod/27277] Print http response headers when in verbose mode.
  2021-01-29 16:31 [Bug debuginfod/27277] New: support HEAD query for debuginfod content probe requests fche at redhat dot com
                   ` (3 preceding siblings ...)
  2021-07-27 14:41 ` fche at redhat dot com
@ 2021-09-15 17:37 ` nsanci at redhat dot com
  2021-09-27 18:52 ` nsanci at redhat dot com
  2021-11-10 14:12 ` mark at klomp dot org
  6 siblings, 0 replies; 8+ messages in thread
From: nsanci at redhat dot com @ 2021-09-15 17:37 UTC (permalink / raw)
  To: elfutils-devel

https://sourceware.org/bugzilla/show_bug.cgi?id=27277

Noah Sanci <nsanci at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|support HEAD query for      |Print http response headers
                   |debuginfod content probe    |when in verbose mode.
                   |requests                    |

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug debuginfod/27277] Print http response headers when in verbose mode.
  2021-01-29 16:31 [Bug debuginfod/27277] New: support HEAD query for debuginfod content probe requests fche at redhat dot com
                   ` (4 preceding siblings ...)
  2021-09-15 17:37 ` [Bug debuginfod/27277] Print http response headers when in verbose mode nsanci at redhat dot com
@ 2021-09-27 18:52 ` nsanci at redhat dot com
  2021-11-10 14:12 ` mark at klomp dot org
  6 siblings, 0 replies; 8+ messages in thread
From: nsanci at redhat dot com @ 2021-09-27 18:52 UTC (permalink / raw)
  To: elfutils-devel

https://sourceware.org/bugzilla/show_bug.cgi?id=27277

Noah Sanci <nsanci at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

--- Comment #4 from Noah Sanci <nsanci at redhat dot com> ---
Allow users, with enough verbosity, to print the HTTP response headers
upon retrieving a file. These files may include several custome http
response headers such as X-DEBUGINFOD-FILE, X-DEBUGINFOD-SIZE, and
X-DEBUGINFOD-ARCHIVE. These headers are added from the daemon, in
debuginfod.cxx.

E.g output:

HTTP/1.1 200 OK
Connection: Keep-Alive
Content-Length: 4095072
Cache-Control: public
Last-Modified: Thu, 09 Sep 2021 19:06:40 GMT
X-FILE: debuginfod
X-FILE-SIZE: 4095072
Content-Type: application/octet-stream
Date: Fri, 10 Sep 2021 16:38:06 GMT

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug debuginfod/27277] Print http response headers when in verbose mode.
  2021-01-29 16:31 [Bug debuginfod/27277] New: support HEAD query for debuginfod content probe requests fche at redhat dot com
                   ` (5 preceding siblings ...)
  2021-09-27 18:52 ` nsanci at redhat dot com
@ 2021-11-10 14:12 ` mark at klomp dot org
  6 siblings, 0 replies; 8+ messages in thread
From: mark at klomp dot org @ 2021-11-10 14:12 UTC (permalink / raw)
  To: elfutils-devel

https://sourceware.org/bugzilla/show_bug.cgi?id=27277

Mark Wielaard <mark at klomp dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mark at klomp dot org

--- Comment #5 from Mark Wielaard <mark at klomp dot org> ---
commit ff5056c7d78b925fbd49997dc88183f6c859ac7f
Author: Noah Sanci <nsanci@redhat.com>
Date:   Tue Aug 10 11:21:35 2021 -0400

    debuginfod: PR27277 - Describe retrieved files when verbose

    Allow users, with enough verbosity, to print the HTTP response headers
    upon retrieving a file. These files may include several custome http
    response headers such as X-DEBUGINFOD-FILE, X-DEBUGINFOD-SIZE, and
    X-DEBUGINFOD-ARCHIVE. These headers are added from the daemon, in
    debuginfod.cxx.

    E.g output:

    HTTP/1.1 200 OK
    Connection: Keep-Alive
    Content-Length: 4095072
    Cache-Control: public
    Last-Modified: Thu, 09 Sep 2021 19:06:40 GMT
    X-FILE: debuginfod
    X-FILE-SIZE: 4095072
    Content-Type: application/octet-stream
    Date: Fri, 10 Sep 2021 16:38:06 GMT

    https://sourceware.org/bugzilla/show_bug.cgi?id=27277

    Signed-off-by: Noah Sanci <nsanci@redhat.com>

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-11-10 14:12 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-29 16:31 [Bug debuginfod/27277] New: support HEAD query for debuginfod content probe requests fche at redhat dot com
2021-02-01  8:47 ` [Bug debuginfod/27277] " mliska at suse dot cz
2021-03-30 20:16 ` fche at redhat dot com
2021-07-27 13:09 ` nsanci at redhat dot com
2021-07-27 14:41 ` fche at redhat dot com
2021-09-15 17:37 ` [Bug debuginfod/27277] Print http response headers when in verbose mode nsanci at redhat dot com
2021-09-27 18:52 ` nsanci at redhat dot com
2021-11-10 14:12 ` mark at klomp dot org

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