Bug 40914 - Problem with leap year
Problem with leap year
Status: RESOLVED WORKSFORME
Product: UCS
Classification: Unclassified
Component: UMC (Generic)
UCS 4.1
amd64 All
: P5 normal (vote)
: UCS 4.x
Assigned To: UMC maintainers
:
Depends on:
Blocks: 40791 40792
  Show dependency treegraph
 
Reported: 2016-03-17 13:18 CET by Florian Best
Modified: 2017-06-28 14:24 CEST (History)
5 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): Error handling
Max CVSS v3 score:


Attachments
patch (973 bytes, patch)
2016-03-17 13:18 CET, Florian Best
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Best univentionstaff 2016-03-17 13:18:03 CET
Created attachment 7541 [details]
patch

(In reply to Tobias Birkefeld from comment #10)
> For the record:
> The bug will occur again on 29.02.2096!
> The year 2100 will be a common year and there won't be a day 29.02.2100.
Attached a patch which resolved the problem for then.

+++ This bug was initially created as a clone of Bug #40790 +++

Alle Versuche, mich am heutigen 29.2.2016 an der UMC anzumelden, scheitern mit einer durch das Anmeldefenster überdeckten Fehlermeldung. Das Logfile zum Modul "univention-management-console-web-server" gibt dazu folgendes preis:

29.02.16 07:46:02.139  MAIN        ( PROCESS ) : SessionClient(0x247ffd0): _authenticated: success=True  status=200  message=OK, operation successful
29.02.16 07:46:02.140  MAIN        ( ERROR   ) : Traceback in default((<__main__.CPAuth object at 0x2367410>,), {}):
Traceback (most recent call last):
  File "/usr/sbin/univention-management-console-web-server", line 74, in new_f
    return f(*args, **kwargs)
  File "/usr/sbin/univention-management-console-web-server", line 730, in default
    self.set_cookies(sessionid=response.body.get('sessionid'))
  File "/usr/sbin/univention-management-console-web-server", line 433, in set_cookies
    expiration = expiration.replace(year=expiration.year + 5)
ValueError: day is out of range for month

Das Problem tritt auch mit der Version 4.0.4 auf.
Comment 1 Florian Best univentionstaff 2017-06-28 14:24:36 CEST
Patch already applied.