Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

Transaction status not valid on failure with RestDataSource and dataformat json

$
0
0
The result status is not set in the transaction responses because of assuming a RestDataSource is always a xml datasource. Because the status never gets set the response always returns SUCCESS.

@See: RPCManager.js, line: 3831
Code:

if (response.results && !request.isRestRequest) {
This line should be changed to:
Code:

if (response.results && !(request.isRestRequest && request.dataFormat!='json')) {

Viewing all articles
Browse latest Browse all 4756

Trending Articles