core icon indicating copy to clipboard operation
core copied to clipboard

Display Name shows UUID after displaying 30 ldap users

Open tedwardd opened this issue 13 years ago • 13 comments

I believe this was filed and closed as fixed but I would like to make it known that I have a new install of 5.0.0 which is still displaying this behavior. @blizzz mentioned both via IRC and in an issue HERE that this seems to be an issue with the JS. Was the merge that occurred in issue 1681 included in the 5.0.0 release or will it be available in a later, possibly 5.0.1, release?

tedwardd avatar Mar 19 '13 18:03 tedwardd

The patch is in stable5 branch 2268596e1a3cb305bc3092394e59d5fdc72f0c1b @blizzz you have any idea?

tanghus avatar Mar 19 '13 18:03 tanghus

Browser cache?

blizzz avatar Mar 19 '13 18:03 blizzz

For the record, I am showing this behavior on two different workstations in regular and private browsing mode for both Firefox 19.0.2 and Chrome 25.0.126.172.

tedwardd avatar Mar 20 '13 14:03 tedwardd

@k4k did you configure one or more LDAP server connections?

blizzz avatar Mar 20 '13 16:03 blizzz

I have only one primary configured and one backup configured. Please see the screenshots below for more information (sensitive information redacted) OC-ldap-basic OC-ldap-advanced

tedwardd avatar Mar 20 '13 18:03 tedwardd

Updating with information as requested by template (sorry, I just learned this existed. Will report in this manner in the future).

Expected behaviour

As you scroll down the user list, all users should have "Display Name" showing as "Last, First MI."

Actual behaviour

The first 30 LDAP users show in the proper manner and then, starting with user 31, Display Name is populated with a string that looks similar to "C96882E3-58D5-XXXX-XXXX-FDE9FE0E1B39" which is the content of the directory_uuid and owncloud_name according to entries oc_ldap_user_mapping.

Steps to reproduce

  1. Configure owncloud to authenticate to an LDAP server that has more than 30 users
  2. Click on "Users" button from the top-right drop down menu
  3. Scroll down past the 30th user

Server configuration

Operating system: Red Hat Enterprise Linux Server release 6.3 (Santiago)

Web server: httpd-2.2.15-26.el6.x86_64

Database: mysql-server-5.1.67-1.el6_3.x86_64

PHP version: php-5.3.3-22.el6.x86_64

ownCloud version: 5.0.0

Client configuration

Browser: Firefox 19, Chrome 23, Chrome 25

Operating system: Fedora 17, Ubuntu 12.04, Ubuntu 12.10, OSX 10.8.3, Windows 7

Logs

Web server error log

Web server has been logging in debug and has generated about 12GB of a log file over the last week. I can look for and provide specific information if requested but whole file is too large to upload.

ownCloud log (data/owncloud.log)

Log mainly contains this error, there are several hundred entries per "time" stamp (IE: "time":1363874724)

