Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert StorageNotAvailableException to SabreDAV exception #11992

Closed
wants to merge 1 commit into from

Conversation

PVince81
Copy link
Contributor

@PVince81 PVince81 commented Nov 6, 2014

Convert \OCP\Files\StorageNotAvailableException to
\Sabre\DAV\Exception\ServiceUnavailable for every file/directory
operation happening inside of SabreDAV.

This is necessary to avoid having the exception bubble up to remote.php
which would return an exception page instead of an appropriate response.

@PVince81
Copy link
Contributor Author

PVince81 commented Nov 6, 2014

@DeepDiver1975 @craigpg @icewind1991

Note: it is expected that the external storage instance will throw StorageNotAvailableException in the appropriate situations. This ticket has been raised as it needs to be fixed/checked inside every storage instance: #11792

@ghost
Copy link

ghost commented Nov 6, 2014

💣 Test FAILed. 💣
Refer to this link for build results (access rights to CI server needed):
https://ci.owncloud.org//job/pull-request-analyser-ng-simple/2220/

Build result: FAILURE

[...truncated 10 lines...] > git config remote.origin.url https://github.com/owncloud/core.git # timeout=10Cleaning workspace > git rev-parse --verify HEAD # timeout=10No valid HEAD. Skipping the resetting > git clean -fdx # timeout=10Fetching upstream changes from https://github.com/owncloud/core.git > git fetch --tags --progress https://github.com/owncloud/core.git +refs/pull/:refs/remotes/origin/pr/ > git rev-parse origin/pr/11992/merge^{commit} # timeout=10Checking out Revision 836bc95db5ec5a71139dca4cc0399eedbe2926bc (detached) > git config core.sparsecheckout # timeout=10 > git checkout -f 836bc95db5ec5a71139dca4cc0399eedbe2926bc > git rev-list 4b7311919e52776ff9fb41a0b5ddd543ea5638f2 # timeout=10 > git remote # timeout=10 > git submodule init # timeout=10 > git submodule sync # timeout=10 > git config --get remote.origin.url # timeout=10 > git submodule update --init --recursiveTriggering pull-request-analyser-ng-simple » vm-slave-02Configuration pull-request-analyser-ng-simple » vm-slave-02 is still in the queue: Waiting for next available executor on vm-slave-02pull-request-analyser-ng-simple » vm-slave-02 completed with result FAILUREStarted calculate disk usage of buildFinished Calculation of disk usage of build in 0 secondsStarted calculate disk usage of workspaceFinished Calculation of disk usage of workspace in 5 minutes
💣 Test FAILed. 💣

@ghost
Copy link

ghost commented Nov 6, 2014

💣 Test FAILed. 💣
Refer to this link for build results (access rights to CI server needed):
https://ci.owncloud.org//job/pull-request-analyser-ng-simple/2227/

Build result: FAILURE

[...truncated 10 lines...] > git config remote.origin.url https://github.com/owncloud/core.git # timeout=10Cleaning workspace > git rev-parse --verify HEAD # timeout=10No valid HEAD. Skipping the resetting > git clean -fdx # timeout=10Fetching upstream changes from https://github.com/owncloud/core.git > git fetch --tags --progress https://github.com/owncloud/core.git +refs/pull/:refs/remotes/origin/pr/ > git rev-parse origin/pr/11992/merge^{commit} # timeout=10Checking out Revision e5a420af510751bef6dbc0e44666a139a2b3b9f4 (detached) > git config core.sparsecheckout # timeout=10 > git checkout -f e5a420af510751bef6dbc0e44666a139a2b3b9f4 > git rev-list f11c81b68aaf2ce0f35cdf81e1b0ba931060cac0 # timeout=10 > git remote # timeout=10 > git submodule init # timeout=10 > git submodule sync # timeout=10 > git config --get remote.origin.url # timeout=10 > git submodule update --init --recursiveTriggering pull-request-analyser-ng-simple » vm-slave-02Configuration pull-request-analyser-ng-simple » vm-slave-02 is still in the queue: Waiting for next available executor on vm-slave-02pull-request-analyser-ng-simple » vm-slave-02 completed with result FAILUREStarted calculate disk usage of buildFinished Calculation of disk usage of build in 0 secondsStarted calculate disk usage of workspaceFinished Calculation of disk usage of workspace in 3 minutes 29 seconds
💣 Test FAILed. 💣

