Repository navigation
Dont hide exceptions master - #15489
Conversation
|
👍 |
|
I need to work with Jenkins here. Locally, my tests fail because of all the installed apps. |
There was a problem hiding this comment.
not invented here, feel free to change it. @blizzz any idea
There was a problem hiding this comment.
the comment refers to https://github.com/owncloud/core/blob/dont_hide_exceptions_master/apps/user_ldap/lib/connection.php#L39 ff. No doubt, it is misplaced.
|
@MorrisJobke oh great, jenkins is hiccuping again |
|
@blizzz could you check I did not misinterpret the user_ldap tests? |
There was a problem hiding this comment.
wording not consistent with previous test method
|
@butonic test changes look good UPDATE: except see later comments |
2561cbc to
62a5697
Compare
|
@blizzz updated |
Conflicts: core/templates/login.php lib/base.php
…g legacy local storages
Conflicts: apps/files_encryption/lib/util.php apps/files_encryption/tests/hooks.php
62a5697 to
3a70bde
Compare
3a70bde to
fafecd1
Compare
|
@butonic LDAP tests run fine for me locally |
|
I will test again ... then this is ready for merge |
|
Still works 👍 |
|
Refer to this link for build results (access rights to CI server needed): |
|
@blizzz Can you have a look? Especially regarding the new wizard ;) |
|
@MorrisJobke with the wizard, if an action requires the LDAP server but connection fails, a corresponding error message is shown. Fortunately, the wizard end point always reported exceptions back as error. However, the wizard does not make use of any method in user_ldap.php or the manager. It uses lib/access, lib/connection and lib/configuration. I.e. the exception thrown in connection is dealt with properly. |
There was a problem hiding this comment.
I'd throw ServerNotAvailableException in any case - not only for OC_Filesystem::setup
There was a problem hiding this comment.
We just limited this to that specifc hook, because we don't know what else relies on this and throwing an undocumented error through a public emited hook doesn't sound that good and could cause more trouble. But I'm open for this in master (for the backports I would like to keep it in this way)
There was a problem hiding this comment.
I'd use ServerNotAvailableException as a general purpose bail out mechanism
|
A new inspection was created. |
|
Refer to this link for build results (access rights to CI server needed): |
|
👍 |
Dont hide exceptions master
|
@butonic Can you create a backport PR for stable8? Thanks |
|
Backport is in #15797 |

forward port of #15332 to master @MorrisJobke @DeepDiver1975