Bug #20935
closedrgw opslog cannot record referrer when using curl as client
0%
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
}
}
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
}
}
Updated by Brad Hubbard over 6 years ago
- Project changed from Ceph to rgw
- Status changed from New to In Progress
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
Updated by Orit Wasserman over 6 years ago
- Status changed from In Progress to Fix Under Review
Updated by Casey Bodley over 6 years ago
- Status changed from Fix Under Review to Pending Backport
- Backport set to luminous
Updated by Casey Bodley over 6 years ago
- Copied to Backport #22623: luminous: rgw opslog cannot record referrer when using curl as client added
Updated by Nathan Cutler about 6 years ago
- Status changed from Pending Backport to Resolved