Bug #20418
closedrgw: URI with \0 in the middle is silently handled as its initial part
0%
Description
$ curl -i "$publicURL/abc%00de" -X PUT -H "X-Auth-Token: $token"
HTTP/1.1 201 Created
Content-Length: 0
X-Trans-Id: tx000000000000000000042-005951047f-105b-default
X-Openstack-Request-Id: tx000000000000000000042-005951047f-105b-default
Accept-Ranges: bytes
Content-Type: text/plain; charset=utf-8
Date: Mon, 26 Jun 2017 12:56:31 GMT...
$ curl -i "$publicURL/" -X GET -H "X-Auth-Token: $token"
HTTP/1.1 200 OK
Content-Length: 8
X-Timestamp: 1498484272.29762
X-Account-Container-Count: 2
X-Account-Object-Count: 0
X-Account-Bytes-Used: 0
X-Account-Bytes-Used-Actual: 0
X-Trans-Id: tx000000000000000000002-0059510e30-1053-default
X-Openstack-Request-Id: tx000000000000000000002-0059510e30-1053-default
Accept-Ranges: bytes
Content-Type: text/plain; charset=utf-8
Date: Mon, 26 Jun 2017 13:37:52 GMTabc
cont
Swift returns 412 Invalid UTF8 or contains NULL in such situation.
Updated by Matt Benjamin almost 7 years ago
@radoslaw, is this in progress?
Matt
Updated by Orit Wasserman almost 7 years ago
- Status changed from New to Fix Under Review
Updated by Orit Wasserman almost 7 years ago
Updated by Radoslaw Zarzynski over 6 years ago
- Status changed from Fix Under Review to Pending Backport
- Backport set to kraken,jewel
Updated by Nathan Cutler over 6 years ago
- Copied to Backport #20829: kraken: rgw: URI with \0 in the middle is silently handled as its initial part added
Updated by Nathan Cutler over 6 years ago
- Copied to Backport #20830: jewel: rgw: URI with \0 in the middle is silently handled as its initial part added
Updated by Nathan Cutler over 5 years ago
- Status changed from Pending Backport to Resolved