nextcloud / polls

🗳️ Polls app for Nextcloud

Home Page:https://apps.nextcloud.com/apps/polls

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Participation via public link not possible

jodergrosse opened this issue · comments

⚠️ 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?

After updating polls to version 7.0.0 yesterday, participation via public link is no longer possible.
The poll can be viewed, but no voting inputs are visible.

What did you expect, how polls should behave instead?

Voting was possible before the update, and should be possible now.

What steps does it need to replay this bug?

  1. create a poll
  2. share via public link
  3. try to vote, without being authenticated

Installation method

Installed/updated using occ

Installation type

Updated from previous major version (i.e. 6.x.x to 7.x.x)

Affected polls version

7.0.0

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

[Error] [ERROR] Files_PDFViewer: But this does not appear to be a public page – {app: "Files_PDFViewer", level: 0}
	value (files_pdfviewer-public.js:2:11033)
	value (files_pdfviewer-public.js:2:11503)
	(anonyme Funktion) (files_pdfviewer-public.js:2:56822)
[Error] TypeError: null is not an object (evaluating 'o.value')
	(anonyme Funktion) (ownpad-public.js:1:21186)
[Error] Failed to load resource: the server responded with a status of 500 () (app, line 0) (https://cloud.***.de/apps/polls/settings/app?time=1711647540405)
[Error] Failed to load resource: the server responded with a status of 403 () (comments, line 0) (https://cloud.***.de/apps/polls/s/***/comments?time=1711647540713)

Additional client environment information

No response

NC version

Nextcloud 28

Other Nextcloud version

28.0.4

PHP engine version

PHP 8.2

Other PHP version

No response

Database engine

MariaDB

Database Engine version or other Database

10.3.39

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

{
    "reqId": "mZykwILEcvwrJxS969CK",
    "level": 3,
    "time": "2024-03-28T16:34:49+00:00",
    "remoteAddr": "***",
    "user": "***",
    "app": "index",
    "method": "POST",
    "url": "/apps/polls/settings/app",
    "message": "OCA\\Polls\\Model\\Settings\\AppSettings::setBooleanSetting(): Argument #2 ($value) must be of type bool, string given, called in /***/nextcloud/apps/polls/lib/Service/SettingsService.php on line 49 in file '/***/nextcloud/apps/polls/lib/Model/Settings/AppSettings.php' line 181",
    "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.4.1 Safari/605.1.15",
    "version": "28.0.4.1",
    "exception": {
        "Exception": "Exception",
        "Message": "OCA\\Polls\\Model\\Settings\\AppSettings::setBooleanSetting(): Argument #2 ($value) must be of type bool, string given, called in /***/nextcloud/apps/polls/lib/Service/SettingsService.php on line 49 in file '/***/nextcloud/apps/polls/lib/Model/Settings/AppSettings.php' line 181",
        "Code": 0,
        "Trace": [
            {
                "file": "/***/nextcloud/lib/private/AppFramework/App.php",
                "line": 184,
                "function": "dispatch",
                "class": "OC\\AppFramework\\Http\\Dispatcher",
                "type": "->"
            },
            {
                "file": "/***/nextcloud/lib/private/Route/Router.php",
                "line": 315,
                "function": "main",
                "class": "OC\\AppFramework\\App",
                "type": "::"
            },
            {
                "file": "/***/nextcloud/lib/base.php",
                "line": 1069,
                "function": "match",
                "class": "OC\\Route\\Router",
                "type": "->"
            },
            {
                "file": "/***/nextcloud/index.php",
                "line": 39,
                "function": "handleRequest",
                "class": "OC",
                "type": "::"
            }
        ],
        "File": "/***/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
        "Line": 169,
        "Previous": {
            "Exception": "TypeError",
            "Message": "OCA\\Polls\\Model\\Settings\\AppSettings::setBooleanSetting(): Argument #2 ($value) must be of type bool, string given, called in /***/nextcloud/apps/polls/lib/Service/SettingsService.php on line 49",
            "Code": 0,
            "Trace": [
                {
                    "file": "/***/nextcloud/apps/polls/lib/Service/SettingsService.php",
                    "line": 49,
                    "function": "setBooleanSetting",
                    "class": "OCA\\Polls\\Model\\Settings\\AppSettings",
                    "type": "->"
                },
                {
                    "file": "/***/nextcloud/apps/polls/lib/Controller/SettingsController.php",
                    "line": 60,
                    "function": "writeAppSettings",
                    "class": "OCA\\Polls\\Service\\SettingsService",
                    "type": "->"
                },
                {
                    "file": "/***/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
                    "line": 230,
                    "function": "writeAppSettings",
                    "class": "OCA\\Polls\\Controller\\SettingsController",
                    "type": "->"
                },
                {
                    "file": "/***/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
                    "line": 137,
                    "function": "executeController",
                    "class": "OC\\AppFramework\\Http\\Dispatcher",
                    "type": "->"
                },
                {
                    "file": "/***/nextcloud/lib/private/AppFramework/App.php",
                    "line": 184,
                    "function": "dispatch",
                    "class": "OC\\AppFramework\\Http\\Dispatcher",
                    "type": "->"
                },
                {
                    "file": "/mnt/HC_Volume_2665849/nextcloud/lib/private/Route/Router.php",
                    "line": 315,
                    "function": "main",
                    "class": "OC\\AppFramework\\App",
                    "type": "::"
                },
                {
                    "file": "/***/nextcloud/lib/base.php",
                    "line": 1069,
                    "function": "match",
                    "class": "OC\\Route\\Router",
                    "type": "->"
                },
                {
                    "file": "/***/nextcloud/index.php",
                    "line": 39,
                    "function": "handleRequest",
                    "class": "OC",
                    "type": "::"
                }
            ],
            "File": "/***/nextcloud/apps/polls/lib/Model/Settings/AppSettings.php",
            "Line": 181
        },
        "message": "OCA\\Polls\\Model\\Settings\\AppSettings::setBooleanSetting(): Argument #2 ($value) must be of type bool, string given, called in /***/nextcloud/apps/polls/lib/Service/SettingsService.php on line 49 in file '/***/nextcloud/apps/polls/lib/Model/Settings/AppSettings.php' line 181",
        "exception": {},
        "CustomMessage": "OCA\\Polls\\Model\\Settings\\AppSettings::setBooleanSetting(): Argument #2 ($value) must be of type bool, string given, called in /***/nextcloud/apps/polls/lib/Service/SettingsService.php on line 49 in file '/***/nextcloud/apps/polls/lib/Model/Settings/AppSettings.php' line 181"
    }
}

{
    "reqId": "8iPnXzlGoS1kA2I2bbvv",
    "level": 3,
    "time": "2024-03-28T17:52:36+00:00",
    "remoteAddr": "***",
    "user": "--",
    "app": "index",
    "method": "GET",
    "url": "/apps/polls/settings/app?time=1711648356149",
    "message": "Cannot assign null to property OCA\\Polls\\Model\\Group\\Group::$group of type OCP\\IGroup",
    "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.4.1 Safari/605.1.15",
    "version": "28.0.4.1",
    "exception": {
        "Exception": "TypeError",
        "Message": "Cannot assign null to property OCA\\Polls\\Model\\Group\\Group::$group of type OCP\\IGroup",
        "Code": 0,
        "Trace": [
            {
                "file": "/***/nextcloud/apps/polls/lib/Model/Group/Group.php",
                "line": 48,
                "function": "setUp",
                "class": "OCA\\Polls\\Model\\Group\\Group",
                "type": "->"
            },
            {
                "file": "/***/nextcloud/apps/polls/lib/Model/Settings/AppSettings.php",
                "line": 208,
                "function": "__construct",
                "class": "OCA\\Polls\\Model\\Group\\Group",
                "type": "->"
            },
            {
                "function": "jsonSerialize",
                "class": "OCA\\Polls\\Model\\Settings\\AppSettings",
                "type": "->"
            },
            {
                "file": "/***/nextcloud/lib/public/AppFramework/Http/JSONResponse.php",
                "line": 71,
                "function": "json_encode"
            },
            {
                "file": "/***/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
                "line": 182,
                "function": "render",
                "class": "OCP\\AppFramework\\Http\\JSONResponse",
                "type": "->"
            },
            {
                "file": "/***/nextcloud/lib/private/AppFramework/App.php",
                "line": 184,
                "function": "dispatch",
                "class": "OC\\AppFramework\\Http\\Dispatcher",
                "type": "->"
            },
            {
                "file": "/***/nextcloud/lib/private/Route/Router.php",
                "line": 315,
                "function": "main",
                "class": "OC\\AppFramework\\App",
                "type": "::"
            },
            {
                "file": "/***/nextcloud/lib/base.php",
                "line": 1069,
                "function": "match",
                "class": "OC\\Route\\Router",
                "type": "->"
            },
            {
                "file": "/***/nextcloud/index.php",
                "line": 39,
                "function": "handleRequest",
                "class": "OC",
                "type": "::"
            }
        ],
        "File": "/***/nextcloud/apps/polls/lib/Model/Group/Group.php",
        "Line": 52,
        "message": "Cannot assign null to property OCA\\Polls\\Model\\Group\\Group::$group of type OCP\\IGroup",
        "exception": {},
        "CustomMessage": "Cannot assign null to property OCA\\Polls\\Model\\Group\\Group::$group of type OCP\\IGroup"
    }
}

Additional environment informations

No response

Configuration report

No response

List of activated Apps

{
    "system": {
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "***REMOVED***"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "overwrite.cli.url": "https:\/\/***REMOVED***",
        "dbtype": "mysql",
        "version": "28.0.4.1",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpmode": "smtp",
        "mail_smtpauthtype": "LOGIN",
        "maintenance": false,
        "default_language": "de",
        "default_phone_region": "DE",
        "theme": "",
        "loglevel": 0,
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "app_install_overwrite": [
            "spreed",
            "ownpad",
            "richdocumentscode",
            "whiteboard",
            "mailnotifier"
        ],
        "mail_sendmailmode": "smtp",
        "mail_smtpauth": 1,
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "587",
        "mysql.utf8mb4": true,
        "memcache.local": "\\OC\\Memcache\\Redis",
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "filelocking.enabled": true,
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 0
        },
        "updater.release.channel": "stable"
    }
}

Nextcloud Signing status

No errors have been found.

Additional Information

No response

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.