Backport-Request: Failure in Duply's pre-scripts are muted
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
duply (Ubuntu) |
Triaged
|
High
|
Unassigned | ||
Precise |
Fix Released
|
High
|
Unassigned |
Bug Description
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/
--- Finished state OK at 12:58:29.638 - Runtime 00:00:00.008 ---
root@nas:~# echo $?
0
with the patch:
--- Start running command PRE at 13:02:03.643 ---
Running '/root/
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@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://
Related branches
Changed in duply (Ubuntu): | |
importance: | Undecided → High |
status: | New → Triaged |
description: | updated |
Changed in duply (Ubuntu Precise): | |
status: | New → Triaged |
importance: | Undecided → High |
description: | updated |
The attachment "Backport of the upstream fix" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.
[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]