Univention Bugzilla – Bug 47201
extended attribute of type date - value is not shown in UMC
Last modified: 2019-03-07 15:49:47 CET
When added an extended attribute of type/syntax 'date' and changing it's value to a valid date, the value is not shown in the UMC after saving and reopening the object. --------------------------------------------------------------------------- univention-ldapsearch -LLLo ldif-wrap=no "(&(univentionFreeAttribute20=*))" dn: uid=User1,cn=users,dc=support,dc=local ---8<--- univentionFreeAttribute19: 1 univentionFreeAttribute20: 20.06.18 --------------------------------------------------------------------------- Testing Environment: 10.200.42.10
univention-web (2.0.0-15) 1f41aa57413d | Bug #47201: debian changelog univention-web (2.0.0-14) 372088072971 | Bug #47201: Make DateBox widget convert dates in german format to ISO8601 univention-web.yaml 3bdb59a50923 | Bug #47201: yaml Successful build Package: univention-web Version: 2.0.0-15A~4.3.0.201807061643 Branch: ucs_4.3-0 Scope: errata4.3-1
The udm syntax 'date' saves dates in the format dd.mm.yy (yes, it even strips centuries). The DateBox widget was not able to display this format previous to my fix, but only ISO format. The fix converts the date to iso. As no century is given in the 'date' syntax, the code assumes that every year > 60 is in the 1900s, every year < 60 is in the 2000s. This is pretty stupid, but should work most of the time. I would suggest anyone who uses extended attributes to store dates to use the 'iso8601Date' udm syntax.
univention-web (2.0.0-16) dd01904b4ae1 | Bug #47201: QA feedback univention-web.yaml 6bcbd6cd031e | Bug #47201: yaml Successful build Package: univention-web Version: 2.0.0-16A~4.3.0.201807161337 Branch: ucs_4.3-0 Scope: errata4.3-1
c2fedd9 Bug #47201: QA feedback 9601ea7 Bug #47201: fix typo 60de7df Bug #47201: debian changelog 0ae5a48 Bug #47201: yaml Successful build Package: univention-web Version: 2.0.0-19A~4.3.0.201807181555 Branch: ucs_4.3-0 Scope: errata4.3-1 OK: the DateBox widget can now display attributes that use the 'date' syntax class OK: yaml -> verified
<http://errata.software-univention.de/ucs/4.3/160.html>