Bug 420631

Summary: kcron silent option is broken
Product: [Fedora] Fedora Reporter: Jeff Bastian <jbastian>
Component: kdeadminAssignee: Than Ngo <than>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: medium    
Version: 8CC: kevin, ltinkl, rdieter
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: F8-update Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-05-14 15:18:35 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:
Attachments:
Description Flags
upstream patch to remove silent option (tested on RHEL 5.1) none

Description Jeff Bastian 2007-12-11 22:08:53 UTC
+++ This bug was initially created as a clone of Bug #420591 +++

Description of problem:
When creating a new cron job with kcron, there's a checkbox to make the job
silent.  If you enable the silent option, kcron fails with a generic error:
  An error occurred while updating crontab.

Launch kcron from a terminal and this error appears when saving the job:
  "/tmp/kde-user/kcrondR2FDb.tmp":2: bad minute
  errors in crontab file, can't install.

The problem is that kcron tries to insert a '-' before the minutes field to make
the job silent (apparently this is an extension for some flavors of cron). 
I.E., the line it creates looks like
  -1 2 3 4 5 /usr/bin/something

This has been reported upstream and the silent option has been removed.
  http://bugs.kde.org/show_bug.cgi?id=85425


Version-Release number of selected component (if applicable):
  kdeadmin-3.5.8-1.fc8

How reproducible:
Everytime

Steps to Reproduce:
1. Launch kcron
2. Create a new job and enable the Silent check box
3. Save
  
Actual results:
An error occurred while updating crontab.

Expected results:
Remove the Silent option from kcron as was done upstream.

Additional info:

-- Additional comment from jbastian on 2007-12-11 17:01 EST --
Created an attachment (id=284691)
upstream patch to remove silent option from kcron

I've tested this patch on RHEL 5.1 and verified it removes the Silent option.

It also removes any offending leading '-' characters from legacy silent jobs.

Comment 1 Jeff Bastian 2007-12-11 22:08:53 UTC
Created attachment 284701 [details]
upstream patch to remove silent option (tested on RHEL 5.1)

Comment 2 Than Ngo 2008-05-14 15:18:35 UTC
it's fixed in kdeadmin-3.5.9-2. thanks

Comment 3 Fedora Update System 2008-05-14 16:20:06 UTC
kdeadmin-3.5.9-2.fc8 has been submitted as an update for Fedora 8

Comment 4 Kevin Kofler 2008-05-14 16:25:16 UTC
This affects F7 too, shouldn't we update that too?

F9+ is not affected, this has been fixed in 4.0.0.

Comment 5 Fedora Update System 2008-05-17 22:23:49 UTC
kdeadmin-3.5.9-2.fc8 has been pushed to the Fedora 8 stable repository.  If problems still persist, please make note of it in this bug report.