Univention Bugzilla – Bug 32329
Missing cast in _unixTimeInverval2seconds
Last modified: 2013-11-19 06:41:25 CET
The function _unixTimeInverval2seconds in dc.py does not cast the values from unicode to long. Thus the string is duplicated, e.g.: dc ucs_time: 101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010 instead of 600.
Created attachment 5392 [details] bug_32329_patch
fixed Code: r43569 Changelog: r43570
OK - -> python >>> import univention.s4connector.s4.dc >>> univention.s4connector.s4.dc._unixTimeInverval2seconds([1, "minutes"]) 60L >>> univention.s4connector.s4.dc._unixTimeInverval2seconds(["1", "minutes"]) 60L OK - Changelog
UCS 3.2 has been released: http://docs.univention.de/release-notes-3.2-en.html http://docs.univention.de/release-notes-3.2-de.html If this error occurs again, please use "Clone This Bug".