Gnocchi Resource-type UPDATE is not working

Bug #1763303 reported by Arjun G
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gnocchi (Ubuntu)
New
Undecided
Unassigned

Bug Description

We are facing issue during setting of "Content-Type" while making request in server side(Openstack pike machine) for Gnocchi Resource-type updation for REST API calls only. Below are the stack-trace for reference.

17:37:54,975 INFO OpenstackTests:1045 - Resource Type name :: TestResource
  INFO | 2018-04-06 17:37:54,975 | OpenstackTests.java | performGnocchiDeleteSamples | 1045 | Resource Type name :: TestResource
17:37:55,010 DEBUG HttpExecutor:52 - Executing Request with content-type: http://ubuntu16:8041/v1 -> /resource_type/TestResource -> application/json-patch+json
DEBUG | 2018-04-06 17:37:55,010 | HttpExecutor.java | execute | 52 | Executing Request with content-type: http://ubuntu16:8041/v1 -> /resource_type/TestResource -> application/json-patch+json
Apr 06, 2018 5:37:55 PM org.glassfish.jersey.filter.LoggingFilter log
INFO: 1 * Sending client request on thread main
1 > PATCH http://ubuntu16:8041/v1/resource_type/TestResource
1 > Accept: application/json
1 > Content-Type: application/json
1 > User-Agent: ADARA CloudFabric
1 > X-Auth-Token: gAAAAABax2HICoTmjgn5mchWaX1Gk6YoPflnxn0ZPCav4VK3E-x14cdmE6W8RtacwbJaQiaM4kxLlWX-3WmuPmi9pi1lmYY87l9y_X42_ZAncRj4j8y2NVanM9l3x5VflpwwNUDriEseI_zCLacVMnjAhG69OEuoWeRT_45ORK-1ZBrhTWRlQO9pPP0yvyv6-Y52u4j2AkOe
[{"op":"remove","path":"/attributes/prefix"},{"op":"add","path":"/attributes/suffix","value":{"type":"bool","required":true,"max_length":6}}]

Apr 06, 2018 5:37:55 PM org.glassfish.jersey.filter.LoggingFilter log
INFO: 1 * Client response received on thread main
1 < 415
1 < Connection: Keep-Alive
1 < Content-Length: 67
1 < Content-Type: application/json
1 < Date: Fri, 06 Apr 2018 12:02:18 GMT
1 < Keep-Alive: timeout=5, max=99
1 < Server: Apache/2.4.18 (Ubuntu)
{"code": 415, "description": "", "title": "Unsupported Media Type"}

Content-type is getting over-ridden(application/json) in OS server side, though we are sending properly as expected (application/json-patch+json). We end up seeing "Unsupported Media Type" in the response.

Need solution for this as soon as possible. Gnocchi 3.3.1 version being used for testing.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.