Fixes: https://tracker.ceph.com/issues/59059
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
uri.append(s->info.env->get("REQUEST_URI"));
}
- if (s->info.env->exists("QUERY_STRING")) {
- const char* qs = s->info.env->get("QUERY_STRING");
- if(qs && (*qs != '\0')) {
- uri.append("?");
- uri.append(qs);
- }
- }
+ /* Formerly, we appended QUERY_STRING to uri, but in RGW, QUERY_STRING is a
+ * substring of REQUEST_URI--appending qs to uri here duplicates qs to the
+ * ops log */
if (s->info.env->exists("HTTP_VERSION")) {
uri.append(" ");