codeconsole commented on PR #15196: URL: https://github.com/apache/grails-core/pull/15196#issuecomment-3484041249
> As this could break someones parsing of data returned from an endpoint, we could keep backwards compatibility by defaulting to the old behavior and add a feature flag to enable the new behavior in 7.1 and then replace and remove the old behavior in 8. @matrei I think 8 is too far off for something that IMO is completely broken. Does this POST request work? ``` curl -X POST 'https://localhost:8080/test' \ -H 'Content-Type: application/json' \ -d '{"stage":{"enumType":"com.example.ChallengeStage","name":"SUBMIT"}}' ``` if the answer is no, then this is clearly a bug and needs to be fixed. There is a reason why you have to submit json like this: ``` curl -X POST 'https://localhost:8080/test' \ -H 'Content-Type: application/json' \ -d '{"stage":"SUBMIT"}' ``` ``` curl -X POST 'https://localhost:8080/test'\ -H 'Content-Type: application/x-www-form-urlencoded' \ --data 'stage=SUBMIT' ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