{"app":"PHP","message":"Undefined variable: collectionTypes at \/var\/www\/owncloud\/lib\/public\/share.php#918","level":2,"time":1363874724}
{"app":"PHP","message":"Undefined variable: collectionTypes at \/var\/www\/owncloud\/lib\/public\/share.php#918","level":2,"time":1363874724}
{"app":"PHP","message":"Undefined variable: collectionTypes at \/var\/www\/owncloud\/lib\/public\/share.php#918","level":2,"time":1363874724}
{"app":"PHP","message":"Undefined variable: collectionTypes at \/var\/www\/owncloud\/lib\/public\/share.php#918","level":2,"time":1363874724}
{"app":"PHP","message":"Undefined variable: collectionTypes at \/var\/www\/owncloud\/lib\/public\/share.php#918","level":2,"time":1363874724}
{"app":"PHP","message":"Undefined variable: collectionTypes at \/var\/www\/owncloud\/lib\/public\/share.php#918","level":2,"time":1363874724}
{"app":"PHP","message":"Undefined variable: collectionTypes at \/var\/www\/owncloud\/lib\/public\/share.php#918","level":2,"time":1363874724}
{"app":"PHP","message":"Undefined variable: collectionTypes at \/var\/www\/owncloud\/lib\/public\/share.php#918","level":2,"time":1363874724}
{"app":"PHP","message":"Undefined variable: collectionTypes at \/var\/www\/owncloud\/lib\/public\/share.php#918","level":2,"time":1363874724}
{"app":"PHP","message":"Undefined variable: collectionTypes at \/var\/www\/owncloud\/lib\/public\/share.php#918","level":2,"time":1363874724}
{"app":"PHP","message":"Undefined variable: collectionTypes at \/var\/www\/owncloud\/lib\/public\/share.php#918","level":2,"time":1363874724}
{"app":"PHP","message":"Undefined variable: collectionTypes at \/var\/www\/owncloud\/lib\/public\/share.php#918","level":2,"time":1363874724}
{"app":"PHP","message":"Undefined variable: collectionTypes at \/var\/www\/owncloud\/lib\/public\/share.php#918","level":2,"time":1363874724}
{"app":"PHP","message":"Undefined variable: collectionTypes at \/var\/www\/owncloud\/lib\/public\/share.php#918","level":2,"time":1363874724}
{"app":"PHP","message":"Undefined variable: collectionTypes at \/var\/www\/owncloud\/lib\/public\/share.php#918","level":2,"time":1363874724}
{"app":"PHP","message":"Undefined variable: collectionTypes at \/var\/www\/owncloud\/lib\/public\/share.php#918","level":2,"time":1363874724}
{"app":"PHP","message":"Undefined variable: collectionTypes at \/var\/www\/owncloud\/lib\/public\/share.php#918","level":2,"time":1363874724}
{"app":"PHP","message":"Undefined variable: collectionTypes at \/var\/www\/owncloud\/lib\/public\/share.php#918","level":2,"time":1363874724}
{"app":"PHP","message":"Undefined variable: collectionTypes at \/var\/www\/owncloud\/lib\/public\/share.php#918","level":2,"time":1363874724}
{"app":"PHP","message":"Undefined variable: collectionTypes at \/var\/www\/owncloud\/lib\/public\/share.php#918","level":2,"time":1363874724}
{"app":"PHP","message":"Undefined variable: collectionTypes at \/var\/www\/owncloud\/lib\/public\/share.php#918","level":2,"time":1363874724}
{"app":"PHP","message":"Undefined variable: collectionTypes at \/var\/www\/owncloud\/lib\/public\/share.php#918","level":2,"time":1363874724}
{"app":"PHP","message":"Undefined variable: collectionTypes at \/var\/www\/owncloud\/lib\/public\/share.php#918","level":2,"time":1363874724}

Browser log

user_list_ajax-2459

tedwardd avatar Mar 21 '13 15:03 tedwardd

I cannot reproduce the PHP messages, but I could reproduce the behaviour, which ought to be fixed with https://github.com/owncloud/core/pull/2593

blizzz avatar Mar 27 '13 21:03 blizzz

Actually, the notices ain't be thrown on the Users page, Sharing is uninvolved there.

blizzz avatar Mar 27 '13 21:03 blizzz

@blizzz I would like to add that when using the ldap users backend, the loginname still shows the UUID of the user instead of a readable name in Admin -> users. The displayname is actually correct (this was fixed in 5.0 > 5.0.2).

I am using a Windows 2003 SBS server with the sAMAccountname attribute as uid.

Internal ownCloud-users are displayed with the correct loginname.

Logging in using the textual loginname actually works, also with the webclient service in Windows.

If i can do any more digging or if you need more information, please let me know.

Regarding the server:

Web server: Apache/2.2.22 (Linux/SUSE)

Database: MySQL 5.5.28 - Source distribution

PHP version: 5.3.15 (with APC)

ownCloud version: 5.0.2 with the fscache missing table patch applied from GitHub

Webbrowser: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20100101 Firefox/12.0

hcderaad avatar Apr 03 '13 19:04 hcderaad

@blizzz This appears to be resolved as of 5.0.3, cheers

tedwardd avatar Apr 03 '13 20:04 tedwardd

@k4k glad it's fixed for you.

blizzz avatar Apr 03 '13 22:04 blizzz

@hcderaad it is intended behaviour.loginname == ownCloud-internal username.

blizzz avatar Apr 03 '13 22:04 blizzz

Thanks for fix

piotr58 avatar Jan 04 '14 12:01 piotr58