We kind of decided haphazardly to `basename` some of those strings and not others. This was partly with some halfbaked notion of security in mind, to avoid exposing path names on a server. We should switch to full path names: basically just return everything in its raw form: file names, archive names, names-from-archives. This would simplify things, and making naming consistent between x-debuginfod-file: BASENAME and the forthcoming metadata-query FULLPATH. And we can document how to strip sensitive prefixes if admins want to keep things hush-hush.
Author: Frank Ch. Eigler <fche@redhat.com> Date: Tue Oct 10 16:21:00 2023 -0400 PR30962: debuginfod: full paths for X-DEBUGINFOD-FILE/ARCHIVE response headers