From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A0FB0383B839; Wed, 30 Jun 2021 18:37:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A0FB0383B839 From: "fche at redhat dot com" To: elfutils-devel@sourceware.org Subject: [Bug debuginfod/28034] New: debuginfod server: preserve + etc. elements in incoming webapi url Date: Wed, 30 Jun 2021 18:37:49 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: elfutils X-Bugzilla-Component: debuginfod X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: fche at redhat dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: elfutils-devel@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Elfutils-devel mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jun 2021 18:37:49 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D28034 Bug ID: 28034 Summary: debuginfod server: preserve + etc. elements in incoming webapi url 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: --- When requesting some source files, some URL-inconvenient chars sometimes pop up. Example from f33 libstdc++: =20=20 /buildid/44d8485cb75512c2ca5c8f70afbd475cae30af4f/source/usr/src/debug/gcc-= 10.3.1-1.fc33.x86_64/obj-x86_64-redhat-linux/x86_64-redhat-linux/libstdc++-= v3/src/c++11/../../../../../libstdc++-v3/src/c++11/condition_variable.cc As this URL is passed into debuginfod's handler_cb, it appears that the + s= igns are helpfully unescaped to spaces by libmicrohttpd, which 'course breaks everything. We need to suppress this HTTP URL processing step. Also worth checking that %HEX decoding is also suppressed. (.... alternately, we could change the client to urlencode such identifiers .... and change the webapi to spell this out. But I hope that's not necessary.) --=20 You are receiving this mail because: You are on the CC list for the bug.=