polls icon indicating copy to clipboard operation
polls copied to clipboard

Cannot share poll with ldap users

Open Mer0me opened this issue 2 years ago • 7 comments

⚠️ This issue respects the following points: ⚠️

  • [X] This is a bug, not a question or a configuration/webserver/proxy issue.
  • [X] This issue is not already reported on Github (I've searched it).
  • [X] I agree to follow Nextcloud's Code of Conduct.

What went wrong, what did you observe?

When I try to share a poll with a ldap user, the list box is empty, and typing some letters doesn't show any username. On another instance of Nextcloud (same version of NC and Polls app) with only regular user (not ldap), the share dropdown list is showing correctly other users of the instance.

What did you expect, how polls should behave instead?

Polls should propose the list of other users of the instance.

What steps does it need to replay this bug?

  1. Create a poll
  2. Try to share the poll with a ldap user

Installation method

Installed/updated from the appstore (Apps section of your site)

Installation type

Updated from a minor version within same major version (i.e. 4.0.0 to 4.1.1)

Which browser did you use, when experiencing the bug?

  • [X] Firefox
  • [X] Chrome
  • [ ] Chromium/Chromium based (i.e. Edge)
  • [ ] Safari
  • [ ] Other/Don't know

Other browser

No response

Which System did you use, when experiencing the bug?

  • [X] Windows
  • [ ] Linux
  • [ ] MacOs
  • [ ] iOS
  • [ ] Android
  • [ ] Other/Don't know

Other OS

No response

Add your browser log here

Object { data: "<!DOCTYPE html>\n<html class=\"ng-csp\" data-placeholder-focus=\"false\" lang=\"fr\" data-locale=\"fr_FR\" >\n\t<head\n data-requesttoken=\"\">\n\t\t<meta charset=\"utf-8\">\n\t\t<title>\n\t\t\tCloud Agglo\t\t</title>\n\t\t<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0, minimum-scale=1.0\">\n\t\t\t\t<meta name=\"apple-itunes-app\" content=\"app-id=1125420102\">\n\t\t\t\t<meta name=\"theme-color\" content=\"#af0623\">\n\t\t<link rel=\"icon\" href=\"/index.php/apps/theming/favicon?v=23\">\n\t\t<link rel=\"apple-touch-icon\" href=\"/index.php/apps/theming/icon?v=23\">\n\t\t<link rel=\"mask-icon\" sizes=\"any\" href=\"/core/img/favicon-mask.svg\" color=\"#af0623\">\n\t\t<link rel=\"manifest\" href=\"/index.php/apps/theming/manifest?v=23\">\n\t\t<link rel=\"stylesheet\" href=\"/core/css/server.css?v=b0696758-23\">\n<link rel=\"stylesheet\" href=\"/core/css/styles.css?v=b0696758-23\">\n<link rel=\"stylesheet\" href=\"/core/css/header.css?v=b0696758-23\">\n<link rel=\"stylesheet\" href=\"/apps/theming/css/default.css?v=47354877-23\">\n<link rel=\"stylesheet\" href=\"/core/css/guest.css?v=b0696758-23\">\n\t\t<script nonce=\"Tm9vU2RrZ29aeUVVV1laekJpcUdhZHdvVkQ1VGpWV2RaL2htdUVKOSt4MD06VXVKQkJIQjdDVW9sTzhnNWFYMjNEYnRZTVVsZ3loS29DOHN5N0drRnlYcz0=\" defer src=\"/dist/core-common.js?v=b0696758-23\"></script>\n<script nonce=\"Tm9vU2RrZ29aeUVVV1laekJpcUdhZHdvVkQ1VGpWV2RaL2htdUVKOSt4MD06VXVKQkJIQjdDVW9sTzhnNWFYMjNEYnRZTVVsZ3loS29DOHN5N0drRnlYcz0=\" defer src=\"/dist/core-main.js?v=b0696758-23\"></script>\n<script nonce=\"Tm9vU2RrZ29aeUVVV1laekJpcUdhZHdvVkQ1VGpWV2RaL2htdUVKOSt4MD06VXVKQkJIQjdDVW9sTzhnNWFYMjNEYnRZTVVsZ3loS29DOHN5N0drRnlYcz0=\" defer src=\"/core/l10n/fr.js?v=b0696758-23\"></script>\n<script nonce=\"Tm9vU2RrZ29aeUVVV1laekJpcUdhZHdvVkQ1VGpWV2RaL2htdUVKOSt4MD06VXVKQkJIQjdDVW9sTzhnNWFYMjNEYnRZTVVsZ3loS29DOHN5N0drRnlYcz0=\" defer src=\"/dist/core-files_fileinfo.js?v=b0696758-23\"></script>\n<script nonce=\"Tm9vU2RrZ29aeUVVV1laekJpcUdhZHdvVkQ1VGpWV2RaL2htdUVKOSt4MD06VXVKQkJIQjdDVW9sTzhnNWFYMjNEYnRZTVVsZ3loS29DOHN5N0drRnlYcz0=\" defer src=\"/dist/core-files_client.js?v=b0696758-23\"></script>\n<script nonce=\"Tm9vU2RrZ29aeUVVV1laekJpcUdhZHdvVkQ1VGpWV2RaL2htdUVKOSt4MD06VXVKQkJIQjdDVW9sTzhnNWFYMjNEYnRZTVVsZ3loS29DOHN5N0drRnlYcz0=\" defer src=\"/index.php/js/core/merged-template-prepend.js?v=b0696758-23\"></script>\n<script nonce=\"Tm9vU2RrZ29aeUVVV1laekJpcUdhZHdvVkQ1VGpWV2RaL2htdUVKOSt4MD06VXVKQkJIQjdDVW9sTzhnNWFYMjNEYnRZTVVsZ3loS29DOHN5N0drRnlYcz0=\" defer src=\"/apps/comments/l10n/fr.js?v=b0696758-23\"></script>\n<script nonce=\"Tm9vU2RrZ29aeUVVV1laekJpcUdhZHdvVkQ1VGpWV2RaL2htdUVKOSt4MD06VXVKQkJIQjdDVW9sTzhnNWFYMjNEYnRZTVVsZ3loS29DOHN5N0drRnlYcz0=\" defer src=\"/dist/comments-comments-app.js?v=b0696758-23\"></script>\n<script nonce=\"Tm9vU2RrZ29aeUVVV1laekJpcUdhZHdvVkQ1VGpWV2RaL2htdUVKOSt4MD06VXVKQkJIQjdDVW9sTzhnNWFYMjNEYnRZTVVsZ3loS29DOHN5N0drRnlYcz0=\" defer src=\"/apps/files_sharing/l10n/fr.js?v=b0696758-23\"></script>\n<script nonce=\"Tm9vU2RrZ29aeUVVV1laekJpcUdhZHdvVkQ1VGpWV2RaL2htdUVKOSt4MD06VXVKQkJIQjdDVW9sTzhnNWFYMjNEYnRZTVVsZ3loS29DOHN5N0drRnlYcz0=\" defer src=\"/dist/files_sharing-main.js?v=b0696758-23\"></script>\n\t\t\t</head>\n\t<body id=\"body-login\">\n\t\t<noscript>\n\t<div id=\"nojavascript\">\n\t\t<div>\n\t\t\tCette application requiert JavaScript pour fonctionner correctement. Veuillez <a href=\"https://www.enable-javascript.com/\" target=\"_blank\" rel=\"noreferrer noopener\">activer JavaScript</a> et recharger la page.\t\t</div>\n\t</div>\n</noscript>\n\t\t\t\t\t<input type=\"hidden\" id=\"initial-state-comments-max-message-length\" value=\"MTAwMA==\">\n\t\t\t\t\t<input type=\"hidden\" id=\"initial-state-comments-maxAutoCompleteResults\" value=\"MTA=\">\n\t\t\t\t\t<input type=\"hidden\" id=\"initial-state-files_zip-max_compress_size\" value=\"LTE=\">\n\t\t\t\t<div class=\"wrapper\">\n\t\t\t<div class=\"v-align\">\n\t\t\t\t\t\t\t\t\t<header role=\"banner\">\n\t\t\t\t\t\t<div id=\"header\">\n\t\t\t\t\t\t\t<div class=\"logo\">\n\t\t\t\t\t\t\t\t<h1 class=\"hidden-visually\">\n\t\t\t\t\t\t\t\t\tCloud Agglo\t\t\t\t\t\t\t\t</h1>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</header>\n\t\t\t\t\t\t\t\t<main>\n\t\t\t\t\t<div class=\"guest-box wide\">\n\t<h2>Erreur interne du serveur</h2>\n\t<p>Le serveur est incapable d&#039;exécuter votre requête.</p>\n\t<p>Si cela se reproduit, veuillez envoyer les détails techniques ci-dessous à l&#039;administrateur du serveur.</p>\n\t<p>Le fichier journal du serveur peut fournir plus de renseignements.</p>\n\n\t<h3>Renseignements techniques</h3>\n\t<ul>\n\t\t<li>Adresse distante : 10.30.4.46</li>\n\t\t<li>ID de la demande : 6Vg8zsIjrD4xQbacOSQ8</li>\n\t\t\t</ul>\n\n\t</div>\n\t\t\t\t</main>\n\t\t\t</div>\n\t\t</div>\n\t\t<footer role=\"contentinfo\">\n\t\t\t<p class=\"info\">\n\t\t\t\t<a href=\"https://www.dummy.fr\" target=\"_blank\" rel=\"noreferrer noopener\" class=\"entity-name\">Cloud Agglo</a> – Cloud privé de l&#039;Dummy\t\t\t</p>\n\t\t</footer>\n\t</body>\n</html>\n", status: 500, statusText: "Internal Server Error", headers: {…}, config: {…}, request: XMLHttpRequest }
​
config: Object { timeout: 0, xsrfCookieName: "XSRF-TOKEN", xsrfHeaderName: "X-XSRF-TOKEN", … }
​
data: "<!DOCTYPE html>\n<html class=\"ng-csp\" data-placeholder-focus=\"false\" lang=\"fr\" data-locale=\"fr_FR\" >\n\t<head\n data-requesttoken=\"\">\n\t\t<meta charset=\"utf-8\">\n\t\t<title>\n\t\t\tCloud Agglo\t\t</title>\n\t\t<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0, minimum-scale=1.0\">\n\t\t\t\t<meta name=\"apple-itunes-app\" content=\"app-id=1125420102\">\n\t\t\t\t<meta name=\"theme-color\" content=\"#af0623\">\n\t\t<link rel=\"icon\" href=\"/index.php/apps/theming/favicon?v=23\">\n\t\t<link rel=\"apple-touch-icon\" href=\"/index.php/apps/theming/icon?v=23\">\n\t\t<link rel=\"mask-icon\" sizes=\"any\" href=\"/core/img/favicon-mask.svg\" color=\"#af0623\">\n\t\t<link rel=\"manifest\" href=\"/index.php/apps/theming/manifest?v=23\">\n\t\t<link rel=\"stylesheet\" href=\"/core/css/server.css?v=b0696758-23\">\n<link rel=\"stylesheet\" href=\"/core/css/styles.css?v=b0696758-23\">\n<link rel=\"stylesheet\" href=\"/core/css/header.css?v=b0696758-23\">\n<link rel=\"stylesheet\" href=\"/apps/theming/css/default.css?v=47354877-23\">\n<link rel=\"stylesheet\" href=\"/core/css/guest.css?v=b0696758-23\">\n\t\t<script nonce=\"Tm9vU2RrZ29aeUVVV1laekJpcUdhZHdvVkQ1VGpWV2RaL2htdUVKOSt4MD06VXVKQkJIQjdDVW9sTzhnNWFYMjNEYnRZTVVsZ3loS29DOHN5N0drRnlYcz0=\" defer src=\"/dist/core-common.js?v=b0696758-23\"></script>\n<script nonce=\"Tm9vU2RrZ29aeUVVV1laekJpcUdhZHdvVkQ1VGpWV2RaL2htdUVKOSt4MD06VXVKQkJIQjdDVW9sTzhnNWFYMjNEYnRZTVVsZ3loS29DOHN5N0drRnlYcz0=\" defer src=\"/dist/core-main.js?v=b0696758-23\"></script>\n<script nonce=\"Tm9vU2RrZ29aeUVVV1laekJpcUdhZHdvVkQ1VGpWV2RaL2htdUVKOSt4MD06VXVKQkJIQjdDVW9sTzhnNWFYMjNEYnRZTVVsZ3loS29DOHN5N0drRnlYcz0=\" defer src=\"/core/l10n/fr.js?v=b0696758-23\"></script>\n<script nonce=\"Tm9vU2RrZ29aeUVVV1laekJpcUdhZHdvVkQ1VGpWV2RaL2htdUVKOSt4MD06VXVKQkJIQjdDVW9sTzhnNWFYMjNEYnRZTVVsZ3loS29DOHN5N0drRnlYcz0=\" defer src=\"/dist/core-files_fileinfo.js?v=b0696758-23\"></script>\n<script nonce=\"Tm9vU2RrZ29aeUVVV1laekJpcUdhZHdvVkQ1VGpWV2RaL2htdUVKOSt4MD06VXVKQkJIQjdDVW9sTzhnNWFYMjNEYnRZTVVsZ3loS29DOHN5N0drRnlYcz0=\" defer src=\"/dist/core-files_client.js?v=b0696758-23\"></script>\n<script nonce=\"Tm9vU2RrZ29aeUVVV1laekJpcUdhZHdvVkQ1VGpWV2RaL2htdUVKOSt4MD06VXVKQkJIQjdDVW9sTzhnNWFYMjNEYnRZTVVsZ3loS29DOHN5N0drRnlYcz0=\" defer src=\"/index.php/js/core/merged-template-prepend.js?v=b0696758-23\"></script>\n<script nonce=\"Tm9vU2RrZ29aeUVVV1laekJpcUdhZHdvVkQ1VGpWV2RaL2htdUVKOSt4MD06VXVKQkJIQjdDVW9sTzhnNWFYMjNEYnRZTVVsZ3loS29DOHN5N0drRnlYcz0=\" defer src=\"/apps/comments/l10n/fr.js?v=b0696758-23\"></script>\n<script nonce=\"Tm9vU2RrZ29aeUVVV1laekJpcUdhZHdvVkQ1VGpWV2RaL2htdUVKOSt4MD06VXVKQkJIQjdDVW9sTzhnNWFYMjNEYnRZTVVsZ3loS29DOHN5N0drRnlYcz0=\" defer src=\"/dist/comments-comments-app.js?v=b0696758-23\"></script>\n<script nonce=\"Tm9vU2RrZ29aeUVVV1laekJpcUdhZHdvVkQ1VGpWV2RaL2htdUVKOSt4MD06VXVKQkJIQjdDVW9sTzhnNWFYMjNEYnRZTVVsZ3loS29DOHN5N0drRnlYcz0=\" defer src=\"/apps/files_sharing/l10n/fr.js?v=b0696758-23\"></script>\n<script nonce=\"Tm9vU2RrZ29aeUVVV1laekJpcUdhZHdvVkQ1VGpWV2RaL2htdUVKOSt4MD06VXVKQkJIQjdDVW9sTzhnNWFYMjNEYnRZTVVsZ3loS29DOHN5N0drRnlYcz0=\" defer src=\"/dist/files_sharing-main.js?v=b0696758-23\"></script>\n\t\t\t</head>\n\t<body id=\"body-login\">\n\t\t<noscript>\n\t<div id=\"nojavascript\">\n\t\t<div>\n\t\t\tCette application requiert JavaScript pour fonctionner correctement. Veuillez <a href=\"https://www.enable-javascript.com/\" target=\"_blank\" rel=\"noreferrer noopener\">activer JavaScript</a> et recharger la page.\t\t</div>\n\t</div>\n</noscript>\n\t\t\t\t\t<input type=\"hidden\" id=\"initial-state-comments-max-message-length\" value=\"MTAwMA==\">\n\t\t\t\t\t<input type=\"hidden\" id=\"initial-state-comments-maxAutoCompleteResults\" value=\"MTA=\">\n\t\t\t\t\t<input type=\"hidden\" id=\"initial-state-files_zip-max_compress_size\" value=\"LTE=\">\n\t\t\t\t<div class=\"wrapper\">\n\t\t\t<div class=\"v-align\">\n\t\t\t\t\t\t\t\t\t<header role=\"banner\">\n\t\t\t\t\t\t<div id=\"header\">\n\t\t\t\t\t\t\t<div class=\"logo\">\n\t\t\t\t\t\t\t\t<h1 class=\"hidden-visually\">\n\t\t\t\t\t\t\t\t\tCloud Agglo\t\t\t\t\t\t\t\t</h1>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</header>\n\t\t\t\t\t\t\t\t<main>\n\t\t\t\t\t<div class=\"guest-box wide\">\n\t<h2>Erreur interne du serveur</h2>\n\t<p>Le serveur est incapable d&#039;exécuter votre requête.</p>\n\t<p>Si cela se reproduit, veuillez envoyer les détails techniques ci-dessous à l&#039;administrateur du serveur.</p>\n\t<p>Le fichier journal du serveur peut fournir plus de renseignements.</p>\n\n\t<h3>Renseignements techniques</h3>\n\t<ul>\n\t\t<li>Adresse distante : 10.30.4.46</li>\n\t\t<li>ID de la demande : 6Vg8zsIjrD4xQbacOSQ8</li>\n\t\t\t</ul>\n\n\t</div>\n\t\t\t\t</main>\n\t\t\t</div>\n\t\t</div>\n\t\t<footer role=\"contentinfo\">\n\t\t\t<p class=\"info\">\n\t\t\t\t<a href=\"https://www.dummy.fr\" target=\"_blank\" rel=\"noreferrer noopener\" class=\"entity-name\">Cloud Agglo</a> – Cloud privé de l&#039;Dummy\t\t\t</p>\n\t\t</footer>\n\t</body>\n</html>\n"
​
headers: Object { "cache-control": "no-store, no-cache, must-revalidate", connection: "close", "content-length": "4668", … }
​
request: XMLHttpRequest { readyState: 4, timeout: 0, withCredentials: false, … }
​
status: 500
​
statusText: "Internal Server Error"
​
<prototype>: Object { … }
UserSearch.vue:99
    t UserSearch.vue:99
    c UserSearch.vue:50
    _invoke UserSearch.vue:50
    b UserSearch.vue:50
    m UserSearch.vue:50
    s UserSearch.vue:50

Additional client environment information

No response

NC version

Nextcloud 25 (Nextcloud Hub 3)

Other Nextcloud version

No response

PHP engine version

PHP 8.0

Other PHP version

No response

Database engine

MariaDB

Database Engine version or other Database

No response

Which user-backends are you using?

  • [ ] Default user-backend (database)
  • [X] LDAP/ Active Directory
  • [ ] SSO - SAML
  • [ ] Other/Don't know

Add your nextcloud server log here

{"reqId":"rRrtIZQysaCiKF50Il7C","level":3,"time":"2022-11-08T16:33:48+00:00","remoteAddr":"10.30.4.46","user":"Dummy","app":"index","method":"GET","url":"/index.php/apps/polls/search/users/void","message":"Call to a member function getDisplayName() on null in file '/var/www/nextcloud/apps/polls/lib/Model/User/User.php' line 58","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0","version":"25.0.1.1","exception":{"Exception":"Exception","Message":"Call to a member function getDisplayName() on null in file '/var/www/nextcloud/apps/polls/lib/Model/User/User.php' line 58","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":172,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":298,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1047,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","Line":165,"Previous":{"Exception":"Error","Message":"Call to a member function getDisplayName() on null","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/polls/lib/Service/UserService.php","line":190,"function":"__construct","class":"OCA\\Polls\\Model\\User\\User","type":"->"},{"file":"/var/www/nextcloud/apps/polls/lib/Service/SystemService.php","line":134,"function":"search","class":"OCA\\Polls\\Service\\UserService","type":"->"},{"file":"/var/www/nextcloud/apps/polls/lib/Controller/SystemController.php","line":52,"function":"getSiteUsersAndGroups","class":"OCA\\Polls\\Service\\SystemService","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":225,"function":"userSearch","class":"OCA\\Polls\\Controller\\SystemController","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":133,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":172,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":298,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1047,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/apps/polls/lib/Model/User/User.php","Line":58},"CustomMessage":"--"}}

Additional environment informations

No response

Configuration report

{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "cloud.agglo-montbeliard.fr",
            "192.168.50.106",
            "192.168.50.106"
        ],
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "overwrite.cli.url": "https:\/\/cloud.agglo-montbeliard.fr\/",
        "dbtype": "mysql",
        "version": "25.0.1.1",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "logtimezone": "UTC",
        "installed": true,
        "theme": "",
        "loglevel": 2,
        "maintenance": false,
        "trashbin_retention_obligation": "auto, 15",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpmode": "smtp",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "appstore.experimental.enabled": true,
        "ldapIgnoreNamingRules": false,
        "ldapProviderFactory": "\\OCA\\User_LDAP\\LDAPProviderFactory",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_sendmailmode": "smtp",
        "mail_smtpport": "25",
        "mysql.utf8mb4": true,
        "default_phone_region": "FR",
        "has_rebuilt_cache": true,
        "app_install_overwrite": [
            "spreed",
            "files_mindmap",
            "pdfdraw",
            "issuetemplate",
            "files_linkeditor",
            "files_texteditor",
            "files_trackdownloads",
            "emlviewer"
        ],
        "allow_local_remote_servers": true,
        "default_language": "fr",
        "force_language": "fr",
        "default_locale": "fr_FR",
        "force_locale": "fr_FR",
        "memcache.local": "\\OC\\Memcache\\APCu",
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 6379
        },
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "preview_max_memory": 512,
        "app.mail.verify-tls-peer": false
    }
}

List of activated Apps

Enabled:
  - activity: 2.17.0
  - admin_audit: 1.15.0
  - analytics: 4.5.0
  - announcementcenter: 6.4.0
  - calendar: 4.1.0
  - cfg_share_links: 3.0.0
  - circles: 25.0.0
  - cloud_federation_api: 1.8.0
  - comments: 1.15.0
  - contacts: 5.0.1
  - contactsinteraction: 1.6.0
  - dashboard: 7.5.0
  - dav: 1.24.0
  - deck: 1.8.1
  - emlviewer: 1.0.2
  - event_update_notification: 2.0.0
  - external: 5.0.0
  - federatedfilesharing: 1.15.0
  - federation: 1.15.0
  - files: 1.20.1
  - files_automatedtagging: 1.15.0
  - files_downloadactivity: 1.15.0
  - files_external: 1.17.0
  - files_linkeditor: 1.1.12
  - files_mindmap: 0.0.26
  - files_pdfviewer: 2.6.0
  - files_rightclick: 1.4.0
  - files_sharing: 1.17.0
  - files_texteditor: 2.14.0
  - files_trackdownloads: 1.11.0
  - files_trashbin: 1.15.0
  - files_versions: 1.18.0
  - files_zip: 1.1.2
  - forms: 3.0.1
  - groupfolders: 13.0.0
  - issuetemplate: 0.7.0
  - logreader: 2.10.0
  - lookup_server_connector: 1.13.0
  - mail: 2.1.0
  - nextcloud_announcements: 1.14.0
  - notifications: 2.13.1
  - notify_push: 0.5.0
  - oauth2: 1.13.0
  - onlyoffice: 7.6.8
  - password_policy: 1.15.0
  - photos: 2.0.0
  - polls: 4.0.0
  - provisioning_api: 1.15.0
  - related_resources: 1.0.3
  - serverinfo: 1.15.0
  - settings: 1.7.0
  - sharebymail: 1.15.0
  - smb_test: 0.3.5
  - snappymail: 2.20.2
  - spreed: 15.0.1
  - systemtags: 1.15.0
  - tasks: 0.14.5
  - text: 3.6.0
  - theming: 2.0.1
  - twofactor_backupcodes: 1.14.0
  - twofactor_totp: 7.0.0
  - updatenotification: 1.15.0
  - user_ldap: 1.15.0
  - user_status: 1.5.0
  - viewer: 1.9.0
  - weather_status: 1.5.0
  - workflowengine: 2.7.0
Disabled:
  - bruteforcesettings: 2.2.0
  - calendar_resource_management: 0.1.0
  - customproperties: 2.0.4
  - encryption
  - extract: 1.3.5
  - files_markdown: 2.3.6
  - firstrunwizard: 2.12.0
  - group_everyone: 0.1.10
  - impersonate: 1.11.0
  - pdfdraw
  - privacy: 1.7.0
  - recommendations: 1.3.0
  - support: 1.6.0
  - survey_client: 1.11.0
  - suspicious_login
  - tables: 0.2.1
  - workflow_script: 1.8.0

Nextcloud Signing status

No errors have been found.

Additional Information

Seems to be related with upgrade from NC24 to NC25 (not sure)

Mer0me avatar Nov 08 '22 16:11 Mer0me

Just formatting the error message:

{
	"reqId": "rRrtIZQysaCiKF50Il7C",
	"level": 3,
	"time": "2022-11-08T16:33:48+00:00",
	"remoteAddr": "10.30.4.46",
	"user": "Dummy",
	"app": "index",
	"method": "GET",
	"url": "/index.php/apps/polls/search/users/void",
	"message": "Call to a member function getDisplayName() on null in file '/var/www/nextcloud/apps/polls/lib/Model/User/User.php' line 58",
	"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0",
	"version": "25.0.1.1",
	"exception": {
		"Exception": "Exception",
		"Message": "Call to a member function getDisplayName() on null in file '/var/www/nextcloud/apps/polls/lib/Model/User/User.php' line 58",
		"Code": 0,
		"Trace": [
			{
				"file": "/var/www/nextcloud/lib/private/AppFramework/App.php",
				"line": 172,
				"function": "dispatch",
				"class": "OC\\AppFramework\\Http\\Dispatcher",
				"type": "->"
			},
			{
				"file": "/var/www/nextcloud/lib/private/Route/Router.php",
				"line": 298,
				"function": "main",
				"class": "OC\\AppFramework\\App",
				"type": "::"
			},
			{
				"file": "/var/www/nextcloud/lib/base.php",
				"line": 1047,
				"function": "match",
				"class": "OC\\Route\\Router",
				"type": "->"
			},
			{
				"file": "/var/www/nextcloud/index.php",
				"line": 36,
				"function": "handleRequest",
				"class": "OC",
				"type": "::"
			}
		],
		"File": "/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
		"Line": 165,
		"Previous": {
			"Exception": "Error",
			"Message": "Call to a member function getDisplayName() on null",
			"Code": 0,
			"Trace": [
				{
					"file": "/var/www/nextcloud/apps/polls/lib/Service/UserService.php",
					"line": 190,
					"function": "__construct",
					"class": "OCA\\Polls\\Model\\User\\User",
					"type": "->"
				},
				{
					"file": "/var/www/nextcloud/apps/polls/lib/Service/SystemService.php",
					"line": 134,
					"function": "search",
					"class": "OCA\\Polls\\Service\\UserService",
					"type": "->"
				},
				{
					"file": "/var/www/nextcloud/apps/polls/lib/Controller/SystemController.php",
					"line": 52,
					"function": "getSiteUsersAndGroups",
					"class": "OCA\\Polls\\Service\\SystemService",
					"type": "->"
				},
				{
					"file": "/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
					"line": 225,
					"function": "userSearch",
					"class": "OCA\\Polls\\Controller\\SystemController",
					"type": "->"
				},
				{
					"file": "/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
					"line": 133,
					"function": "executeController",
					"class": "OC\\AppFramework\\Http\\Dispatcher",
					"type": "->"
				},
				{
					"file": "/var/www/nextcloud/lib/private/AppFramework/App.php",
					"line": 172,
					"function": "dispatch",
					"class": "OC\\AppFramework\\Http\\Dispatcher",
					"type": "->"
				},
				{
					"file": "/var/www/nextcloud/lib/private/Route/Router.php",
					"line": 298,
					"function": "main",
					"class": "OC\\AppFramework\\App",
					"type": "::"
				},
				{
					"file": "/var/www/nextcloud/lib/base.php",
					"line": 1047,
					"function": "match",
					"class": "OC\\Route\\Router",
					"type": "->"
				},
				{
					"file": "/var/www/nextcloud/index.php",
					"line": 36,
					"function": "handleRequest",
					"class": "OC",
					"type": "::"
				}
			],
			"File": "/var/www/nextcloud/apps/polls/lib/Model/User/User.php",
			"Line": 58
		},
		"CustomMessage": "--"
	}
}

dartcafe avatar Dec 18 '22 21:12 dartcafe

@herrmannsdorfer Are you observing something similar?

dartcafe avatar Dec 23 '22 21:12 dartcafe

@Mer0me Something is weird. It seems that an objects got created, which could not be created. Without further debugging, I am afraid, I can't investigate this. The code still looks good. I suspect, a strange behavior in the core regarding the ldap base.

dartcafe avatar Dec 24 '22 07:12 dartcafe

The problem has disappeared by itself (maybe when upgrading NC, I didn't pay attention). So we can close this one. Sorry for the time you've spent to figure out...

Mer0me avatar Dec 24 '22 16:12 Mer0me

Thanks for the feedback. Don't worry.

dartcafe avatar Dec 25 '22 17:12 dartcafe

I'm sorry to reopen but this is very unstable, I do not understand what is working or not. I have now the ability to share a poll with some contacts. All other contacts or ldap user are not showing up on the drop down list. Some contacts are appearing when I type only few letters, others are appearing only if I type the entire name.

How can I help you to track this down ?

Mer0me avatar Jan 09 '23 13:01 Mer0me

I had the same problem since 2022. Today I updated the polls app and upgraded NC to v27 and suddenly I can share my polls again with LDAP users.

xylo avatar Nov 08 '23 18:11 xylo

Hello there, Having same bug i think. NC version: 28.0.7 Polls version: 7.2.1

Some LDAP users can't be found while most the other can be found. This issue is happening only with polls app not with forms ou files.

Thanks for your help. Available to provide any logs or print screen if needed. Thanks Nico

nicovd737 avatar Aug 26 '24 12:08 nicovd737

Please open a new issue. This relies on outdated informations.

dartcafe avatar Aug 27 '24 18:08 dartcafe