(no title)
radicalbyte | 4 months ago
In a pure .Net world it's the norm to use strict input validation and tell clients to fix their bad requests and this looks like one of those cultural blindspots. "We" wouldn't naturally consider a case where a server accepted a request which has not been strictly validated. With the move to .Net Core and a broadening of the scope to not only target enterprises and we'll find issues like this....
jen20|4 months ago
Mostly this stuff comes down to skill issues.
PantaloonFlames|4 months ago
I jsonrpc I think 200 OK is correct with an error payload that says “you are not authorized” or similar.
j_w|4 months ago
immibis|4 months ago
sfn42|4 months ago
If you're maintaining an old api you can publish new versions of endpoints that don't accept mangled requests. If it's important you can give clients a time limit like let's say a few months to update their software to use your updated endpoints before you remove the old ones.