@PVince81
Copy link
Contributor Author

PVince81 commented Nov 6, 2014

@DeepDiver1975 Jenkins is acting up again

@PVince81 PVince81 force-pushed the sabre-convertstoragenotavailableexception branch from 7359938 to 17bd471 Compare November 7, 2014 11:24
@PVince81
Copy link
Contributor Author

PVince81 commented Nov 7, 2014

Rebased

@PVince81 PVince81 force-pushed the sabre-convertstoragenotavailableexception branch from 17bd471 to 7ca7493 Compare November 7, 2014 11:30
@PVince81
Copy link
Contributor Author

PVince81 commented Nov 7, 2014

Squashed

@PVince81
Copy link
Contributor Author

PVince81 commented Nov 7, 2014

Setting to gold/showstopper/ship blocker due to #11869

@ghost
Copy link

ghost commented Nov 7, 2014

💣 Test FAILed. 💣
Refer to this link for build results (access rights to CI server needed):
https://ci.owncloud.org//job/pull-request-analyser-ng-simple/2355/

Build result: FAILURE

[...truncated 10 lines...] > git config remote.origin.fetch +refs/heads/:refs/remotes/origin/ # timeout=10 > git config remote.origin.url https://github.com/owncloud/core.git # timeout=10Cleaning workspace > git rev-parse --verify HEAD # timeout=10No valid HEAD. Skipping the resetting > git clean -fdx # timeout=10Fetching upstream changes from https://github.com/owncloud/core.git > git fetch --tags --progress https://github.com/owncloud/core.git +refs/pull/:refs/remotes/origin/pr/ > git rev-parse origin/pr/11992/merge^{commit} # timeout=10Checking out Revision 290c04ba80751507b3ce48d279839470920a6488 (detached) > git config core.sparsecheckout # timeout=10 > git checkout -f 290c04ba80751507b3ce48d279839470920a6488 > git rev-list ccf35d318667aaba7b9d8b8994bad8a103458beb # timeout=10 > git remote # timeout=10 > git submodule init # timeout=10 > git submodule sync # timeout=10 > git config --get remote.origin.url # timeout=10 > git submodule update --init --recursiveTriggering pull-request-analyser-ng-simple » vm-slave-02pull-request-analyser-ng-simple » vm-slave-02 completed with result FAILUREStarted calculate disk usage of buildFinished Calculation of disk usage of build in 0 secondsStarted calculate disk usage of workspaceFinished Calculation of disk usage of workspace in 2 second
💣 Test FAILed. 💣

@ghost
Copy link

ghost commented Nov 7, 2014

💣 Test FAILed. 💣
Refer to this link for build results (access rights to CI server needed):
https://ci.owncloud.org//job/pull-request-analyser-ng-simple/2358/

Build result: FAILURE

