Bug 45405 - syntax.py#date does not work in Web-UDM (but on CLI-UDM)
syntax.py#date does not work in Web-UDM (but on CLI-UDM)
Status: REOPENED
Product: UCS
Classification: Unclassified
Component: UDM (Generic)
UCS 5.0
Other Linux
: P5 normal (vote)
: ---
Assigned To: UMC maintainers
UDM maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2017-09-15 18:29 CEST by Philipp Hahn
Modified: 2020-06-22 17:02 CEST (History)
1 user (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 1: Cosmetic issue or missing function but workaround exists
Who will be affected by this bug?: 1: Will affect a very few installed domains
How will those affected feel about the bug?: 1: Nuisance – not a big deal but noticeable
User Pain: 0.006
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
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 Philipp Hahn univentionstaff 2017-09-15 18:29:16 CEST
Task #6732 UCS Technical Training

univention-directory-manager settings/extended_attribute create     --position "cn=custom attributes,cn=univention,$(ucr get ldap/base)"     --set name="entryDate"     --set module="users/user"     --set tabName="General"     --set groupName="Organisation"     --set shortDescription="Entry date"     --set longDescription="Entryinto company"     --set syntax="date"     --set multivalue=0     --set mayChange=1     --set objectClass="univentionFreeAttributes"     --set ldapMapping="univentionFreeAttribute2"

udm users/user create --set lastname=test --set username=test --set password=univention --set entryDate=2017-09-15

univention-ldapsearch -LLL uid=test univentionFreeAttribute2
# dn: uid=test,dc=schulung6-ucs,dc=intranet
# univentionFreeAttribute2: 15.09.17

But going to Web-UMC-UDM does show an empty value!
Comment 1 Florian Best univentionstaff 2017-09-19 11:57:40 CEST
The extended attribute was not yet active.

# udm users/user list --filter uid=test | grep entryDate
  entryDate: None
# pkill -f cli-server
# udm users/user modify --dn uid=test,dc=school,dc=local --set entryDate=2017-09-15                                                                                                                                                                                 
Object modified: uid=test,dc=school,dc=local
# udm users/user list --filter uid=test | grep entryDate
  entryDate: 15.09.17
Comment 2 Philipp Hahn univentionstaff 2017-09-19 12:04:33 CEST
(In reply to Philipp Hahn from comment #0)
> But going to Web-UMC-UDM does show an empty value!

NO, it does NOT work in Web-UMC!