Skip to content

8.3.0-beta.1: Type error in TableManager.php #4210

Description

@nursoda

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

I updated polls on my test instance to new beta version 8.3.0-beta.1.
It yields

An unhandled exception has been thrown:
TypeError: OCA\Polls\Db\TableManager::deleteDuplicates():
Argument #2 ($columns) must be of type array, null given,
called in …/apps/polls/lib/Db/TableManager.php on line 336
and defined in …/apps/polls/lib/Db/TableManager.php:351

What did you expect, how polls should behave instead?

Well, not return null, or be declared nullable ;)

What steps does it need to replay this bug?

  1. Install any version <8.3.0-beta.1
  2. Update app to 8.3.0-beta.1 via OCC
  3. view output

Affected polls version

8.3.0-beta.1

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. 8.0.0 to 8.1.2)

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

not applicable

Additional client environment information

No response

NC version

Nextcloud 31

Other Nextcloud version

No response

PHP engine version

PHP 8.4

Other PHP version

No response

Database engine

MariaDB

Database Engine version or other Database

11.8.3

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

List of activated Apps

Nextcloud Signing status

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions