[Bug debuginfod/27277] Describe retrieved files when verbose

Mark Wielaard mark@klomp.org
Thu Aug 5 15:13:20 GMT 2021


Hi Noah,

On Wed, 2021-08-04 at 14:54 -0400, Noah Sanci via Elfutils-devel wrote:
> The attached patch dumps the http headers retrieved from the
> debuginfod server which a file was downloaded from. Some custom
> headers are now returned such as X-FILE, X-FILE-SIZE, and X-ARCHIVE
> to give some context about the downloaded files.

I like the verbose http header output, but wish it was done earlier
instead of after the download. Maybe when we commit to an url, if the
info is available then.

The new X-FILE and X-ARCHIVE headers also seem useful.
One question about X-FILE, if it doesn't come from an archive, does it
leak a file system path that might be "secret" on the server?

Why is X-FILE-SIZE != Content-Length ?

I am less enthusiastic about the new debuginfod_get_response_headers
interface. It seems not as useful since it only works if we haven't
already (negatively) cached the file and it is very free-form, do we
guarantee any headers are there? Could you provide a user story where
this is used?

Maybe this interface is more useful if it was done as a new active
query type (the HEAD query you mention in the commit message)?

Cheers,

Mark


More information about the Elfutils-devel mailing list