Bug 44335 - Sorting Print jobs by date doesn't work reliably
Sorting Print jobs by date doesn't work reliably
Status: CLOSED FIXED
Product: UCS@school
Classification: Unclassified
Component: UMC - Printermoderation
UCS@school 4.2
Other Linux
: P5 normal (vote)
: UCS@school 4.2 v2
Assigned To: Jürn Brodersen
Florian Best
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2017-04-10 13:33 CEST by Richard Ulmer
Modified: 2017-06-23 13:32 CEST (History)
1 user (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?: 3: Will affect average number of installed domains
How will those affected feel about the bug?: 1: Nuisance – not a big deal but noticeable
User Pain: 0.051
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
List of print jobs sorted by date. (34.06 KB, image/png)
2017-04-10 13:33 CEST, Richard Ulmer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Ulmer univentionstaff 2017-04-10 13:33:41 CEST
Created attachment 8765 [details]
List of print jobs sorted by date.

The print jobs are not always sorted correctly, if you sort by date. I've attached a screenshot, where the behavior can be seen.
Comment 1 Jürn Brodersen univentionstaff 2017-05-23 14:33:41 CEST
12pm was sorted as if it was smaller then 8am for example.

How to reproduce:
Move or add a pdf printer to a school
"lpstat -p -d" <- list available printers
on a console switch to a student
"lp -d PDFDrucker simpleTextFile" <- print something, PDFDrucker is the name of the printer
"timedatectl set-time "2012-05-23 8:17:16"" <- change system time
Comment 2 Jürn Brodersen univentionstaff 2017-05-23 14:39:38 CEST
r79567: fix sort by date
r79568: YAML

Package: ucs-school-umc-printermoderation
Version: 14.0.3-3A~4.2.0.201705231432
Branch: ucs_4.2-0
Scope: ucs-school-4.2
Comment 3 Jürn Brodersen univentionstaff 2017-05-24 13:34:37 CEST
r79623: changed sortRepresentation to sortFormatter
Comment 4 Florian Best univentionstaff 2017-05-24 15:20:01 CEST
OK: sorting print jobs per date is possible
Comment 5 Sönke Schwardt-Krummrich univentionstaff 2017-06-23 13:32:24 CEST
UCS@school 4.2 v2 has been released.

http://docs.software-univention.de/changelog-ucsschool-4.2v2-de.html

If this error occurs again, please clone this bug.