Skip to content

Conversation

@LukasReschke
Copy link
Member

@LukasReschke LukasReschke commented Jul 31, 2017

There seems to be a bug here, let's try to track it down with integration tests.

Fixes #119, fixes #125

Signed-off-by: Lukas Reschke [email protected]

@LukasReschke
Copy link
Member Author

LukasReschke commented Jul 31, 2017

# FeatureContext::thUserValueShouldBe()
And The user value "display-name" should be "Default displayname of student1" 
# FeatureContext::thUserValueShouldBe()
Expected Default displayname of student1 as value but got student1 (UnexpectedValueException)

@codecov
Copy link

codecov bot commented Jul 31, 2017

Codecov Report

Merging #137 into master will increase coverage by 0.06%.
The diff coverage is 0%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #137      +/-   ##
============================================
+ Coverage     33.67%   33.74%   +0.06%     
+ Complexity      123      121       -2     
============================================
  Files            10       10              
  Lines           490      489       -1     
============================================
  Hits            165      165              
+ Misses          325      324       -1
Impacted Files Coverage Δ Complexity Δ
lib/UserBackend.php 4.34% <0%> (ø) 59 <0> (?)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 740ebb4...4691870. Read the comment docs.

LukasReschke added a commit to nextcloud/server that referenced this pull request Jul 31, 2017
This code is a leftover from the old Shibboleth implementation from ownCloud days, nowadays it causes more issues than it does good (such as nextcloud/user_saml#137). Let's remove it for the future thus.

Signed-off-by: Lukas Reschke <[email protected]>
`\OC_User::loginWithApache` sets the display name otherwise to the login name which is wrong.

Signed-off-by: Lukas Reschke <[email protected]>
Signed-off-by: Lukas Reschke <[email protected]>
@LukasReschke LukasReschke force-pushed the add-test-for-testing-displayname-2 branch from c13c09e to a5a406f Compare July 31, 2017 14:31
Otherwise users can change their display name and email address which is in a SAML scenario undesired.

Signed-off-by: Lukas Reschke <[email protected]>
@LukasReschke LukasReschke changed the title [WIP] Add test for ensuring keeping of displayname Add test for ensuring keeping of displayname Jul 31, 2017
@LukasReschke LukasReschke merged commit 688c32a into master Jul 31, 2017
@LukasReschke LukasReschke deleted the add-test-for-testing-displayname-2 branch July 31, 2017 15:17
@LukasReschke
Copy link
Member Author

Sent to owner of affected instance and awaiting feedback.

@MorrisJobke
Copy link
Member

This array index reminds me of another PR or was this in user_saml? 🤔

@MorrisJobke
Copy link
Member

This array index reminds me of another PR or was this in user_saml? 🤔

https://github.com/nextcloud/user_saml/pull/132/files?w=1

Sign up for free to 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.

SAML provisioned users don't see "Full Name" after login Displayname / Full Name not displayed / searchable

3 participants