#4140 */10 minutes not visible in webmin & saved wrong

open
Jamie Cameron
5
2012-09-15
2012-09-15
John Fraser
No

A manually created cron job is set up as */10 * * * * /etc/network/ipsetrule.sh and saved.

When viewed in webmin, the minutes section has "Selected" selected, yet no minutes are highlighted. If the rule is re-examined using terminal, it has been changed to */10,20,30,40,50 * * * * /etc/network/ipsetrule.sh, meaning the 0 or 60 minute execution are lost.

Attempting to select 0,10,20,30,40,50 in webmin in the minutes section does not work as when changing focus from the 00 to 11 range to the 12 to 23 ranges results in selections in the first range being unselected.

Discussion

  • John Fraser
    John Fraser
    2012-09-15

    Ubuntu Server 12.04
    Webmin 1.590

     
  • Jamie Cameron
    Jamie Cameron
    2012-09-15

    I can't re-produce this bug .... which Webmin version are you running there?

     
  • John Fraser
    John Fraser
    2012-09-15

    Ubuntu server 12.04 Webmin 1.590

    See attached files, they have timestamp as part of file name so you should be able to determine order.

    Create cron job in terminal and save (first screen shot)
    Enter webmin, select job, dont do anything, just press save (second screen shot)
    back in terminal, edit cron table again, parameters all changed (third screenshot)

     
  • Jamie Cameron
    Jamie Cameron
    2012-09-15

    In your first and third screenshots, the cron times are effectively the same though. */10 is the same as 0,10,20,30,40,50 .

     
  • John Fraser
    John Fraser
    2012-09-15

    Yes, but in webmin, it does not show 0, 10,20,30,40,50 as selected. Then, if you actually try and build the same ten minute rule in webmin, you cannot as it does not allow you to select times from multiple columns.

     
  • Jamie Cameron
    Jamie Cameron
    2012-09-17

    I don't have any trouble selecting times from multiple columns..

    Perhaps this bug is browser-specific? Which browser are you using - my tests have been performed with chrome on windows and Linux.

     
  • John Fraser
    John Fraser
    2012-09-17

    I am using Firefox and believe it is the way the colour of the highlighted item is rendered under Firefox. I switched to Chrome and the selected items come up in a very light grey, in Firefox, I am unable to distinguish between an unselected minute slot and a selected one.

     
  • Jamie Cameron
    Jamie Cameron
    2012-09-17

    That could explain it - are you using Firefox on Windows, Linux or mac?

     
  • John Fraser
    John Fraser
    2012-09-17

    Ubuntu 12.04 desktop

     
  • Jamie Cameron
    Jamie Cameron
    2012-09-17

    I just tried Firefox on Ubuntu, and the highlighting looks fine to me. Could you attach a screenshot?

    BTW, the highlighting colors aren't really under Webmin's control..

     
  • John Fraser
    John Fraser
    2012-09-17

    Screenshot already in attached file section, see Screenshot from 2012-09-15 15:36:26.png, this is the one taken from Firefox. Maybe it is just my monitor not showing enough contrast or something? Either way, it shows better under Chrome, so it is not a bug, so you can close this and I'll work on my monitor.

     
  • Jamie Cameron
    Jamie Cameron
    2012-09-17

    Sorry, forgot you'd already posted those.

    On my screen, the highlighting in those screenshots looks pretty clear.

     
  • John Fraser
    John Fraser
    2012-09-17

    Is the associated CSS part of the webmin install? If so, I could change it to be something different on my system.

     
  • Jamie Cameron
    Jamie Cameron
    2012-09-18

    Yes, you can find it in /usr/share/webmin/blue-theme/unauthenticated/style.css

     
  • John Fraser
    John Fraser
    2012-09-18

    If I inspect the element via Chrome :

    select[size], select[multiple], select[size][multiple] {
    -webkit-appearance: listbox;
    -webkit-box-align: start;
    border: 1px inset #808080;
    border-image: initial;
    -webkit-border-radius: initial;
    white-space: initial;
    }

    However, no where in style.css does the colour #808080 get defined, note that I am no where near a stylesheet expert :), it actually shows as the word "gray" in inspect element, which I searched for as well and could not find it. I also search for #808080 in any css under webmin, none found and "gray" in any css, none found. Ideas?

     
  • Jamie Cameron
    Jamie Cameron
    2012-09-18

    I'm not sure where that color comes from .. Webmin doesn't apply any style to <select> elements in the default theme.