Actions
Bug #1329
closedHTSP message deserialise in Python library only returns last entry in any list fields
Status:
Invalid
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
2012-10-14
Due date:
% Done:
0%
Estimated time:
Found in version:
3.2 beta
Affected Versions:
Description
Both map and list deserialisation in htsmsg.deserialize0() are handled via the same code that adds each structure's entries to the overall message (a dictionary). For a map, each entry has a unique name; for a list, this name is the empty string. So when a list of more than one entry is decoded, each entry has the same name and consequently overwrites the last one in the list.
Files
       Updated by Nick Tuckett about 13 years ago
      Updated by Nick Tuckett about 13 years ago
      
      
    
    
    Suggested fix implementation attached.
       Updated by Adam Sutton about 13 years ago
      Updated by Adam Sutton about 13 years ago
      
      
    
    - Status changed from New to Invalid
That code is merely test code and does not form part of the deliverable project. Therefore not too worried about bugs in it (unless it stops my testing ;) ). However if you do want to provide a fix please submit a PR on github.
Regards
Adam
Actions