[...truncated 12 lines...]Cleaning workspace > git rev-parse --verify HEAD # timeout=10No valid HEAD. Skipping the resetting > git clean -fdx # timeout=10Fetching upstream changes from https://github.com/owncloud/core.git > git fetch --tags --progress https://github.com/owncloud/core.git +refs/pull/:refs/remotes/origin/pr/ > git rev-parse origin/pr/11992/merge^{commit} # timeout=10Checking out Revision 290c04ba80751507b3ce48d279839470920a6488 (detached) > git config core.sparsecheckout # timeout=10 > git checkout -f 290c04ba80751507b3ce48d279839470920a6488 > git rev-list 9d375d1b5409f38c44a8df8d23eb88228cd956fc # timeout=10warning: inexact rename detection was skipped due to too many files.warning: you may want to set your diff.renameLimit variable to at least 1986 and retry the command. > git remote # timeout=10 > git submodule init # timeout=10 > git submodule sync # timeout=10 > git config --get remote.origin.url # timeout=10 > git submodule update --init --recursiveTriggering pull-request-analyser-ng-simple » vm-slave-02pull-request-analyser-ng-simple » vm-slave-02 completed with result FAILUREStarted calculate disk usage of buildFinished Calculation of disk usage of build in 0 secondsStarted calculate disk usage of workspaceFinished Calculation of disk usage of workspace in 3 second
💣 Test FAILed. 💣

@craigpg
Copy link

craigpg commented Nov 7, 2014

👍 see my testing results here: #11869

@icewind1991
Copy link
Contributor

See #11994 (comment)

@icewind1991
Copy link
Contributor

👍

@PVince81
Copy link
Contributor Author

PVince81 commented Nov 7, 2014

@owncloud-bot retest this please

@ghost
Copy link

ghost commented Nov 7, 2014

💣 Test FAILed. 💣
Refer to this link for build results (access rights to CI server needed):
https://ci.owncloud.org//job/pull-request-analyser-ng-simple/2375/

Build result: FAILURE

[...truncated 11 lines...] > git config remote.origin.url https://github.com/owncloud/core.git # timeout=10Cleaning workspace > git rev-parse --verify HEAD # timeout=10No valid HEAD. Skipping the resetting > git clean -fdx # timeout=10Fetching upstream changes from https://github.com/owncloud/core.git > git fetch --tags --progress https://github.com/owncloud/core.git +refs/pull/:refs/remotes/origin/pr/ > git rev-parse origin/pr/11992/merge^{commit} # timeout=10Checking out Revision 87d9449e7222da14f3a5798255e083f9b4df4f20 (detached) > git config core.sparsecheckout # timeout=10 > git checkout -f 87d9449e7222da14f3a5798255e083f9b4df4f20 > git rev-list 9d375d1b5409f38c44a8df8d23eb88228cd956fc # timeout=10First time build. Skipping changelog. > git remote # timeout=10 > git submodule init # timeout=10 > git submodule sync # timeout=10 > git config --get remote.origin.url # timeout=10 > git submodule update --init --recursiveTriggering pull-request-analyser-ng-simple » vm-slave-02pull-request-analyser-ng-simple » vm-slave-02 completed with result FAILUREStarted calculate disk usage of buildFinished Calculation of disk usage of build in 0 secondsStarted calculate disk usage of workspaceFinished Calculation of disk usage of workspace in 2 second
💣 Test FAILed. 💣

@PVince81
Copy link
Contributor Author

PVince81 commented Nov 7, 2014

What a weird state... will rebase on master and hope it fixes it.

Convert \OCP\Files\StorageNotAvailableException to
\Sabre\DAV\Exception\ServiceUnavailable for every file/directory
operation happening inside of SabreDAV.

This is necessary to avoid having the exception bubble up to remote.php
which would return an exception page instead of an appropriate response.
@PVince81 PVince81 force-pushed the sabre-convertstoragenotavailableexception branch from 7ca7493 to 20da1e9 Compare November 7, 2014 15:26
@ghost
Copy link

ghost commented Nov 7, 2014

💣 Test FAILed. 💣
Refer to this link for build results (access rights to CI server needed):
https://ci.owncloud.org//job/pull-request-analyser-ng-simple/2387/
💣 Test FAILed. 💣

@PVince81
Copy link
Contributor Author

PVince81 commented Nov 7, 2014

@owncloud-bot retest this please

@ghost
Copy link

ghost commented Nov 7, 2014

💣 Test FAILed. 💣
Refer to this link for build results (access rights to CI server needed):
https://ci.owncloud.org//job/pull-request-analyser-ng-simple/2388/

