Bug 482553

Summary: Scheduled Backup Fails To Run for Profile Names With Spaces
Product: [openSUSE] openSUSE 11.0 Reporter: Forgotten User xs3PtXj4XH <forgotten_xs3PtXj4XH>
Component: YaST2Assignee: Lukas Ocilka <locilka>
Status: RESOLVED DUPLICATE QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P5 - None    
Version: Final   
Target Milestone: openSUSE 11.1   
Hardware: All   
OS: openSUSE 11.0   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Forgotten User xs3PtXj4XH 2009-03-05 19:44:50 UTC
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.9.0.6) Gecko/2009012700 SUSE/3.0.6-0.1 Firefox/3.0.6

If you use the YaST2 Backup component and create a profile that has a space in the profile name (for example: "Weekly Backup" as opposed to "WeeklyBackup"), then the scheduled backup will fail to run successfully.

This is due to the fact that the cron job does not correctly handle spaces.  Mail sent to the root user at the time of the job indicates that the backup process is initiated, but fails when cron is unable to parse the name of the profile containing a space in it.

I only noticed this because a customer did not have any old backups (I told the backup system to keep 3), and I had "send summary mail to root user" checked.  Checking the mail showed the failure.

Reproducible: Always

Steps to Reproduce:
1. Create backup profile with a space in the name
2. Check "send summary mail to root user" during profile creation
3. Set the profile to run "automatically" through Yast
4. Backup fails to run - check mail for error message.
Actual Results:  
Scheduled backup has failed to run.

Expected Results:  
Backup should have completed normally as if the user had pressed the "Manual Backup" button.

Suggested fix is to either disallow profile names with spaces or to have cron parse the spaces correctly.
Comment 1 Forgotten User xs3PtXj4XH 2009-03-05 19:46:13 UTC
Sorry, that should have been 11.0, though it probably occurs in 11.1 as well.
Comment 4 Lukas Ocilka 2009-03-09 17:23:46 UTC
It has been fixed in SLE 11 and openSUSE 11.2. Please, use names without spaces until we release the fix in openSUSE or use version from FACTORY.

*** This bug has been marked as a duplicate of bug 466750 ***