nextcloud / polls

🗳️ Polls app for Nextcloud
https://apps.nextcloud.com/apps/polls
GNU Affero General Public License v3.0
256 stars 73 forks source link

Optional parameter $userId declared before required parameter $path is implicitly treated as a required parameter #3519

Closed PatrickJosh closed 5 months ago

PatrickJosh commented 5 months ago

⚠️ This issue respects the following points: ⚠️

What went wrong, what did you observe?

Since the update to Nextcloud 29.0.1, the following error is logged about every five minutes in my Nextcloud's log:

{
  "reqId": "bUyFbbNp24BYYhVcZMBK",
  "level": 3,
  "time": "2024-05-24T08:30:52+00:00",
  "remoteAddr": "",
  "user": "--",
  "app": "PHP",
  "method": "",
  "url": "--",
  "message": "Optional parameter $userId declared before required parameter $path is implicitly treated as a required parameter at /var/www/nextcloud-subvolume/nextcloud/apps/deck/lib/Service/ConfigService.php#234",
  "userAgent": "--",
  "version": "29.0.1.1",
  "data": {
    "app": "PHP"
  },
  "id": "665050469c34b"
}

It occurs every time when the cron job is executed.

What did you expect, how polls should behave instead?

No error.

What steps does it need to replay this bug?

  1. Install polls 7.0.3 on Nextcloud 29.0.1

Installation method

Installed/updated using occ

Installation type

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

Affected polls version

7.0.3

Which browser did you use, when experiencing the bug?

Other browser

No response

Add your browser log here

No response

Additional client environment information

No response

NC version

Nextcloud 29

Other Nextcloud version

29.0.1

PHP engine version

PHP 8.3

Other PHP version

No response

Database engine

MariaDB

Database Engine version or other Database

mariadb Ver 15.1 Distrib 10.5.23-MariaDB, for Linux (x86_64) using EditLine wrapper

Which user-backends are you using?

Add your nextcloud server log here

{
  "reqId": "bUyFbbNp24BYYhVcZMBK",
  "level": 3,
  "time": "2024-05-24T08:30:52+00:00",
  "remoteAddr": "",
  "user": "--",
  "app": "PHP",
  "method": "",
  "url": "--",
  "message": "Optional parameter $userId declared before required parameter $path is implicitly treated as a required parameter at /var/www/nextcloud-subvolume/nextcloud/apps/deck/lib/Service/ConfigService.php#234",
  "userAgent": "--",
  "version": "29.0.1.1",
  "data": {
    "app": "PHP"
  },
  "id": "665050469c34b"
}

Additional environment informations

Using Fedora Linux 39, with up to date software. The error already did occur before I switched to PHP 8.3. I was using PHP 8.2 beforehand.

Configuration report

{                               
    "system": {                     
        "instanceid": "***REMOVED SENSITIVE VALUE***", 
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "***REMOVED SENSITIVE VALUE***",                        
            "***REMOVED SENSITIVE VALUE***",
            "127.0.0.1"                                  
        ],                                                                                                             
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "29.0.1.1",
        "overwrite.cli.url": "***REMOVED SENSITIVE VALUE***",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",                       
        "dbtableprefix": "oc_",                   
        "default_language": "en_GB", 
        "mysql.utf8mb4": true,          
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "enabledPreviewProviders": [
            "OC\\Preview\\BMP",
            "OC\\Preview\\GIF",                                                                                        
            "OC\\Preview\\JPEG",           
            "OC\\Preview\\MarkDown",                                                                                   
            "OC\\Preview\\MP3",                     
            "OC\\Preview\\PNG",                       
            "OC\\Preview\\TXT",
            "OC\\Preview\\XBitmap",     
            "OC\\Preview\\OpenDocument",
            "OC\\Preview\\Krita",       
            "OC\\Preview\\HEIC",
            "OC\\Preview\\TIFF",
            "OC\\Preview\\Movie",
            "OC\\Preview\\MKV",                                                                                                                                                                                                               
            "OC\\Preview\\MP4",                                           
            "OC\\Preview\\AVI",        
            "OC\\Preview\\Image"      
        ],                                      
        "default_phone_region": "DE",
        "installed": true,
        "memcache.local": "\\OC\\Memcache\\APCu",
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",       
        "redis": {                                                                                                                                                                                                                            
            "host": "***REMOVED SENSITIVE VALUE***",                                                                                                                                                                                          
            "port": "0"                                                                                                
        },                                                 
        "htaccess.RewriteBase": "\/",                                                                                                                                                                                                         
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",                                                                                                                                                                                 
        "mail_smtpmode": "smtp",
        "mail_sendmailmode": "smtp",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpsecure": "ssl",                       
        "mail_smtpauthtype": "LOGIN",             
        "mail_smtpauth": 1, 
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "465",     
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",                                                          
        "maintenance": false,                            
        "theme": "",      
        "loglevel": 1,        
        "logfile": "\/var\/log\/nextcloud\/nextcloud.log",                                                             
        "logfilemode": 384,                       
        "lost_password_link": "disabled",         
        "updater.release.channel": "stable",
        "trashbin_retention_obligation": "60, 61",
        "twofactor_enforced": "true",
        "twofactor_enforced_groups": [],
        "twofactor_enforced_excluded_groups": [   
            "guest_app",                              
            "Testing"               
        ],                     
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",                                                            
        "memories.exiftool_no_local": true,
        "memories.vod.path": "\/var\/www\/nextcloud-subvolume\/nextcloud\/apps\/memories\/bin-ext\/go-vod-amd64",      
        "memories.vod.ffmpeg": "\/usr\/bin\/ffmpeg",
        "memories.vod.ffprobe": "\/usr\/bin\/ffprobe",
        "defaultapp": "",      
        "maintenance_window_start": "1",
        "memories.gis_type": 1,         
        "memories.db.triggers.fcu": true
    }                           
}

