Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-10377

If you *don't* specify a regexp pattern to list files to exclude, the backup fails

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • thinbackup-plugin
    • None

      If you don't specify a regexp pattern to list files to exclude, the backup fails.

      The catalina.out log file reports

      19-Jul-2011 14:08:32 org.jvnet.hudson.plugins.thinbackup.ThinBackupMgmtLink doBackupManual
      INFO: Starting manual backup.
      Exception in thread "ThinBackup Worker Thread thread" java.lang.NullPointerException
      at java.util.regex.Pattern.<init>(Pattern.java:1149)
      at java.util.regex.Pattern.compile(Pattern.java:840)
      at org.jvnet.hudson.plugins.thinbackup.backup.HudsonBackup.<init>(HudsonBackup.java:78)
      at org.jvnet.hudson.plugins.thinbackup.ThinBackupPeriodicWork.backupNow(ThinBackupPeriodicWork.java:95)
      at org.jvnet.hudson.plugins.thinbackup.ThinBackupMgmtLink$1.execute(ThinBackupMgmtLink.java:74)
      at org.jvnet.hudson.plugins.thinbackup.hudson.model.AsyncPeriodicWork$1.run(AsyncPeriodicWork.java:58)
      at java.lang.Thread.run(Thread.java:636)

      As a workaround, i've specified ^$ as the file pattern

          [JENKINS-10377] If you *don't* specify a regexp pattern to list files to exclude, the backup fails

          Fixed. A new release is probably warranted for this, will check asap

          Matthias Steinkogler added a comment - Fixed. A new release is probably warranted for this, will check asap

          Code changed in jenkins
          User: alienllama
          Path:
          src/main/java/org/jvnet/hudson/plugins/thinbackup/backup/HudsonBackup.java
          src/test/java/org/jvnet/hudson/plugins/thinbackup/backup/TestHudsonBackup.java
          http://jenkins-ci.org/commit/thin-backup-plugin/370ac101172a17f559224c2650fb4823a582cfa8
          Log:
          o fix JENKINS-10377: not specifying a regex leads to a NPE.

          git-svn-id: https://svn.jenkins-ci.org/trunk/hudson/plugins/thinBackup@39650 71c3de6d-444a-0410-be80-ed276b4c234a

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: alienllama Path: src/main/java/org/jvnet/hudson/plugins/thinbackup/backup/HudsonBackup.java src/test/java/org/jvnet/hudson/plugins/thinbackup/backup/TestHudsonBackup.java http://jenkins-ci.org/commit/thin-backup-plugin/370ac101172a17f559224c2650fb4823a582cfa8 Log: o fix JENKINS-10377 : not specifying a regex leads to a NPE. git-svn-id: https://svn.jenkins-ci.org/trunk/hudson/plugins/thinBackup@39650 71c3de6d-444a-0410-be80-ed276b4c234a

            alienllama Matthias Steinkogler
            rjward Richard Ward
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: