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

Storage 503 message improvements #26145

Merged
merged 2 commits into from
Oct 5, 2016
Merged

Conversation

PVince81
Copy link
Contributor

@PVince81 PVince81 commented Sep 19, 2016

Description

"Storage not available" is now "Storage temporarily not available".
Exceptions are now logged in DEBUG level, not FATAL.

Related Issue

For #25854 (comment)

Motivation and Context

See #25854 (comment)

How Has This Been Tested?

Setup a federated share.
Set the source share server to maintenance mode.
Try accessing the received federated share.

  • TEST: Check the log that the log level is DEBUG for StorageNotAvailableException
  • TEST: UI message says "Storage is temporarily not available" now
  • TEST: Webdav response message also says says "Storage is temporarily not available"

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@owncloud/filesystem @mmattel

@PVince81
Copy link
Contributor Author

Hmm, it still logs a fatal, checking...

@butonic
Copy link
Member

butonic commented Sep 19, 2016

hm, the smb storage throws StorageNotAvailableExceptions all over the place: https://github.com/owncloud/core/blob/master/apps/files_external/lib/Lib/Storage/SMB.php#L47

@PVince81
Copy link
Contributor Author

@butonic hmm, indeed. Not sure if the message "Storage temporarily available" is adequate in these case. If we do want it, maybe need to rethrow another StorageNotAvailableException and wrap the SMB one in "$previous".

@PVince81
Copy link
Contributor Author

this change here was in the context of unavailable federated shares

Vincent Petry added 2 commits September 29, 2016 09:21
"Storage not available" is now "Storage temporarily not available".
Exceptions are now logged in DEBUG level, not FATAL.
@DeepDiver1975 DeepDiver1975 force-pushed the storage-503-bettermessage-debuglog branch from 018dcad to 8106f71 Compare September 29, 2016 07:22
@PVince81
Copy link
Contributor Author

PVince81 commented Oct 5, 2016

Can we still merge this even if it cannot cover all possible cases ?

@mmattel
Copy link
Contributor

mmattel commented Oct 5, 2016

For me ok, agreed - better this than nothing 👍

@PVince81 PVince81 merged commit e313417 into master Oct 5, 2016
@PVince81 PVince81 deleted the storage-503-bettermessage-debuglog branch October 5, 2016 12:14
@guruz
Copy link
Contributor

guruz commented Oct 6, 2016

In the client we have

src/libsync/discoveryphase.cpp:        if (reason == "Storage not available") {

Will adjust..

@lock
Copy link

lock bot commented Aug 4, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Aug 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants