Bug 711349

Summary: Incorrect error handling for invalid quartz entries
Product: Red Hat Satellite 5 Reporter: Šimon Lukašík <slukasik>
Component: WebUIAssignee: Tomas Lestach <tlestach>
Status: CLOSED DEFERRED QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 541CC: cperry
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-07-04 13:25:59 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 462714    

Description Šimon Lukašík 2011-06-07 09:39:11 UTC
Description of problem:


Version-Release number of selected component (if applicable):
RHN Satellite 5.4.1
spacewalk-java-1.2.39-82.el5sat

How reproducible:
always

Steps to Reproduce:
1. Admin -> Task Schedules -> create schedule
2. Create a new schedule
   Name: '13friday'
   Bunch: <whatever>
   Frequency: Daily 1:00
3. Observe: Admin -> Task Schedules (your new schedule is there)
4. Edit a custom quartz format of '13friday' to: 0 0 1 13 * 6
5. Hit a submit
6. Observe: Admin -> Task Schedules (your new schedule is NOT there)


Actual results:
The big red banner appears on a submit:

    Invalid schedule entry: 0 0 1 13 * 6

But the result is stored in the database. What is even worse is that
my 13friday bunch disappears from 'Task Schedules' page!


Expected results:
It should go smooth. 
I need my work done on Friday, 13th (early in the morning).