Keystone HTTP PATCH - Transfer-Encoding chunked support
This is a follow up to https://ask.openstack.org/en/question...
When I used Transfer-Encoding: chunked on an HTTP PATCH, Keystone wasn't actually receiving/loading the JSON payload.
When I use POST with Transfer-Encoding: chunked, there are no problems.
Is the design intent to support chunked encoding for PATCH? Could this simply be a bug?
I'm using Icehouse-3 on RHEL6
Thank you
Update 1:
The following POST command does work:
curl -ki \
-H "Content-Type: application/json" \
-H "X-Auth-Token: password" \
-H "Transfer-Encoding: chunked" \
-X POST \
-d '
{ "project": {
"name" : "mynewProject"
}
}' \
https://x.x.x.x:35357/v3/projects
> https://x.x.x.x:35357/v3/projects
HTTP/1.1 201 Created
Vary: X-Auth-Token
Content-Type: application/json
Content-Length: 234
The following PATCH command does work
curl -ki \
-H "Content-Type: application/json" \
-H "X-Auth-Token: password" \
-X PATCH \
-d '
{ "project": {
"description" : "Testing description"
}
}' \
https://x.x.x.x:35357/v3/projects/ad0c62c9869e4a33975e6784d76d2d1f
> https://x.x.x.x:35357/v3/projects/ad0c62c9869e4a33975e6784d76d2d1f
HTTP/1.1 200 OK
Vary: X-Auth-Token
Content-Type: application/json
Content-Length: 291
The following PATCH command does not work:
curl -ki \
-H "Content-Type: application/json" \
-H "X-Auth-Token: password" \
-H "Transfer-Encoding: chunked" \
-X PATCH \
-d '
{ "project": {
"description" : "Testing description"
}
}' \
https:/x.x.x.x:35357/v3/projects/ad0c62c9869e4a33975e6784d76d2d1f
> https://x.x.x.x:35357/v3/projects/ad0c62c9869e4a33975e6784d76d2d1f
HTTP/1.1 400 Bad Request
Vary: X-Auth-Token
Content-Type: application/json
Content-Length: 127
{"error": {"message": "update_project() takes exactly 4 non-keyword arguments (3 given)", "code": 400, "title": "Bad Request"}}>