Bug 36698 - maintenance policy look weird
maintenance policy look weird
Status: RESOLVED WONTFIX
Product: UCS
Classification: Unclassified
Component: UMC - Policies
UCS 4.0
Other Linux
: P5 normal (vote)
: UCS 4.0-x
Assigned To: UMC maintainers
:
Depends on:
Blocks: 36508
  Show dependency treegraph
 
Reported: 2014-11-14 13:34 CET by Philipp Hahn
Modified: 2019-01-03 07:15 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): Usability
Max CVSS v3 score:


Attachments
Screenshot (76.14 KB, image/png)
2014-11-14 13:34 CET, Philipp Hahn
Details
Missing 0 in maintenance-policy cron entry (13.39 KB, image/png)
2014-12-10 14:32 CET, Philipp Hahn
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Hahn univentionstaff 2014-11-14 13:34:25 CET
Created attachment 6373 [details]
Screenshot

The maintenance policy (and others) contain field for entering a cron time (month, day, day-of-week, hour, minute). Currently they're rendered as text input fiels/combo boxes, which are expanded for each entry.
If any "all" entry is selected, it gets expanded to 12 months, 24 hours, 7 days-a-week, 31 days-a-month, 12 5-minute-blocks-a-hour. This needs a lot of space and makes editing hard.

Please use some more intelligent widget and rendering.
Comment 1 Florian Best univentionstaff 2014-11-14 14:04:50 CET
What would be more intelligent?
Alternatively to day, hour, minute a NumberSpinner could be shown and a checkbox for 'all'.
Comment 2 Philipp Hahn univentionstaff 2014-11-14 14:42:27 CET
My first idea would be some (tightly-packed) checkboxes next to each other or in a grid layout:

Hour:  [All] [00] [01] [02] [03] [04] [05] [06] [07] [08] [09] [10] [11]
             [12] [13] [14] [15] [16] [17] [18] [19] [20] [21] [22] [23]
Min:   [All] [00] [05] [10] [15] [20] [25] [30] [35] [40] [45] [50] [55]
             (btw + 10 minutes jitter)
Month: [All] [Jan] [Feb] [Mar] [Apr] [May] [Jun] [Jul] [Aug] [Sep] [Oct] [Nov] [Dec]
Day:   [All] [01] [02] [03] [04] [05] [06] [07]
             [08] [09] [10] [11] [12] [13] [14]
             [15] [16] [17] [18] [19] [20] [21]
             [22] [23] [24] [25] [26] [27] [28]
             [29] [30] [31]
Day:   [All] [Mon] [Tue] [Wed] [Thu] [Fri] [Sat] [Sun]

[All] should select or un-select all as a short-cut to clicking each check-box individually
Comment 3 Philipp Hahn univentionstaff 2014-11-14 15:02:23 CET
There is also another usability problem, which easily manifests in a distributed-denial-of-service configuration:

For each category where no element is selected, *' is used. If no elements are selected in any category, this results in a cron entry of "* * * * *" which gets run every minute. Multiply that with the number of hosts in a domain and you have a DDoS attack on our download server.

The UI should require at least one element to be selected for minute.
If no hour is specified, a warning should be shown.



The policy "repository maintenance" also uses cron and should be modified accordingly.
Comment 4 Philipp Hahn univentionstaff 2014-12-10 14:32:40 CET
Created attachment 6518 [details]
Missing 0 in maintenance-policy cron entry

"0" is not show in the combo-box lists.
Comment 5 Stefan Gohmann univentionstaff 2019-01-03 07:15:37 CET
This issue has been filled against UCS 4.0. The maintenance with bug and security fixes for UCS 4.0 has ended on 31st of May 2016.

Customers still on UCS 4.0 are encouraged to update to UCS 4.3. Please contact
your partner or Univention for any questions.

If this issue still occurs in newer UCS versions, please use "Clone this bug" or simply reopen the issue. In this case please provide detailed information on how this issue is affecting you.