[Bug 1163905] [NEW] Backport-Request: Failure in Duply's pre-scripts are muted
Launchpad Bug Tracker
1163905 at bugs.launchpad.net
Fri Apr 19 21:19:11 UTC 2013
You have been subscribed to a public bug by Brian Murray (brian-murray):
duply does not check the return status of pre and post scripts and therefore returns 0 even if there was a problem in the pre/post scripts which returned an error.
This issue happens every time and is 100% reproducible
SRU Justification:
[Impact]
* When using duply, errors on pre/post scripts are not caught and
therefore succeed even if there were problems.
[Test Case]
* Set up duply
* Create a pre script containing simply 'exit 1' inside it.
* Run 'duply srv pre'
* See duply succeed and return 0
--- Start running command PRE at 12:58:29.630 ---
Running '/root/.duply/srv/pre' - FAILED (code 1)
--- Finished state OK at 12:58:29.638 - Runtime 00:00:00.008 ---
root at nas:~# echo $?
0
with the patch:
--- Start running command PRE at 13:02:03.643 ---
Running '/root/.duply/srv/pre' - FAILED (code 1)
13:02:03.652 Task 'PRE' failed with exit code '1'.
--- Finished state FAILED 'code 1' at 13:02:03.652 - Runtime 00:00:00.009 ---
root at nas:~# echo $?
1
[Regression Potential]
* The patch is minimal and has been accepted/committed upstream.
* This package has been tested on a virtual machine with the test case above and showed the right exit value. Minimal likelihood of regressions.
----
Status:
* Patch is the same as:
* http://sourceforge.net/tracker/index.php?func=detail&aid=3609075&group_id=217745&atid=1041147
* Packages agains precise: https://launchpad.net/~edamato/+archive/lp1163905
** Affects: duply (Ubuntu)
Importance: High
Status: Triaged
** Affects: duply (Ubuntu Precise)
Importance: High
Status: Triaged
** Affects: duply (Ubuntu Raring)
Importance: High
Status: Triaged
** Tags: patch
--
Backport-Request: Failure in Duply's pre-scripts are muted
https://bugs.launchpad.net/bugs/1163905
You received this bug notification because you are a member of Ubuntu Sponsors Team, which is subscribed to the bug report.
More information about the Ubuntu-sponsors
mailing list