Bug 47201 - extended attribute of type date - value is not shown in UMC
extended attribute of type date - value is not shown in UMC
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UMC (Generic)
UCS 4.3
Other Linux
: P5 normal (vote)
: UCS 4.3-1-errata
Assigned To: Jannik Ahlers
Johannes Keiser
:
Depends on:
Blocks: 48904
  Show dependency treegraph
 
Reported: 2018-06-18 12:00 CEST by Nico Stöckigt
Modified: 2019-03-07 15:49 CET (History)
3 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 3: Simply Wrong: The implementation doesn't match the docu
Who will be affected by this bug?: 1: Will affect a very few installed domains
How will those affected feel about the bug?: 5: Blocking further progress on the daily work
User Pain: 0.086
Enterprise Customer affected?: Yes
School Customer affected?:
ISV affected?:
Waiting Support: Yes
Flags outvoted (downgraded) after PO Review:
Ticket number: 2018061521000424
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nico Stöckigt univentionstaff 2018-06-18 12:00:22 CEST
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
Comment 1 Jannik Ahlers univentionstaff 2018-07-06 16:52:03 CEST
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
Comment 2 Jannik Ahlers univentionstaff 2018-07-06 16:57:56 CEST
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.
Comment 3 Jannik Ahlers univentionstaff 2018-07-17 09:04:35 CEST
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
Comment 4 Johannes Keiser univentionstaff 2018-07-30 16:48:30 CEST
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
Comment 5 Arvid Requate univentionstaff 2018-08-01 14:54:35 CEST
<http://errata.software-univention.de/ucs/4.3/160.html>