Bug 40794

Summary: Can't log in into web interface on leap days
Product: UCS Reporter: glatki
Component: GeneralAssignee: Bugzilla Mailingliste <bugzilla>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P5 CC: best
Version: UCS 4.1   
Target Milestone: ---   
Hardware: Other   
OS: Linux   
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:

Description glatki 2016-02-29 11:06:31 CET
Steps to reproduce bug

Tried to log in using the UCS webinterface today, Feb 29 2016. Tried using Administrator built-in account and alternative Account.

Expected behavior

Normal login into web interface.

Actual behavior

Nothing happens, no failure message either, but the call to http://SERVER/univention-management-console/auth respons with a 500 (Internal Server Error).

/var/log/auth.log reports a successful local login:
Feb 29 10:35:27 atlas python2.7: pam_unix(univention-management-console:auth): authentication failure; logname= uid=0 euid=0 tty= ruser= rhost=  user=Administrator
Feb 29 10:35:27 atlas python2.7: pam_krb5(univention-management-console:auth): user Administrator authenticated as Administrator@INT.MODAC.EU

/var/log/univention/management-console-web-server.log reports:
29.02.16 10:35:27.488  MAIN        ( PROCESS ) : SessionClient(0x3dc9410): _authenticated: success=True  status=200  message=None
29.02.16 10:35:27.489  MAIN        ( ERROR   ) : Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/cherrypy/_cprequest.py", line 656, in respond
    response.body = self.handler()
  File "/usr/lib/python2.7/dist-packages/cherrypy/lib/encoding.py", line 188, in __call__
    self.body = self.oldhandler(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/cherrypy/_cpdispatch.py", line 34, in __call__
    return self.callable(*self.args, **self.kwargs)
  File "/usr/sbin/univention-management-console-web-server", line 1010, in default
    return self._auth_request(req, sessionid)
  File "/usr/sbin/univention-management-console-web-server", line 1035, in _auth_request
    self.set_session(sessionid, username)
  File "/usr/sbin/univention-management-console-web-server", line 699, in set_session
    self.set_cookies(('UMCSessionId', sessionid), ('UMCUsername', username))
  File "/usr/sbin/univention-management-console-web-server", line 678, in set_cookies
    expires = expires.replace(year=expires.year + 5)
ValueError: day is out of range for month

date -s "1 MAR 2016 10:46:00" fixed the login problems immediately, but after a short while, the server became unreponsive, including terminal login. After a rebooting, I was unable to determine the reason from the log files.
Comment 1 Florian Best univentionstaff 2016-02-29 11:09:34 CET
Hello,
we are currently releasing an erratum update for UCS 3.2, CUS 4.0 and UCS 4.1 to fix this problem.
Meanwhile you can follow the instructions at http://sdb.univention.de/1361 to resolve the problem on your system!

*** This bug has been marked as a duplicate of bug 40790 ***
Comment 2 Florian Best univentionstaff 2016-03-17 13:15:17 CET
<http://errata.software-univention.de/ucs/4.1/122.html>