Open minneyar opened 8 years ago
cc @tomneedham
I did try to output shareWithDisplayName instead of shareWith in the app.js file but to no help, its probably set to owncloud_name.
It looks like there are more changes needed, the apps probably needs to use OCP\IUsermanager
Sincerly, Klaus
I've been testing with this patch. It's not complete fix, but a start.
--- cur/apps/calendar/js/public/app.js 2016-07-06 12:45:16.669998144 -0500
+++ new/apps/calendar/js/public/app.js 2016-07-06 12:55:30.397998144 -0500
@@ -621,7 +621,7 @@
// Combine users and groups
users = users.map(function(item){
return {
- display: item.value.shareWith,
+ display: item.label,
type: OC.Share.SHARE_TYPE_USER,
identifier: item.value.shareWith
};
Steps to reproduce
Internally, OwnCloud creates UUIDs for LDAP users that it uses as their username. There is a separate display name that is used whenever the user's name should be displayed in the GUI. It seems that LDAP users are being displayed as their UUID instead of display name.
Expected behaviour
User's display names should be displayed in the auto-complete list when sharing a calendar.
Actual behaviour
User's internal UUIDs appear in the list. After sharing a calendar with a user, their UUID appears in the list of peoples whom the calendar has been shared with.
Server configuration
Operating system: Ubuntu Linux 14.04 Web server: Apache 2.4.7 Database: MySQL 5.6.28 PHP version: 5.5.9 ownCloud version: 9.0.0 Calendar version: 1.0.0 Updated from an older ownCloud or fresh install: Updated Signing status (ownCloud 9.0 and above):
List of activated apps:
The content of config/config.php:
Are you using external storage, if yes which one: no
Are you using encryption: no
Are you using an external user-backend, if yes which one: LDAP
LDAP configuration (delete this part if not used)
Client configuration
Browser: Chrome 49 Operating system: Linux Mint 17.3 CalDAV-clients: n/a
Logs
Web server error log
ownCloud log (data/owncloud.log)