List of activated Apps

Enabled:             
  - activity: 2.21.1
  - announcementcenter: 6.8.1
  - calendar: 4.7.4
  - circles: 29.0.0-dev
  - cloud_federation_api: 1.12.0
  - comments: 1.19.0             
  - contacts: 6.0.0           
  - contactsinteraction: 1.10.0
  - cospend: 1.6.1            
  - dashboard: 7.9.0  
  - dav: 1.30.1  
  - deck: 1.13.0         
  - federatedfilesharing: 1.19.0
  - federation: 1.19.0
  - files: 2.1.0       
  - files_downloadlimit: 2.0.0                 
  - files_external: 1.21.0           
  - files_pdfviewer: 2.10.0               
  - files_reminders: 1.2.0
  - files_sharing: 1.21.0           
  - files_trashbin: 1.19.0                    
  - files_versions: 1.22.0           
  - firstrunwizard: 2.18.0         
  - forms: 4.2.3                                 
  - guests: 3.1.0                              
  - logreader: 2.14.0                          
  - lookup_server_connector: 1.17.0                  
  - mail: 3.6.1                  
  - memories: 7.3.1                    
  - music: 1.11.0                  
  - nextcloud_announcements: 1.18.0    
  - notes: 4.10.0                     
  - notifications: 2.17.0                       
  - notify_push: 0.6.11    
  - oauth2: 1.17.0   
  - password_policy: 1.19.0                
  - phonetrack: 0.8.1                         
  - photos: 2.5.0
  - polls: 7.0.3                                                                                                                                                                                                                              
  - previewgenerator: 5.5.0    
  - privacy: 1.13.0
  - provisioning_api: 1.19.0
  - qownnotesapi: 24.4.0
  - recommendations: 2.1.0
  - related_resources: 1.4.0
  - serverinfo: 1.19.0
  - settings: 1.12.0
  - sharebymail: 1.19.0
  - spreed: 19.0.1
  - support: 1.12.0
  - survey_client: 1.17.0
  - systemtags: 1.19.0
  - tables: 0.7.2
  - tasks: 0.16.0
  - text: 3.10.0
  - theming: 2.4.0
  - twofactor_admin: 4.5.0
  - twofactor_backupcodes: 1.18.0
  - twofactor_totp: 11.0.0-dev
  - twofactor_webauthn: 1.4.0
  - updatenotification: 1.19.1
  - user_status: 1.9.0
  - viewer: 2.3.0
  - weather_status: 1.9.0
  - workflowengine: 2.11.0
Disabled:
  - admin_audit: 1.19.0
  - bruteforcesettings: 2.9.0 (installed 2.4.0)
  - checksum: 1.2.4 (installed 1.2.4)
  - collectives: 2.11.0 (installed 2.11.0)
  - encryption: 2.17.0
  - extract: 1.3.6 (installed 1.3.6)
  - files_rightclick: 0.15.1 (installed 1.6.0)
  - gpxpod: 5.0.18 (installed 5.0.18)
  - health: 2.2.2 (installed 2.2.2)
  - integration_gitlab: 1.0.19 (installed 1.0.19)
  - integration_google: 2.2.0 (installed 2.2.0)
  - integration_moodle: 1.0.2 (installed 1.0.2)
  - integration_whiteboard: 0.0.14 (installed 0.0.14)
  - maps: 1.4.0 (installed 1.4.0)
  - metadata: 0.19.0 (installed 0.19.0)
  - news: 24.0.0 (installed 24.0.0)
  - onlyoffice: 9.2.0 (installed 9.2.0)
  - recognize: 6.1.1 (installed 6.1.1)
  - socialsharing_email: 3.1.0 (installed 3.1.0)
  - suspicious_login: 7.0.0
  - user_ldap: 1.20.0
  - user_migration: 5.0.0 (installed 5.0.0)
  - workflow_script: 1.13.1 (installed 1.13.1)

Nextcloud Signing status

No errors have been found.

Additional Information

No response

PatrickJosh commented 5 months ago

I'm sorry, I just noticed I've reported the issue against the wrong repo. I guess I should've slept more. :sweat_smile: My apologies.

github-actions[bot] commented 4 months ago

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.