Issue Type: Bug Bug
Assignee: Thomas Fürer
Components: thinBackup
Created: 20/Feb/14 3:04 PM
Description:

Log file contains the following:

Caught exception evaluating: it.availableBackups in /jenkins/thinBackup/restoreOptions. Reason: java.lang.reflect.InvocationTargetException
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
<details omitted for clarity>
Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1911)
at org.jvnet.hudson.plugins.thinbackup.backup.BackupSet.initializeFromZipFile(BackupSet.java:129)
at org.jvnet.hudson.plugins.thinbackup.backup.BackupSet.initialize(BackupSet.java:93)
at org.jvnet.hudson.plugins.thinbackup.backup.BackupSet.<init>(BackupSet.java:79)
at org.jvnet.hudson.plugins.thinbackup.utils.Utils.getValidBackupSetsFromZips(Utils.java:352)
at org.jvnet.hudson.plugins.thinbackup.utils.Utils.getValidBackupSets(Utils.java:371)
at org.jvnet.hudson.plugins.thinbackup.utils.Utils.getBackupsAsDates(Utils.java:284)
at org.jvnet.hudson.plugins.thinbackup.ThinBackupMgmtLink.getAvailableBackups(ThinBackupMgmtLink.java:159)
... 129 more

Looking at source I see

tmpName = tmpName.substring(0, tmpName.indexOf(File.separator));

I suspect File.separator is the Windows character, but the version used to save the archive is the Linux version.

Due Date: 20/Feb/14 12:00 AM
Environment: Archive saved by ThinBackup v1.7.4 in Linux Server
Archive failed to restore on ThinBackup v1.7.4 in Windows 2008 Server
Jenkins version 1.551
Project: Jenkins
Priority: Major Major
Reporter: John Smith
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to