Task #10755

Avatar?id=2607&size=50

[Internal Testing] wsCheckTokenStatus - Cannot Differentiate Token Booked vs Token Not Exist vs Token Assigned to User

Added by Rayvandy Gabbytian over 4 years ago. Updated over 4 years ago.

Status:Internal TestingStart date:April 27, 2020
Priority:NormalDue date:April 28, 2020
Assignee:Avatar?id=2607&size=14Rayvandy Gabbytian % Done:

90%

Category:-Spent time:-
Target version:-

Description

Dear Chee Onn,

Can you check below issue:

Reported Issue:
When key in token that is already booked to company 2665984138 (refer to RCAS Admin attachment) and fire wsCheckTokenStatus, system will return 98.
When key in token that is not existed, system will return 98.

Expected:
When key in token that is already booked to company 2665984138 (refer to RCAS Admin attachment) and fire wsCheckTokenStatus, system should return 20.
When key in token that is already booked to company 2665984138 (refer to RCAS Admin attachment) and fire wsCheckTokenStatus, system should return 21.
When key in token that is not existed, system should return 22 (new error code, was not mentioned in TSD).

Token Already Booked:
Request:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.cas.penril.net">
   <soapenv:Header/>
   <soapenv:Body>
      <ws:wsCheckTokenStatus>
         <ws:adminId>RCMS</ws:adminId>
         <ws:adminPassword>RCMSONL</ws:adminPassword>
         <!--1 or more repetitions:-->
         <ws:tokenSerialNo>2665984138</ws:tokenSerialNo>
         <ws:applicationId>200</ws:applicationId>
      </ws:wsCheckTokenStatus>
   </soapenv:Body>
</soapenv:Envelope>

Response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <soapenv:Body>
      <wsCheckTokenStatusResponse xmlns="http://ws.cas.penril.net">
         <wsCheckTokenStatusReturn><![CDATA[<?xml version="1.0" encoding="UTF-8" standalone="yes"?><msg><msgHeader><responseCode>98</responseCode></msgHeader></msg>]]></wsCheckTokenStatusReturn>
      </wsCheckTokenStatusResponse>
   </soapenv:Body>
</soapenv:Envelope>

Token Does Not Exists:
Request:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.cas.penril.net">
   <soapenv:Header/>
   <soapenv:Body>
      <ws:wsCheckTokenStatus>
         <ws:adminId>RCMS</ws:adminId>
         <ws:adminPassword>RCMSONL</ws:adminPassword>
         <!--1 or more repetitions:-->
         <ws:tokenSerialNo>1</ws:tokenSerialNo>
         <ws:applicationId>200</ws:applicationId>
      </ws:wsCheckTokenStatus>
   </soapenv:Body>
</soapenv:Envelope>

Response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <soapenv:Body>
      <wsCheckTokenStatusResponse xmlns="http://ws.cas.penril.net">
         <wsCheckTokenStatusReturn><![CDATA[<?xml version="1.0" encoding="UTF-8" standalone="yes"?><msg><msgHeader><responseCode>98</responseCode></msgHeader></msg>]]></wsCheckTokenStatusReturn>
      </wsCheckTokenStatusResponse>
   </soapenv:Body>
</soapenv:Envelope>

Screenshot 2020-04-27 at 16.49.25.png (631 KB) Rayvandy Gabbytian , April 27, 2020 17:00

Screenshot 2020-04-27 at 17.01.31.png (505 KB) Rayvandy Gabbytian , April 27, 2020 17:03


Related issues

Copied from Maybank RCAS ID 2020's Enhancement - Task #10754: [Internal Testing] wsCheckTokenStatus Response is not in ... Internal Testing April 27, 2020 April 28, 2020

History

#1 Avatar?id=2607&size=24 Updated by Rayvandy Gabbytian over 4 years ago

  • File Screenshot 2020-04-27 at 17.01.31.png added
  • Subject changed from [Internal Testing] wsCheckTokenStatus - Cannot Differentiate Token Booked vs Token Not Exist to [Internal Testing] wsCheckTokenStatus - Cannot Differentiate Token Booked vs Token Not Exist vs Token Assigned to User

Token Assigned to User
Request:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.cas.penril.net">
<soapenv:Header/>
<soapenv:Body>
<ws:wsCheckTokenStatus>
<ws:adminId>RCMS</ws:adminId>
<ws:adminPassword>RCMSONL</ws:adminPassword>
<!--1 or more repetitions:-->
<ws:tokenSerialNo>2665993925</ws:tokenSerialNo>
<ws:applicationId>200</ws:applicationId>
</ws:wsCheckTokenStatus>
</soapenv:Body>
</soapenv:Envelope>

Response:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<wsCheckTokenStatusResponse xmlns="http://ws.cas.penril.net">
<wsCheckTokenStatusReturn><![CDATA[<msg><msgHeader><responseCode>98</responseCode></msgHeader></msg>]]></wsCheckTokenStatusReturn>
</wsCheckTokenStatusResponse>
</soapenv:Body>
</soapenv:Envelope>

#2 Avatar?id=1966&size=24 Updated by Ngoh Chee Onn over 4 years ago

  • Status changed from New - Begin Life Cycle to Internal Testing
  • Assignee changed from Ngoh Chee Onn to Rayvandy Gabbytian
  • % Done changed from 0 to 90

Hi Gabby,

Please refer below for the root cause and resolution.

Root Cause:
- Wrong checking condition in filter token status.

Resolution:
- Update wrong condition checking in check token status services.


<msg>
<msgHeader>
<responseCode>0</responseCode>
</msgHeader>
<msgBody>
<token>
<tokenSerialNo>2665984138</tokenSerialNo>
<tokenStatus>20</tokenStatus>
</token>
</msgBody>
</msg>

Also available in: Atom PDF