Skip to content

do not catch and ignore ServerNotAvailable in the wrong spot - #8069

Merged
MorrisJobke merged 1 commit into
masterfrom
no-catch-serverdown
Jan 26, 2018
Merged

do not catch and ignore ServerNotAvailable in the wrong spot#8069
MorrisJobke merged 1 commit into
masterfrom
no-catch-serverdown

Conversation

@blizzz

Copy link
Copy Markdown
Member

I am not aware this ever happened, but it does not need to.

Scenario: user exists check: when the LDAP server goes offline in the right moment, the user will be set as non-existing (for as long as cache lives), because any Exceptions was caught and ignored. We make sure to pass on ServerNotAvailable now.

might cause the user to be unavailable (race condition).
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>

@rullzerrullzer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

makes sense!

@codecov

codecovBot commented Jan 26, 2018

Copy link
Copy Markdown

Codecov Report

Merging #8069 into master will increase coverage by <.01%.
The diff coverage is 50%.

@@ Coverage Diff @@## master #8069 +/- ##
============================================
+ Coverage 51.7% 51.71% +<.01% - Complexity 25456 25457 +1 
============================================
Files 1599 1599 Lines 95275 95277 +2 Branches 1376 1376 ============================================
+ Hits 49266 49268 +2 
Misses 46009 46009
Impacted FilesCoverage ΔComplexity Δ
apps/user_ldap/lib/Access.php35.77% <ø> (ø)321 <0> (ø)⬇️
apps/user_ldap/lib/User_LDAP.php77.61% <50%> (-0.59%)84 <0> (+1)
apps/files_trashbin/lib/Trashbin.php72.53% <0%> (+0.24%)136% <0%> (ø)⬇️
lib/private/Files/Cache/Propagator.php96.2% <0%> (+1.26%)16% <0%> (ø)⬇️

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@blizzz@rullzer@MorrisJobke