Rock icon indicating copy to clipboard operation
Rock copied to clipboard

[Consistency] FinancialTransactionDetails Patch Requires Strict JSON, Other Endpoints Don't

Open taylorbrooks opened this issue 8 years ago • 5 comments

Prerequisites

Description

Any patch request to FinancialTransactionDetails/{id} returns a 400 response with "No values were sent in the body" message.

Steps to Reproduce

  1. Make a PATCH request with {"AccountId": 2} as the body to: http://rock.rocksolidchurchdemo.com/api/FinancialTransactionDetails/356

Expected behavior:

204 No content response with the an updated AccountId on that resource

Actual behavior:

400 response with "No values were sent in the body" as a message.

Versions

  • Rock Version: Rock McKinley 6.2
  • Client Culture Setting: en-US

taylorbrooks avatar Jul 15 '17 20:07 taylorbrooks

You might need to send it with strict JSON: { "AccountId" : "2" }. I just tried it and Rock patched successfully.

dcs619 avatar Jul 15 '17 21:07 dcs619

Yep, that worked for me too.

In that case, I think the FinancialTransactions/{id} PATCH behaves differently.

taylorbrooks avatar Jul 15 '17 22:07 taylorbrooks

@taylorbrooks Is this a consistency issue?

arranf avatar Sep 09 '17 06:09 arranf

Yep, consistency is the issue.

taylorbrooks avatar Sep 09 '17 13:09 taylorbrooks

This seems to be an issue in codegenerated code.

arranf avatar Jun 22 '18 15:06 arranf

@taylorbrooks can you update this issue with more details on the consistency issue now that the original issue has been addressed.

jonedmiston avatar Sep 11 '23 16:09 jonedmiston

I'm good to close this if the original issue has been addressed.

taylorbrooks avatar Sep 11 '23 16:09 taylorbrooks