Created attachment 451635 [details] screenshot Description of problem: 'HTTP Response Time' -> 'Collection Interval' not setting properly. If user set 1-minute then its updated with 30-seconds and in case 50-minute then its update with 50-seconds. QE environment: RHEL - 5.5 Postgres 8.4.2 FF - 3.0.19 Version-Release number of selected component (if applicable): RHQ-Master build #369 http://hudson-qe.rhq.rdu.redhat.com:8080/view/RHQ/job/ci-rhq-master/369/ How reproducible: Always Steps to Reproduce: 1) Install RHQ server and agent (configure Apache or Jboss As in agent box) 2) Log-in to RHQ 3) Navigate to Apache -> Vhost 4) Go to 'Monitoring' -> 'Schedules' 5) Set 'HTTP Response Time' -> 'Collection Interval' value = 1 Minute 6) Observe 'Metric Collection Schedules' for updated ' HTTP Response Time' Actual results: 'HTTP Response Time' -> 'Collection Interval' not setting properly. If user set 1-minute then its updated with 30-seconds and in case 50-minute then its update with 50-seconds. Expected results: 'HTTP Response Time' -> 'Collection Interval' should update properly as user input. Additional info: Please refer attached screenshot and server log.
Created attachment 451636 [details] server log
The minimum collection interval is 30 seconds, so 1 minutes being translated to 30 seconds is correct. I'll try to add a specialized message in the GUI to make this clear. As for 50 minutes being translated to 50 seconds, that sounds like a bug.
I modified it so that entering a value less than 30 when the selected units is "seconds" causes a validation error and disables the Set button (commit 4f5fd15 to master). I was unable to reproduce entering a value of 50 minutes and the interval getting set to 50 seconds instead. Rajan, if you see that again, please reopen this issue and include very detailed reproduction steps.
Verified on rhq4 release build (Version: 4.0.0 Build Number: db0c817) Setting a value less than 30 sec displays a red circle and a hover message 'Must be atleast 30'. The Set button gets disabled. a value of 50 minutes sets and displays 50 minutes. Marking as verified.
Bookkeeping - closing bug - fixed in recent release.