Project

General

Profile

Actions

Bug #6331

closed

Regression in update_binary_decoded

Added by pdunn 4 months ago. Updated 4 months ago.

Status:
Resolved
Priority:
High
Assignee:
Category:
-
Target version:
-
Start date:
01/18/2024
Due date:
% Done:

100%

Spec Reference:

Description

I have been encountering an issue with update_binary_decoded, not accepting text values as documented. The regression, compared to documented behavior appears to be here: https://gitea.osmocom.org/sim-card/pysim/blame/branch/master/pySim/filesystem.py#L625

example:

pySIM-shell (00:MF/ADF.USIM/EF.IMSI)> update_binary_decoded '{ "imsi": "111111111111111" }'
usage: update_binary_decoded [-h] [--json-path JSON_PATH] data
update_binary_decoded: error: argument data: invalid is_hexstr value: '{ "imsi": "111111111111111" }'

pySIM-shell (00:MF/ADF.USIM/EF.IMSI)> update_binary_decoded --json-path imsi "111111111111111"
usage: update_binary_decoded [-h] [--json-path JSON_PATH] data
update_binary_decoded: error: argument data: invalid is_hexstr value: '111111111111111'
pySIM-shell (00:MF/ADF.USIM/EF.IMSI)>

Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)