From: Pawel Kaczmarczyk Date: Mon, 8 Jan 2018 11:19:26 +0000 (+0100) Subject: [NFC] Fix for passing wrong values to APDU response X-Git-Tag: submit/tizen_3.0/20180116.110805~1^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=082a2646e8b2107e917ff2609260ce5ba165cec5;p=platform%2Fcore%2Fapi%2Fwebapi-plugins.git [NFC] Fix for passing wrong values to APDU response Issue: http://suprem.sec.samsung.net/jira/browse/XWALK-1747 Bug: Wrong type of data in array. Verification: NFC auto tct passrate 100% (emulator wearable) Change-Id: I5824e51ce677d6c1c7de006ad10b509b84f00a6a Signed-off-by: Pawel Kaczmarczyk --- diff --git a/src/nfc/nfc_api.js b/src/nfc/nfc_api.js index 8aa8b58d..6c3f19bc 100644 --- a/src/nfc/nfc_api.js +++ b/src/nfc/nfc_api.js @@ -692,7 +692,7 @@ NFCAdapter.prototype.removeHCEEventListener = function() { NFCAdapter.prototype.sendHostAPDUResponse = function(apdu, successCallback, errorCallback) { var args = validator_.validateArgs(arguments, [ - {name: 'apdu', type: types_.ARRAY, values: types_.BYTE}, + {name: 'apdu', type: types_.ARRAY, values: types_.OCTET}, {name: 'successCallback', type: types_.FUNCTION, optional: true, nullable: true}, {name: 'errorCallback', type: types_.FUNCTION, optional: true, nullable: true} ]);