Project

General

Profile

Bug #1329

HTSP message deserialise in Python library only returns last entry in any list fields

Added by Nick Tuckett about 12 years ago. Updated about 12 years ago.

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

htsmsg.py (5.57 KB) htsmsg.py Nick Tuckett, 2012-10-14 17:40

History

#1

Updated by Nick Tuckett about 12 years ago

Suggested fix implementation attached.

#2

Updated by Adam Sutton about 12 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

Also available in: Atom PDF