Skip to content

throw exception when LDAP Connection was lost - #15811

Merged
DeepDiver1975 merged 3 commits into
masterfrom
exception-on-lost-ldap-connection
May 15, 2015
Merged

DeepDiver1975 merged 3 commits into
masterfrom
exception-on-lost-ldap-connection

Conversation

@blizzz

@blizzz blizzz commented Apr 22, 2015

Copy link
Copy Markdown
Contributor

Addition to #15489 (it's included in the stable7 and stable8 based PRs).

How to test: #15332 (comment)

@butonic @MorrisJobke @DeepDiver1975

@karlitschek

Copy link
Copy Markdown
Contributor

makes sense 👍

@MorrisJobke MorrisJobke added this to the 8.1-current milestone Apr 22, 2015
@DeepDiver1975

Copy link
Copy Markdown
Contributor

unit test? @blizzz thx

@blizzz

blizzz commented Apr 24, 2015

Copy link
Copy Markdown
Contributor Author

@DeepDiver1975 nada unit, integration test only. Let me script one.

@blizzz

blizzz commented Apr 24, 2015

Copy link
Copy Markdown
Contributor Author
$ sudo -u www-data php -f apps/user_ldap/tests/integration/exceptionOnLostConnection.php 
Test PASSED

returns "Test FAILED" with the other commit. Needs toxiproxy, but it's pretty straightforward to set up.

@DeepDiver1975 happy?

@blizzz

blizzz commented Apr 24, 2015

Copy link
Copy Markdown
Contributor Author

jenkins hiccup…

@MorrisJobke

Copy link
Copy Markdown
Contributor

@owncloud-bot retest this please

@blizzz

blizzz commented Apr 26, 2015

Copy link
Copy Markdown
Contributor Author

master does not run for me at all locally, quits with error code 1. did investigate it further.

@blizzz

blizzz commented Apr 26, 2015

Copy link
Copy Markdown
Contributor Author

did not ... (cannot edit posts in mobile view)

@DeepDiver1975

Copy link
Copy Markdown
Contributor

@owncloud-bot retest this please

@ghost

ghost commented May 12, 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/12296/

Build result: FAILURE

[...truncated 13 lines...] > git config --local --remove-section credential # timeout=10 > git config remote.origin.url https://github.com/owncloud/core.git # timeout=10 > git config --add remote.origin.fetch +refs/heads/:refs/remotes/origin/ # timeout=10 > git config remote.origin.url https://github.com/owncloud/core.git # timeout=10Fetching upstream changes from https://github.com/owncloud/core.gitusing GIT_SSH to set credentials using .gitcredentials to set credentials > git config --local credential.helper store --file=/tmp/git932722377654651912.credentials # timeout=10 > git -c core.askpass=true fetch --tags --progress https://github.com/owncloud/core.git +refs/pull/:refs/remotes/origin/pr/ > git config --local --remove-section credential # timeout=10 > git rev-parse refs/remotes/origin/pr/15811/merge^{commit} # timeout=10 > git rev-parse refs/remotes/origin/origin/pr/15811/merge^{commit} # timeout=10Checking out Revision e8263a52751239a18cab945c923514695dee7709 (refs/remotes/origin/pr/15811/merge) > git config core.sparsecheckout # timeout=10 > git checkout -f e8263a52751239a18cab945c923514695dee7709First 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 » SLAVEpull-request-analyser-ng-simple » SLAVE completed with result FAILURESetting status of 9b6a988 to FAILURE with url https://ci.owncloud.org/job/pull-request-analyser-ng-simple/12296/ and message: Build finished.
💣 Test FAILed. 💣

nooo432

@DeepDiver1975

Copy link
Copy Markdown
Contributor

Hmm ... looks like jenkins wants to execute the integration tests ....

08:10:42 PHP Fatal error:  Uncaught exception 'Exception' with message 'Failed to connect to localhost port 8474: Connection refused' in /var/jenkins/workspace/pull-request-analyser-ng-simple/label/SLAVE/apps/user_ldap/tests/integration/exceptionOnLostConnection.php:151
08:10:42 Stack trace:
08:10:42 #0 /var/jenkins/workspace/pull-request-analyser-ng-simple/label/SLAVE/apps/user_ldap/tests/integration/exceptionOnLostConnection.php(97): ExceptionOnLostConnection->checkCurlResult(Resource id #690, false)
08:10:42 #1 /var/jenkins/workspace/pull-request-analyser-ng-simple/label/SLAVE/apps/user_ldap/tests/integration/exceptionOnLostConnection.php(74): ExceptionOnLostConnection->setUp()
08:10:42 #2 /var/jenkins/workspace/pull-request-analyser-ng-simple/label/SLAVE/apps/user_ldap/tests/integration/exceptionOnLostConnection.php(190): ExceptionOnLostConnection->__construct('http://localhos...', 'ldap', 'dc=owncloud,dc=...')
08:10:42 #3 /var/jenkins/workspace/pull-request-analyser-ng-simple/label/SLAVE/tests/apps.php(17): require_once('/var/jenkins/wo...')
08:10:42 #4 /var/jenkins/workspace/pull-re in /var/jenkins/workspace/pull-request-analyser-ng-simple/label/SLAVE/apps/user_ldap/tests/integration/exceptionOnLostConnection.php on line 151
08:10:42 Build step 'Execute shell' marked build as failure
08:10:43 Recording test results
08:10:44 ERROR: Publisher 'Publish JUnit test result report' failed: No test report files were found. Configuration error?
08:10:44 Setting commit status on GitHub for https://github.com/owncloud/core/commit/e8263a52751239a18cab945c923514695dee7709

@DeepDiver1975

Copy link
Copy Markdown
Contributor

@blizzz

@scrutinizer-notifier

Copy link
Copy Markdown

A new inspection was created.

@ghost

ghost commented May 15, 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/12356/
🚀 Test PASSed.🚀
chuck

@DeepDiver1975

Copy link
Copy Markdown
Contributor

👍

DeepDiver1975 added a commit that referenced this pull request May 15, 2015
…tion

throw exception when LDAP Connection was lost
@DeepDiver1975
DeepDiver1975 merged commit 8e61ad0 into master May 15, 2015
@DeepDiver1975
DeepDiver1975 deleted the exception-on-lost-ldap-connection branch May 15, 2015 15:32
mmattel pushed a commit to mmattel/core that referenced this pull request May 22, 2015
…p-connection

throw exception when LDAP Connection was lost
@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.

5 participants