Project

General

Profile

Actions

Bug #20935

closed

rgw opslog cannot record referrer when using curl as client

Added by Jiaying Ren over 6 years ago. Updated about 6 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
luminous
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

curl --referer jiaying localhost:8000/111/66666666666666666666666666

root@ceph-node1# (git::master) ./bin/radosgw-admin -c ceph.conf log show --object=2017-08-07-17-0bd736e3-9f49-4dcd-b0b3-01e43ab2d99f.4106.1-111 {
"bucket_id": "0bd736e3-9f49-4dcd-b0b3-01e43ab2d99f.4106.1",
"bucket_owner": "testid",
"bucket": "111",
"log_entries": [ {
....
}, {
"bucket": "111",
"time": "2017-08-07 09:23:42.817341Z",
"time_local": "2017-08-07 17:23:42.817341",
"remote_addr": "127.0.0.1",
"user": "anonymous",
"operation": "GET",
"uri": "/111/66666666666666666666666666",
"http_status": "403",
"error_code": "AccessDenied",
"bytes_sent": 213,
"bytes_received": 0,
"object_size": 0,
"total_time": 2189668,
"user_agent": "curl/7.29.0",
"referrer": ""
}, {
....
}
],
"log_sum": {
"bytes_sent": 426,
"bytes_received": 0,
"total_time": 3994118,
"total_entries": 3
}
}


Related issues 1 (0 open1 closed)

Copied to rgw - Backport #22623: luminous: rgw opslog cannot record referrer when using curl as clientResolvedCasey BodleyActions
Actions #1

Updated by Jiaying Ren over 6 years ago

fixed:

root@ceph-node1# (git::master) curl -e ceph localhost:8000/111/7777777777777777
<Error><Code>AccessDenied</Code><BucketName>111</BucketName><RequestId>tx000000000000000000003-00598831f6-100a-default</RequestId><HostId>100a-default-default</HostId></Error>~/jiaying/ceph/build
root@ceph-node1# (git::master) ./bin/radosgw-admin -c ceph.conf log show --object=2017-08-07-17-0bd736e3-9f49-4dcd-b0b3-01e43ab2d99f.4106.1-111 {
"bucket_id": "0bd736e3-9f49-4dcd-b0b3-01e43ab2d99f.4106.1",
"bucket_owner": "testid",
"bucket": "111",
"log_entries": [ {}, {}, {
"bucket": "111",
"time": "2017-08-07 09:25:10.158426Z",
"time_local": "2017-08-07 17:25:10.158426",
"remote_addr": "127.0.0.1",
"user": "anonymous",
"operation": "GET",
"uri": "/111/7777777777777777",
"http_status": "403",
"error_code": "AccessDenied",
"bytes_sent": 213,
"bytes_received": 0,
"object_size": 0,
"total_time": 1271,
"user_agent": "curl/7.29.0",
"referrer": "ceph"
}
],
"log_sum": {
"bytes_sent": 426,
"bytes_received": 0,
"total_time": 3994118,
"total_entries": 3
}
}

https://github.com/ceph/ceph/pull/16863

Actions #2

Updated by Brad Hubbard over 6 years ago

  • Project changed from Ceph to rgw
  • Status changed from New to In Progress
Actions #3

Updated by Jos Collin over 6 years ago

  • Subject changed from rgw opslog cant not record referrer when using curl as client to rgw opslog cannot record referrer when using curl as client
Actions #4

Updated by Orit Wasserman over 6 years ago

  • Status changed from In Progress to Fix Under Review
Actions #5

Updated by Casey Bodley over 6 years ago

  • Status changed from Fix Under Review to Pending Backport
  • Backport set to luminous
Actions #6

Updated by Casey Bodley over 6 years ago

  • Copied to Backport #22623: luminous: rgw opslog cannot record referrer when using curl as client added
Actions #7

Updated by Nathan Cutler about 6 years ago

  • Status changed from Pending Backport to Resolved
Actions

Also available in: Atom PDF