#14 getBackupList() not checked for None

closed-out-of-date
None
5
2001-12-27
2001-12-26
No

MoinMoin version 0.10

There are two spots in the code where the
result from
wikiutil.getBackupList() is used without first
checking
whether the result is None. Both of these have
caused
stack traces for me when I brought up the
RecentChanges
page.

macro/RecentChanges.py
43:
oldversions = wikiutil.getBackupList(config.backup_dir,
None)
...
85: is_new = len(filter(backup_re.match,
oldversions)) == 0

wikimacro.py
194: row('Number of
backup versions',
len(wikiutil.getBackupList(config.backup_dir, None)))

Discussion

  • Jürgen Hermann

    Jürgen Hermann - 2001-12-27
    • assigned_to: nobody --> jhermann
     
  • Jürgen Hermann

    Jürgen Hermann - 2001-12-27
    • status: open --> closed
     
  • Jürgen Hermann

    Jürgen Hermann - 2001-12-27

    Logged In: YES
    user_id=39128

    Already fixed.

     
  • Jürgen Hermann

    Jürgen Hermann - 2001-12-27
    • status: closed --> closed-out-of-date
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks