estkme-group/lpac

Activation Code cannot be parsed correctly when the OID is empty

Opened this issue · 0 comments

The required confirmation code flag cannot be parsed correctly if the OID is empty, while executing lpac profile download -a.
Example error:

.\lpac.exe profile download -a 'LPA:1$huk.prod.ondemandconnectivity.com$LBHWREN8ASCLTOTF$$1'
{"type":"progress","payload":{"code":0,"message":"es10b_get_euicc_challenge_and_info","data":"huk.prod.ondemandconnectivity.com"}}
{"type":"progress","payload":{"code":0,"message":"es9p_initiate_authentication","data":"huk.prod.ondemandconnectivity.com"}}
{"type":"progress","payload":{"code":0,"message":"es10b_authenticate_server","data":"huk.prod.ondemandconnectivity.com"}}
{"type":"progress","payload":{"code":0,"message":"es9p_authenticate_client","data":"huk.prod.ondemandconnectivity.com"}}
{"type":"progress","payload":{"code":0,"message":"es10b_cancel_session","data":"huk.prod.ondemandconnectivity.com"}}
{"type":"progress","payload":{"code":0,"message":"es9p_cancel_session","data":"huk.prod.ondemandconnectivity.com"}}
{"type":"lpa","payload":{"code":-1,"message":"es9p_authenticate_client","data":"Bad profile state [expected=Released or Error_DownloadFailed or Downloaded] [actual=Error_InstallFailed]"}}

Expected behavior:

.\lpac.exe profile download -a 'LPA:1$huk.prod.ondemandconnectivity.com$LBHWREN8ASCLTOTF$x$1'
{"type":"progress","payload":{"code":0,"message":"es10b_cancel_session","data":"huk.prod.ondemandconnectivity.com"}}
{"type":"progress","payload":{"code":0,"message":"es9p_cancel_session","data":"huk.prod.ondemandconnectivity.com"}}
{"type":"lpa","payload":{"code":-1,"message":"confirmation_code","data":"required"}}