Project

General

Profile

Actions

Bug #5412

closed

TLV decoder reror when reading EF.EPSNSC on sipgate SIM

Added by laforge over 2 years ago. Updated about 2 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Start date:
01/21/2022
Due date:
% Done:

100%

Spec Reference:

Description

pySIM-shell (MF/ADF.USIM/EF.EPSNSC)> read_records_decoded 
-> 00a4000402 6fe4
<- 6121: 
-> 00c0000021 
<- 9000: 621f8205422100360a83026fe4a5038001718a01058b036f060e8002021c8801c0
-> 00b2010436 
<- 9000: a0348001008120517a4a57bf0d78e7e5d673b28f5ef7fd694df658ede18c9292a2373e329cc7d3820400000006830400000003840100
Traceback (most recent call last):
  File "/space/home/laforge/.local/lib/python3.9/site-packages/cmd2/cmd2.py", line 2064, in onecmd_plus_hooks
    stop = self.onecmd(statement, add_to_history=add_to_history)
  File "/space/home/laforge/.local/lib/python3.9/site-packages/cmd2/cmd2.py", line 2494, in onecmd
    stop = func(statement)
  File "/space/home/laforge/.local/lib/python3.9/site-packages/cmd2/decorators.py", line 318, in cmd_wrapper
    return func(*args_list, **kwargs)
  File "/space/home/laforge/projects/git/pysim/pySim/filesystem.py", line 675, in do_read_records_decoded
    (data, sw) = self._cmd.rs.read_record_dec(recnr)
  File "/space/home/laforge/projects/git/pysim/pySim/filesystem.py", line 1331, in read_record_dec
    return (self.selected_file.decode_record_hex(data), sw)
  File "/space/home/laforge/projects/git/pysim/pySim/filesystem.py", line 768, in decode_record_hex
    self._tlv.from_tlv(raw_bin_data)
TypeError: from_tlv() missing 1 required positional argument: 'do'
EXCEPTION of type 'TypeError' occurred with message: 'from_tlv() missing 1 required positional argument: 'do''
Actions #1

Updated by laforge over 2 years ago

  • % Done changed from 0 to 10

this is a sign of a deeper underlying problem. The tlv member is a _class while we are executing normal methods in it. So we first need to instantiate the class before calling the methods on them. I have a patch locally for testing this.

Actions #2

Updated by laforge about 2 years ago

  • % Done changed from 10 to 40
Actions #3

Updated by laforge about 2 years ago

  • Status changed from New to Resolved
  • % Done changed from 40 to 100
Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)