Project

General

Profile

Actions

Bug #151

closed
RS NB

Bug #142: foreigner admin approve

Sub-task #144: [BE] - show passport and liveness for foreigner

[FE] - incorrect url handling from S3 in Edit Individual (admin)

Bug #151: [FE] - incorrect url handling from S3 in Edit Individual (admin)

Added by Ryan Supawarapong about 1 month ago. Updated about 1 month ago.

Status:
Resolved
Priority:
Normal
Assignee:
Start date:
03/16/2026
Due date:
% Done:

0%

Estimated time:

Description

There is an extra forward slash "/" after the domain. This results in the image not showing.

individual onboarding:

{
    "response": {
        "livenessUrl": "/images/liveness/978d7f96-80dc-4f04-b0fc-5fec9e515e60/liveness",
        "idCardUrl": "/images/idcard/front/978d7f96-80dc-4f04-b0fc-5fec9e515e60/front"
    },
    "xid": "f35a802e-a672-446c-8159-7efa2d7c9e5a"
}

expected: https://ico-documents.s3.ap-southeast-1.amazonaws.com/images/idcard/front/978d7f96-80dc-4f04-b0fc-5fec9e515e60/front?timestamp=1773647052800

actual: https://ico-documents.s3.ap-southeast-1.amazonaws.com//images/idcard/front/978d7f96-80dc-4f04-b0fc-5fec9e515e60/front?timestamp=1773647052800

foreign onboarding:

{
    "response": {
        "livenessUrl": "/uploads/de01ed5c-3b31-4df7-b798-4b20d422a003/liveness/20260316/553cf78a-51b3-4489-ac3a-1e11608cd35f.jpg",
        "passportUrl": "/uploads/de01ed5c-3b31-4df7-b798-4b20d422a003/passport/20260316/553cf78a-51b3-4489-ac3a-1e11608cd35f.png"
    },
    "xid": "f5d1275e-4ac6-45d2-aea0-fc5621802122"
}

expected: https://ico-documents.s3.ap-southeast-1.amazonaws.com/uploads/de01ed5c-3b31-4df7-b798-4b20d422a003/passport/20260316/553cf78a-51b3-4489-ac3a-1e11608cd35f.png?timestamp=1773647246223

actual: https://ico-documents.s3.ap-southeast-1.amazonaws.com//uploads/de01ed5c-3b31-4df7-b798-4b20d422a003/passport/20260316/553cf78a-51b3-4489-ac3a-1e11608cd35f.png?timestamp=1773647246223

Actions

Also available in: PDF Atom