Skip to content

Dont hide exceptions master - #15489

Merged
DeepDiver1975 merged 10 commits into
masterfrom
dont_hide_exceptions_master
Apr 10, 2015
Merged

DeepDiver1975 merged 10 commits into
masterfrom
dont_hide_exceptions_master

Conversation

@butonic

@butonic butonic commented Apr 8, 2015

Copy link
Copy Markdown
Contributor

forward port of #15332 to master @MorrisJobke @DeepDiver1975

@karlitschek

Copy link
Copy Markdown
Contributor

👍

@butonic

butonic commented Apr 8, 2015

Copy link
Copy Markdown
Contributor Author

I need to work with Jenkins here. Locally, my tests fail because of all the installed apps.

@butonic

butonic commented Apr 8, 2015

Copy link
Copy Markdown
Contributor Author

ccing @PVince81 as he did much the same with #13862

Comment thread apps/user_ldap/lib/connection.php Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment is weird

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not invented here, feel free to change it. @blizzz any idea

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

better now?

@MorrisJobke MorrisJobke added this to the 8.1-current milestone Apr 8, 2015
@butonic

butonic commented Apr 9, 2015

Copy link
Copy Markdown
Contributor Author

@MorrisJobke oh great, jenkins is hiccuping again

@butonic

butonic commented Apr 9, 2015

Copy link
Copy Markdown
Contributor Author

@blizzz could you check I did not misinterpret the user_ldap tests?

Comment thread apps/user_ldap/tests/user_ldap.php Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wording not consistent with previous test method

@blizzz

blizzz commented Apr 9, 2015

Copy link
Copy Markdown
Contributor

@butonic test changes look good

UPDATE: except see later comments

Comment thread apps/user_ldap/tests/user/manager.php Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

absolutely no assertion?

@butonic
butonic force-pushed the dont_hide_exceptions_master branch from 2561cbc to 62a5697 Compare April 9, 2015 17:45
@butonic

butonic commented Apr 9, 2015

Copy link
Copy Markdown
Contributor Author

@blizzz updated

@MorrisJobke
MorrisJobke force-pushed the dont_hide_exceptions_master branch from 3a70bde to fafecd1 Compare April 10, 2015 09:08
@blizzz

blizzz commented Apr 10, 2015

Copy link
Copy Markdown
Contributor

@butonic LDAP tests run fine for me locally

@MorrisJobke

Copy link
Copy Markdown
Contributor

I will test again ... then this is ready for merge

@MorrisJobke

Copy link
Copy Markdown
Contributor

Still works 👍

@ghost

ghost commented Apr 10, 2015

Copy link
Copy Markdown

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

@MorrisJobke

Copy link
Copy Markdown
Contributor

@blizzz Can you have a look? Especially regarding the new wizard ;)

@blizzz

blizzz commented Apr 10, 2015

Copy link
Copy Markdown
Contributor

@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.

Comment thread lib/private/hook.php Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd throw ServerNotAvailableException in any case - not only for OC_Filesystem::setup

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd use ServerNotAvailableException as a general purpose bail out mechanism

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay :)

@scrutinizer-notifier

Copy link
Copy Markdown

A new inspection was created.

@ghost

ghost commented Apr 10, 2015

Copy link
Copy Markdown

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

@DeepDiver1975

Copy link
Copy Markdown
Contributor

👍

DeepDiver1975 added a commit that referenced this pull request Apr 10, 2015
@DeepDiver1975
DeepDiver1975 merged commit 7b2d536 into master Apr 10, 2015
@DeepDiver1975
DeepDiver1975 deleted the dont_hide_exceptions_master branch April 10, 2015 13:49
@MorrisJobke

Copy link
Copy Markdown
Contributor

@butonic Can you create a backport PR for stable8? Thanks

@MorrisJobke

Copy link
Copy Markdown
Contributor

Backport is in #15797

@lock lock Bot locked as resolved and limited conversation to collaborators Aug 12, 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.

6 participants