* [Bug debuginfod/29469] New: Add /buildid/BUILDID/header WEBAPI
@ 2022-08-11 8:27 mliska at suse dot cz
2022-08-11 9:13 ` [Bug debuginfod/29469] " mark at klomp dot org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: mliska at suse dot cz @ 2022-08-11 8:27 UTC (permalink / raw)
To: elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=29469
Bug ID: 29469
Summary: Add /buildid/BUILDID/header WEBAPI
Product: elfutils
Version: unspecified
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: debuginfod
Assignee: unassigned at sourceware dot org
Reporter: mliska at suse dot cz
CC: elfutils-devel at sourceware dot org
Target Milestone: ---
I'm writing a checking script that iterates binaries and investigates if
debuginfod has the binary indexed. Thus, I use /buildid/BUILDID/debuginfo
WEBAPI which is expensive regarding the net transport.
I would be happy with /header where I only get x-debuginfod-* headers.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug debuginfod/29469] Add /buildid/BUILDID/header WEBAPI
2022-08-11 8:27 [Bug debuginfod/29469] New: Add /buildid/BUILDID/header WEBAPI mliska at suse dot cz
@ 2022-08-11 9:13 ` mark at klomp dot org
2022-08-11 9:17 ` mliska at suse dot cz
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: mark at klomp dot org @ 2022-08-11 9:13 UTC (permalink / raw)
To: elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=29469
Mark Wielaard <mark at klomp dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC|mjw at fedoraproject dot org |mark at klomp dot org
--- Comment #1 from Mark Wielaard <mark at klomp dot org> ---
Do you mean support for an HTTP HEAD (instead of GET) request?
Or do you actually want/need a new URL ending in /header to get the
information?
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug debuginfod/29469] Add /buildid/BUILDID/header WEBAPI
2022-08-11 8:27 [Bug debuginfod/29469] New: Add /buildid/BUILDID/header WEBAPI mliska at suse dot cz
2022-08-11 9:13 ` [Bug debuginfod/29469] " mark at klomp dot org
@ 2022-08-11 9:17 ` mliska at suse dot cz
2022-08-11 9:49 ` mark at klomp dot org
2022-08-11 12:50 ` fche at redhat dot com
3 siblings, 0 replies; 5+ messages in thread
From: mliska at suse dot cz @ 2022-08-11 9:17 UTC (permalink / raw)
To: elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=29469
--- Comment #2 from Martin Liska <mliska at suse dot cz> ---
(In reply to Mark Wielaard from comment #1)
> Do you mean support for an HTTP HEAD (instead of GET) request?
Yep, that's what I'm seeking for :)
> Or do you actually want/need a new URL ending in /header to get the
> information?
$ wget --method=HEAD
https://debuginfod.opensuse.org/buildid/929d83693f513cefd1c38e5075f2b10b12a9f322/debuginfo
Spider mode enabled. Check if remote file exists.
--2022-08-11 11:16:46--
https://debuginfod.opensuse.org/buildid/929d83693f513cefd1c38e5075f2b10b12a9f322/debuginfo
Resolving debuginfod.opensuse.org (debuginfod.opensuse.org)... 91.193.113.65,
2a07:de40:401::65
Connecting to debuginfod.opensuse.org
(debuginfod.opensuse.org)|91.193.113.65|:443... connected.
HTTP request sent, awaiting response... 400 Bad Request
Remote file does not exist -- broken link!!!
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug debuginfod/29469] Add /buildid/BUILDID/header WEBAPI
2022-08-11 8:27 [Bug debuginfod/29469] New: Add /buildid/BUILDID/header WEBAPI mliska at suse dot cz
2022-08-11 9:13 ` [Bug debuginfod/29469] " mark at klomp dot org
2022-08-11 9:17 ` mliska at suse dot cz
@ 2022-08-11 9:49 ` mark at klomp dot org
2022-08-11 12:50 ` fche at redhat dot com
3 siblings, 0 replies; 5+ messages in thread
From: mark at klomp dot org @ 2022-08-11 9:49 UTC (permalink / raw)
To: elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=29469
--- Comment #3 from Mark Wielaard <mark at klomp dot org> ---
(In reply to Martin Liska from comment #2)
> (In reply to Mark Wielaard from comment #1)
> > Do you mean support for an HTTP HEAD (instead of GET) request?
>
> Yep, that's what I'm seeking for :)
>
> > Or do you actually want/need a new URL ending in /header to get the
> > information?
>
> $ wget --method=HEAD
> https://debuginfod.opensuse.org/buildid/
> 929d83693f513cefd1c38e5075f2b10b12a9f322/debuginfo
> Spider mode enabled. Check if remote file exists.
> --2022-08-11 11:16:46--
> https://debuginfod.opensuse.org/buildid/
> 929d83693f513cefd1c38e5075f2b10b12a9f322/debuginfo
> Resolving debuginfod.opensuse.org (debuginfod.opensuse.org)...
> 91.193.113.65, 2a07:de40:401::65
> Connecting to debuginfod.opensuse.org
> (debuginfod.opensuse.org)|91.193.113.65|:443... connected.
> HTTP request sent, awaiting response... 400 Bad Request
> Remote file does not exist -- broken link!!!
Right, that is this code:
if (string(method) != "GET")
throw reportable_exception(400, "we support GET only");
in debuginfod.cxx (handler_cb).
I think if you just change that to also allow "HEAD" it will just work. But it
does mean the debuginfod server might do more work than strictly necessary. But
libmicrohttpd should just send the headers and ignore the body content.
(Sorry, haven't actually tested any of this, I am currently on a desert island,
ehe mountain, with spotty interweb access and compute resources)
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug debuginfod/29469] Add /buildid/BUILDID/header WEBAPI
2022-08-11 8:27 [Bug debuginfod/29469] New: Add /buildid/BUILDID/header WEBAPI mliska at suse dot cz
` (2 preceding siblings ...)
2022-08-11 9:49 ` mark at klomp dot org
@ 2022-08-11 12:50 ` fche at redhat dot com
3 siblings, 0 replies; 5+ messages in thread
From: fche at redhat dot com @ 2022-08-11 12:50 UTC (permalink / raw)
To: elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=29469
Frank Ch. Eigler <fche at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |DUPLICATE
Status|UNCONFIRMED |RESOLVED
--- Comment #4 from Frank Ch. Eigler <fche at redhat dot com> ---
this need has been identified in another RFE, with some work toward a webapi
and c api
*** This bug has been marked as a duplicate of bug 28284 ***
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2022-08-11 12:50 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-11 8:27 [Bug debuginfod/29469] New: Add /buildid/BUILDID/header WEBAPI mliska at suse dot cz
2022-08-11 9:13 ` [Bug debuginfod/29469] " mark at klomp dot org
2022-08-11 9:17 ` mliska at suse dot cz
2022-08-11 9:49 ` mark at klomp dot org
2022-08-11 12:50 ` fche at redhat dot com
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).