newrelic / newrelic-cf

Apache License 2.0
2 stars 6 forks source link

New field introduced in Broker Api 2.12 not handled #4

Open katter opened 6 years ago

katter commented 6 years ago

A new field "context" has been introduced in the Broker API, so on recent CF deployments cf create-service newrelic serviceplan xyz will fail with

Server error, status code: 502, error code: 10001, message: The service broker rejected the request to http://pe-cf-newrelic.xxx.com/v2/service_instances/uuid?accepts_incomplete=true. Status Code: 400 Bad Request, Body: {"timestamp":1511947927619,"status":400,"error":"Bad Request","exception":"org.springframework.http.converter.HttpMessageNotReadableException","message":"Could not read JSON: Unrecognized field \"context\" (class com.nebhale.newrelicservicebroker.provisioning.ProvisioningRequest), not marked as ignorable (8 known properties: \"serviceId\", \"plan_id\", \"space_guid\", \"planId\", \"service_id\", \"organization_guid\", \"organizationGuid\", \"spaceGuid\"])\n at [Source: org.apache.catalina.connector.CoyoteInputStream@4f3b6e16; line: 1, column: 225] (through reference chain: com.nebhale.newrelicservicebroker.provisioning.ProvisioningRequest[\"context\"]); nested exception is com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field \"context\" (class com.nebhale.newrelicservicebroker.provisioning.ProvisioningRequest), not marked as ignorable (8 known properties: \"serviceId\", \"plan_id\", \"space_guid\", \"planId\", \"service_id\", \"organization_guid\", \"organizationGuid\", \"spaceGuid\"])\n at [Source: org.apache.catalina.connector.CoyoteInputStream@4f3b6e16; line: 1, column: 225] (through reference chain: com.nebhale.newrelicservicebroker.provisioning.ProvisioningRequest[\"context\"])","path":"/v2/service_instances/uuid"}

This is the change: https://github.com/openservicebrokerapi/servicebroker/blob/v2.12/spec.md#changes-since-v211

brsrom commented 6 years ago

is there any workaround for this issue? I am facing the same problem.