https://sourceware.org/bugzilla/show_bug.cgi?id=25600
Bug ID: 25600
Summary: debuginfo-client should handle file:// URLs
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
Target Milestone: ---
While this may be useful only for local testing, it's still good to have.
It's being blocked by error handling logic in -client.c line 728ish, as
identified by kkleine, because the 200 response code is only valid for http.
file:// scheme returns 0 for success here. So this code would need to do
some scheme-sensitive logic, such as curl's own src/tool_operate.c:
if(CURLE_OK == result) {
char *effective_url = NULL;
curl_easy_getinfo(curl, CURLINFO_EFFECTIVE_URL, &effective_url);
if(effective_url &&
curl_strnequal(effective_url, "http", 4)) {
/* This was HTTP(S) */
curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, &response);
if(response != 200 && response != 206) {
i.e., if result was CURLE_OK, assume success,
unless http and we have a bad response code.
--
You are receiving this mail because:
You are on the CC list for the bug.