-
Notifications
You must be signed in to change notification settings - Fork 83
Open
Labels
Description
⚠️ This issue respects the following points: ⚠️
- This is a bug, not a question or a configuration/webserver/proxy issue.
- This issue is not already reported on Github (I've searched it).
- I agree to follow Nextcloud's Code of Conduct.
What went wrong, what did you observe?
This affects only one user. No polls for the user are listet when open the overview site.
What did you expect, how polls should behave instead?
List all my and shared polls.
What steps does it need to replay this bug?
Just open the URL /apps/polls/list/relevant
Affected polls version
8.5.0
Installation method
Installed/updated from the appstore (Apps section of your site)
Installation type
First time installation
Can you rule out that any extension you use is involved in the issue?
- I have checked all browser extension
Which browser did you use, when experiencing the bug?
- Firefox
- Chrome
- Chromium/Chromium based (i.e. Edge)
- Safari
- Other/Don't know
Other browser
No response
Add your browser log here
Roh-Protokolleintrag
{
"reqId": "jGOgAg7BsMXJxnmdxXPB",
"level": 3,
"time": "2025-11-24T10:37:38+00:00",
"remoteAddr": "xxxxx",
"user": "xxxx",
"app": "index",
"method": "GET",
"url": "/index.php/apps/polls/polls?time=1763980658750",
"message": "Cannot assign null to property OCA\\Polls\\Model\\User\\User::$user of type OCP\\IUser",
"userAgent": "Mozilla/5.0 (X11; Linux x86_64; rv:140.0) Gecko/20100101 Firefox/140.0",
"version": "31.0.11.2",
"exception": {
"Exception": "TypeError",
"Message": "Cannot assign null to property OCA\\Polls\\Model\\User\\User::$user of type OCP\\IUser",
"Code": 0,
"Trace": [
{
"file": "/opt/www/nextcloud/apps/polls/lib/Model/User/User.php",
"line": 34,
"function": "setUp",
"class": "OCA\\Polls\\Model\\User\\User",
"type": "->"
},
{
"file": "/opt/www/nextcloud/apps/polls/lib/Db/UserMapper.php",
"line": 187,
"function": "__construct",
"class": "OCA\\Polls\\Model\\User\\User",
"type": "->"
},
{
"file": "/opt/www/nextcloud/apps/polls/lib/Db/UserMapper.php",
"line": 129,
"function": "getUserObject",
"class": "OCA\\Polls\\Db\\UserMapper",
"type": "->"
},
{
"file": "/opt/www/nextcloud/apps/polls/lib/Db/UserMapper.php",
"line": 69,
"function": "getUserFromShare",
"class": "OCA\\Polls\\Db\\UserMapper",
"type": "->"
},
{
"file": "/opt/www/nextcloud/apps/polls/lib/Db/EntityWithUser.php",
"line": 110,
"function": "getParticipant",
"class": "OCA\\Polls\\Db\\UserMapper",
"type": "->"
},
{
"file": "/opt/www/nextcloud/apps/polls/lib/Db/Poll.php",
"line": 224,
"function": "getUser",
"class": "OCA\\Polls\\Db\\EntityWithUser",
"type": "->"
},
{
"function": "jsonSerialize",
"class": "OCA\\Polls\\Db\\Poll",
"type": "->"
},
{
"file": "/opt/www/nextcloud/lib/public/AppFramework/Http/JSONResponse.php",
"line": 63,
"function": "json_encode"
},
{
"file": "/opt/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
"line": 159,
"function": "render",
"class": "OCP\\AppFramework\\Http\\JSONResponse",
"type": "->"
},
{
"file": "/opt/www/nextcloud/lib/private/AppFramework/App.php",
"line": 161,
"function": "dispatch",
"class": "OC\\AppFramework\\Http\\Dispatcher",
"type": "->"
},
{
"file": "/opt/www/nextcloud/lib/private/Route/Router.php",
"line": 315,
"function": "main",
"class": "OC\\AppFramework\\App",
"type": "::"
},
{
"file": "/opt/www/nextcloud/lib/base.php",
"line": 1063,
"function": "match",
"class": "OC\\Route\\Router",
"type": "->"
},
{
"file": "/opt/www/nextcloud/index.php",
"line": 24,
"function": "handleRequest",
"class": "OC",
"type": "::"
}
],
"File": "/opt/www/nextcloud/apps/polls/lib/Model/User/User.php",
"Line": 42,
"message": "Cannot assign null to property OCA\\Polls\\Model\\User\\User::$user of type OCP\\IUser",
"exception": [],
"CustomMessage": "Cannot assign null to property OCA\\Polls\\Model\\User\\User::$user of type OCP\\IUser"
},
"id": "6924359ad5c6f"Additional client environment information
We use LDAP as backend.
All other apps work for the user.
Changed owner of the polls in the mysql database and they are shown in the other users account.
There was also a bug, but i can't open: #2944
Also updated from 30 to 31
NC version
Nextcloud 31
Other Nextcloud version
31.0.11
PHP engine version
PHP 8.2
Other PHP version
No response
Database engine
MySQL
Database Engine version or other Database
No response
Which user-backends are you using?
- Default user-backend (database)
- LDAP/ Active Directory
- SSO - SAML
- Other/Don't know
Add your nextcloud server log here
Additional environment informations
No response
Configuration report
{
"system": {
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"allow_local_remote_servers": "1",
"secret": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": [
"cloud.dpop.eu",
"cloud.intern.skatedeluxe.de"
],
"datadirectory": "***REMOVED SENSITIVE VALUE***",
"overwrite.cli.url": "https:\/\/cloud.dpop.eu",
"overwritehost": "cloud.dpop.eu",
"overwriteprotocol": "https",
"trusted_proxies": "***REMOVED SENSITIVE VALUE***",
"forwarded_for_headers": [
"HTTP_X_FORWARDED_FOR",
"HTTP_X_FORWARDED"
],
"lost_password_link": "disabled",
"simpleSignUpLink.shown": false,
"auth.bruteforce.protection.enabled": true,
"dbtype": "mysql",
"version": "31.0.11.2",
"dbname": "***REMOVED SENSITIVE VALUE***",
"dbhost": "***REMOVED SENSITIVE VALUE***",
"dbtableprefix": "oc_",
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"logtimezone": "UTC",
"installed": true,
"filelocking.enabled": true,
"memcache.local": "\\OC\\Memcache\\APCu",
"memcache.distributed": "\\OC\\Memcache\\Redis",
"memcache.locking": "\\OC\\Memcache\\Redis",
"redis": {
"host": "***REMOVED SENSITIVE VALUE***",
"port": 0,
"dbindex": 0,
"timeout": 0
},
"ldapIgnoreNamingRules": true,
"tempdirectory": "\/opt\/www\/nextcloud\/data\/uploads_tmp",
"maintenance": false,
"maintenance_window_start": 1,
"loglevel": 3,
"trashbin_retention_obligation": "60",
"ldapProviderFactory": "\\OCA\\User_LDAP\\LDAPProviderFactory",
"mail_smtpmode": "sendmail",
"mail_sendmailmode": "smtp",
"mail_from_address": "***REMOVED SENSITIVE VALUE***",
"mail_domain": "***REMOVED SENSITIVE VALUE***",
"mail_smtphost": "***REMOVED SENSITIVE VALUE***",
"mail_smtpport": "465",
"theme": "",
"mysql.utf8mb4": true,
"default_phone_region": "DE",
"skeletondirectory": "",
"share_folder": "\/shared",
"app_install_overwrite": [
"announcementcenter",
"initialcheck",
"defaultlinkopen",
"activitylog",
"sip_trip_phone",
"impersonate",
"video_converter"
],
"updater.release.channel": "stable",
"instanceid": "***REMOVED SENSITIVE VALUE***",
"enable_previews": true,
"enabledPreviewProviders": [
"OC\\Preview\\Movie",
"OC\\Preview\\SVG",
"OC\\Preview\\Image",
"OC\\Preview\\Photoshop",
"OC\\Preview\\PNG",
"OC\\Preview\\JPEG",
"OC\\Preview\\GIF",
"OC\\Preview\\BMP",
"OC\\Preview\\XBitmap",
"OC\\Preview\\TIFF",
"OC\\Preview\\HEIC",
"OC\\Preview\\TXT",
"OC\\Preview\\PDF",
"OC\\Preview\\OpenDocument",
"OC\\Preview\\MSOffice2003",
"OC\\Preview\\MSOfficeDoc",
"OC\\Preview\\Markdown",
"OC\\Preview\\Imaginary"
],
"preview_imaginary_url": "***REMOVED SENSITIVE VALUE***",
"preview_max_x": 2048,
"preview_max_y": 2048,
"jpeg_quality": 60,
"memories.exiftool": "\/opt\/www\/nextcloud\/apps\/memories\/bin-ext\/exiftool-amd64-glibc",
"memories.vod.path": "\/opt\/www\/nextcloud\/apps\/memories\/bin-ext\/go-vod-amd64",
"memories.vod.ffmpeg": "\/usr\/bin\/ffmpeg",
"memories.vod.ffprobe": "\/usr\/bin\/ffprobe",
"forbidden_filename_basenames": [
"con",
"prn",
"aux",
"nul",
"com0",
"com1",
"com2",
"com3",
"com4",
"com5",
"com6",
"com7",
"com8",
"com9",
"com\u00b9",
"com\u00b2",
"com\u00b3",
"lpt0",
"lpt1",
"lpt2",
"lpt3",
"lpt4",
"lpt5",
"lpt6",
"lpt7",
"lpt8",
"lpt9",
"lpt\u00b9",
"lpt\u00b2",
"lpt\u00b3"
],
"forbidden_filename_characters": [
"<",
">",
":",
"\"",
"|",
"?",
"*",
"\\",
"\/"
],
"forbidden_filename_extensions": [
" ",
".",
".filepart",
".part"
],
"files.chunked_upload.max_size": 20971520
}
}List of activated Apps
Enabled:
- activity: 4.0.0
- admin_audit: 1.21.0
- announcementcenter: 7.2.2
- app_api: 5.0.2
- audioplayer: 3.6.1
- bruteforcesettings: 4.0.0
- circles: 31.0.0
- cloud_federation_api: 1.14.0
- comments: 1.21.0
- contactsinteraction: 1.12.1
- dashboard: 7.11.0
- dav: 1.33.0
- drawio: 3.1.2
- federatedfilesharing: 1.21.0
- federation: 1.21.0
- files: 2.3.1
- files_downloadlimit: 4.0.0
- files_pdfviewer: 4.0.0
- files_reminders: 1.4.0
- files_sharing: 1.23.2
- files_trashbin: 1.21.0
- files_versions: 1.24.0
- groupfolders: 19.1.10
- impersonate: 2.0.0
- integration_openproject: 2.10.1
- logreader: 4.0.0
- lookup_server_connector: 1.19.0
- memories: 7.7.0
- metadata: 0.23.0
- nextcloud_announcements: 3.0.0
- notes: 4.12.4
- notifications: 4.0.0
- oauth2: 1.19.1
- onlyoffice: 9.11.0
- password_policy: 3.0.0
- photos: 4.0.0
- polls: 8.5.0
- privacy: 3.0.0
- profile: 1.0.0
- provisioning_api: 1.21.0
- recommendations: 4.0.0
- related_resources: 2.0.0
- serverinfo: 3.0.0
- settings: 1.14.0
- spreed: 21.1.5
- survey_client: 3.0.0
- systemtags: 1.21.1
- text: 5.0.2
- theming: 2.6.1
- theming_customcss: 1.19.0
- twofactor_backupcodes: 1.20.0
- twofactor_totp: 13.0.0-dev.0
- updatenotification: 1.21.0
- user_ldap: 1.22.0
- user_status: 1.11.0
- viewer: 4.0.0
- weather_status: 1.11.0
- webhook_listeners: 1.2.0
- workflowengine: 2.13.0
Disabled:
- encryption: 2.19.0
- files_external: 1.23.0 (installed 1.6.0)
- files_rightclick: 0.15.1 (installed 1.6.0)
- firstrunwizard: 4.0.0 (installed 2.4.0)
- piwik: 0.13.0 (installed 0.13.0)
- richdocuments: 8.5.11 (installed 8.5.11)
- sharebymail: 1.21.0 (installed 1.5.0)
- sharelisting: 1.3.0 (installed 1.3.0)
- sharerenamer: 3.5.0 (installed 3.5.0)
- support: 3.0.0 (installed 1.8.0)
- suspicious_login: 9.0.1
- twofactor_nextcloud_notification: 5.0.0
- workflow_media_converter: 1.15.1 (installed 1.15.1)Nextcloud Signing status
No errors have been found.Additional Information
No response