Bug 36747 - Failed to create user with expired password - invalid date format
Failed to create user with expired password - invalid date format
Status: CLOSED DUPLICATE of bug 36330
Product: UCS
Classification: Unclassified
Component: UMC (Generic)
UCS 4.0
Other Linux
: P5 normal (vote)
: ---
Assigned To: Florian Best
Alexander Kläser
:
Depends on:
Blocks: 36490
  Show dependency treegraph
 
Reported: 2014-11-17 13:20 CET by Philipp Hahn
Modified: 2015-02-06 09:26 CET (History)
2 users (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
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 2014-11-17 13:20:06 CET
File "/usr/lib/pymodules/python2.7/notifier/threads.py", line 82, in _run
    tmp = self._function()
  File "/usr/lib/pymodules/python2.7/notifier/__init__.py", line 104, in __call__
    return self._function( *tmp, **self._kwargs )
  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/udm/__init__.py", line 398, in _thread
    module.modify( properties )
  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/udm/udm_ldap.py", line 184, in wrapper_func
    ret = func( *args, **kwargs )
  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/udm/udm_ldap.py", line 441, in modify
    obj.modify()
  File "/usr/lib/pymodules/python2.7/univention/admin/handlers/__init__.py", line 364, in modify
    return self._modify(modify_childs,ignore_license=ignore_license)
  File "/usr/lib/pymodules/python2.7/univention/admin/handlers/__init__.py", line 823, in _modify
    ml=self._ldap_modlist()
  File "/usr/lib/pymodules/python2.7/univention/admin/handlers/users/user.py", line 2201, in _ldap_modlist
    shadowExpire="%d" % long(time.mktime(time.strptime(self['userexpiry'],"%Y-%m-%d"))/3600/24+1)
  File "/usr/lib/python2.7/_strptime.py", line 467, in _strptime_time
    return _strptime(data_string, format)[0]
  File "/usr/lib/python2.7/_strptime.py", line 325, in _strptime
    (data_string, format))

ValueError: time data '14.11.14' does not match format '%Y-%m-%d'


# dpkg-query -W \*univention-management-console\*
python-univention-management-console    7.1.63-1.835.201411101335
python2.6-univention-management-console 
python2.7-univention-management-console 
univention-management-console   7.1.63-1.835.201411101335
univention-management-console-frontend  4.1.100-1.958.201411130943
univention-management-console-frontend-theme    0.0.85-1.60.201411101642
univention-management-console-module-appcenter  4.1.18-3.297.201411111619
univention-management-console-module-apps       4.1.18-3.297.201411111619
univention-management-console-module-diagnostic 1.0.14-2.17.201411051421
univention-management-console-module-ipchange   3.0.1-1.17.201411101627
univention-management-console-module-join       7.1.0-6.485.201410291108
univention-management-console-module-lib        4.0.2-1.29.201411101642
univention-management-console-module-mrtg       3.1.4-1.27.201410220955
univention-management-console-module-packages   
univention-management-console-module-passwordchange     0.1.3-1.7.201411101335
univention-management-console-module-pkgdb      8.1.1-1.194.201410271559
univention-management-console-module-quota      9.1.5-1.139.201411071851
univention-management-console-module-reboot     4.1.2-4.14.201410291249
univention-management-console-module-services   4.1.0-3.25.201410141849
univention-management-console-module-setup      8.1.59-2.774.201411132103
univention-management-console-module-sysinfo    5.1.0-3.53.201410141918
univention-management-console-module-top        4.1.0-3.33.201410241612
univention-management-console-module-ucr        4.1.1-1.56.201410312157
univention-management-console-module-udm        5.1.24-1.509.201411101440
univention-management-console-module-updater    10.0.47-3.1334.201411131351
univention-management-console-server    7.1.63-1.835.201411101335
univention-management-console-web-server        4.1.100-1.958.201411130943
Comment 1 Florian Best univentionstaff 2014-11-17 13:26:24 CET
how to reproduce this? Bug #36330
Comment 2 Alexander Kläser univentionstaff 2014-11-17 13:30:23 CET
(In reply to Florian Best from comment #1)
> how to reproduce this? Bug #36330

Maybe the locale got mixed up somehow? I could imagine the scenario, that the backend processes run in one language and the frontend session in a different one.
Comment 3 Philipp Hahn univentionstaff 2014-11-17 14:11:57 CET
So far I've been able to reproduce this only when I change the expiry date and some other value like "Account deactivation".
This might be related to Bug #24185 as changing one value after one other with saving any intermediate step works.
Comment 4 Philipp Hahn univentionstaff 2014-11-17 14:12:29 CET
udm users/user modify --dn "uid=exp,cn=users,dc=phahn,dc=pt" --set userexpiry= --set disabled=all
Comment 5 Florian Best univentionstaff 2014-11-18 11:34:03 CET

*** This bug has been marked as a duplicate of bug 36330 ***
Comment 6 Alexander Kläser univentionstaff 2014-12-03 15:42:09 CET
Yes, looks very much like a duplicate.
Comment 7 Florian Best univentionstaff 2015-02-06 09:26:30 CET
http://errata.univention.de/ucs/4.0/43.html