Build result: FAILURE

[...truncated 11 lines...] > git config remote.origin.url https://github.com/owncloud/core.git # timeout=10Cleaning workspace > git rev-parse --verify HEAD # timeout=10No valid HEAD. Skipping the resetting > git clean -fdx # timeout=10Fetching upstream changes from https://github.com/owncloud/core.git > git fetch --tags --progress https://github.com/owncloud/core.git +refs/pull/:refs/remotes/origin/pr/ > git rev-parse origin/pr/11992/merge^{commit} # timeout=10Checking out Revision d5fe0a02e1ec797a3fff4685675ba42810f18848 (detached) > git config core.sparsecheckout # timeout=10 > git checkout -f d5fe0a02e1ec797a3fff4685675ba42810f18848 > git rev-list d85a410e7e9e6f9a8702f1f708898242df4efab1 # timeout=10First time build. Skipping changelog. > git remote # timeout=10 > git submodule init # timeout=10 > git submodule sync # timeout=10 > git config --get remote.origin.url # timeout=10 > git submodule update --init --recursiveTriggering pull-request-analyser-ng-simple » vm-slave-02pull-request-analyser-ng-simple » vm-slave-02 completed with result FAILUREStarted calculate disk usage of buildFinished Calculation of disk usage of build in 0 secondsStarted calculate disk usage of workspaceFinished Calculation of disk usage of workspace in 2 second
💣 Test FAILed. 💣

@PVince81
Copy link
Contributor Author

PVince81 commented Nov 7, 2014

hudson.plugins.git.GitException: Could not checkout null with start point d85a410e7e9e6f9a8702f1f708898242df4efab1

@DeepDiver1975 is that one of Jenkins' known illnesses ? Or should I restart until it works ?

@scrutinizer-notifier
Copy link

The inspection completed: 2 new issues, 4 updated code elements

@PVince81
Copy link
Contributor Author

@owncloud-bot retest this please

@ghost
Copy link

ghost commented Nov 10, 2014

💣 Test FAILed. 💣
Refer to this link for build results (access rights to CI server needed):
https://ci.owncloud.org//job/pull-request-analyser-ng-simple/2415/

Build result: FAILURE

[...truncated 11 lines...] > git config remote.origin.url https://github.com/owncloud/core.git # timeout=10Cleaning workspace > git rev-parse --verify HEAD # timeout=10No valid HEAD. Skipping the resetting > git clean -fdx # timeout=10Fetching upstream changes from https://github.com/owncloud/core.git > git fetch --tags --progress https://github.com/owncloud/core.git +refs/pull/:refs/remotes/origin/pr/ > git rev-parse origin/pr/11992/merge^{commit} # timeout=10Checking out Revision 6bd74b1 (detached) > git config core.sparsecheckout # timeout=10 > git checkout -f 6bd74b1 > git rev-list 22bf69d11be01a93d98b15d6529328073294d107 # timeout=10First time build. Skipping changelog. > git remote # timeout=10 > git submodule init # timeout=10 > git submodule sync # timeout=10 > git config --get remote.origin.url # timeout=10 > git submodule update --init --recursiveTriggering pull-request-analyser-ng-simple » vm-slave-02pull-request-analyser-ng-simple » vm-slave-02 completed with result FAILUREStarted calculate disk usage of buildFinished Calculation of disk usage of build in 0 secondsStarted calculate disk usage of workspaceFinished Calculation of disk usage of workspace in 3 second
💣 Test FAILed. 💣

@PVince81
Copy link
Contributor Author

I'll try making a new PR for that...

@PVince81
Copy link
Contributor Author

Here's the new PR: #12072

@PVince81 PVince81 deleted the sabre-convertstoragenotavailableexception branch November 10, 2014 11:02
@lock lock bot locked as resolved and limited conversation to collaborators Aug 15, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants