Project

General

Profile

Bug #20935

rgw opslog cannot record referrer when using curl as client

Added by Jiaying Ren about 2 years ago. Updated over 1 year ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
08/07/2017
Due date:
% Done:

0%

Source:
Tags:
Backport:
luminous
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:

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

Copied to rgw - Backport #22623: luminous: rgw opslog cannot record referrer when using curl as client Resolved

History

#1 Updated by Jiaying Ren about 2 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

#2 Updated by Brad Hubbard about 2 years ago

  • Project changed from Ceph to rgw
  • Status changed from New to In Progress

#3 Updated by Jos Collin about 2 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

#4 Updated by Orit Wasserman about 2 years ago

  • Status changed from In Progress to Need Review

#5 Updated by Casey Bodley over 1 year ago

  • Status changed from Need Review to Pending Backport
  • Backport set to luminous

#6 Updated by Casey Bodley over 1 year ago

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

#7 Updated by Nathan Cutler over 1 year ago

  • Status changed from Pending Backport to Resolved

Also available in: Atom PDF