← Back to team overview

nssbackup-team team mailing list archive

[Bug 299967] [NEW] Using regular expressions in NSsbackup does not work properly.

 

Public bug reported:

Using regular expressions in NSsbackup does not work properly:

This bug report collects some issues concerning the use of regular
expressions for definition of exclusions within NSsbackup. These issues
are:

1. it is possible to add an empty expression using the graphical
configuration tool

2. if an invalid  regular expression was created with a prior version of
NSsbackup (or by editing the configuration file manually), the demon
'nssbackupd' fails with following exception:

   2008-11-07 19:16:53,802 - DEBUG - BackupManager.py:__fillSnapshot(320) - getting exclude list for actual snapshot
   2008-11-07 19:16:53,803 - ERROR - nssbackupd.py:__onError(216) - unexpected end of regular expression
   2008-11-07 19:16:53,822 - ERROR - nssbackupd.py:__onError(217) - Traceback (most recent call last):
     File "/usr/local/lib/python2.5/site-packages/nssbackup/nssbackupd.py", line 136, in run
       self.__bm.makeBackup()
     File "/usr/local/lib/python2.5/site-packages/nssbackup/managers/BackupManager.py", line 173, in makeBackup
       self.__fillSnapshot(prev)
     File "/usr/local/lib/python2.5/site-packages/nssbackup/managers/BackupManager.py", line 322, in __fillSnapshot
       rexclude = [ re.compile(p) for p in self.__actualSnapshot.getExcludes() if len(p)>0]
     File "/usr/lib/python2.5/re.py", line 188, in compile
       return _compile(pattern, flags)
     File "/usr/lib/python2.5/re.py", line 241, in _compile
       raise error, v # invalid expression
   error: unexpected end of regular expression

This should be avoided. This bug is critical since the backup fails.

3. It is _not_ possible to remove ALL defined regular expressions in
configuration GUI, i.e. defined regexps and defined filetypes. The very
last expression is removed from the displayed list but not from the
conf-file.

4. if an invalid  regular expression was created with a prior version of
NSsbackup (or by editing the configuration file manually) the expression
is displayed in GUI and is saved again. This should be avoided.

** Affects: nssbackup
     Importance: Undecided
         Status: New


** Tags: nssbackup regexp ui

-- 
Using regular expressions in NSsbackup does not work properly.
https://bugs.launchpad.net/bugs/299967
You received this bug notification because you are a member of NSsbackup
team, which is subscribed to NSsbackup.



Follow ups

References