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

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: thinbackup-plugin
    • Labels:
      None
    • Environment:
    • Similar Issues:

      Description

      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

        Attachments

          Activity

          Hide
          alienllama Matthias Steinkogler added a comment -

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

          Show
          alienllama Matthias Steinkogler added a comment - Fixed. A new release is probably warranted for this, will check asap
          Hide
          scm_issue_link 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

          Show
          scm_issue_link 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

            People

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

              Dates

              • Created:
                Updated:
                Resolved: