← Back to team overview

datafinder-team team mailing list archive

[Bug 1306483] [NEW] JSON String deserialisation of Datetime objects fails with Python 2.7

 

Public bug reported:

When with Python 2.7 a JSON String is deserialised in DataFinder, the Datetime object does not get deserialised. Reason is a hard coded False paramter in the DatetimeJsonDecoder which restricts the DatetimeObjectHook to not handle dictionaries. But the JSONDecoder which is called before the DatetimeJsonDecoder returns a dictionary. Therewith the Datetime objects are not handled.
The error is in /src/datafinder/persistence/metadata/value_mapping/json_format.py

This problem occurs for example when you use a SVN repository and try to
look at the properties of a file using the context menu.

** Affects: datafinder
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of
DataFinderTeam, which is subscribed to DataFinder.
https://bugs.launchpad.net/bugs/1306483

Title:
  JSON String deserialisation of Datetime objects fails with Python 2.7

Status in DataFinder - flexible data management:
  New

Bug description:
  When with Python 2.7 a JSON String is deserialised in DataFinder, the Datetime object does not get deserialised. Reason is a hard coded False paramter in the DatetimeJsonDecoder which restricts the DatetimeObjectHook to not handle dictionaries. But the JSONDecoder which is called before the DatetimeJsonDecoder returns a dictionary. Therewith the Datetime objects are not handled.
  The error is in /src/datafinder/persistence/metadata/value_mapping/json_format.py

  This problem occurs for example when you use a SVN repository and try
  to look at the properties of a file using the context menu.

To manage notifications about this bug go to:
https://bugs.launchpad.net/datafinder/+bug/1306483/+subscriptions


Follow ups

References