Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NotFoundException Error loading poll with id 0 after upgrading to 6.1.1 #3330

Closed
5 of 12 tasks
razorrazor opened this issue Feb 21, 2024 · 5 comments · Fixed by #3331
Closed
5 of 12 tasks

NotFoundException Error loading poll with id 0 after upgrading to 6.1.1 #3330

razorrazor opened this issue Feb 21, 2024 · 5 comments · Fixed by #3331
Labels

Comments

@razorrazor
Copy link

⚠️ 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 upgrading to 6.1.1 version, I receive the following NextCloud log error: NotFoundException Error loading poll with id 0

What did you expect, how polls should behave instead?

Not showing anything

What steps does it need to replay this bug?

  1. Login into NextCloud.
  2. Click on Polls menu icon.

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)

Affected polls version

6.1.1

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

No response

Additional client environment information

No response

NC version

Other/Don't know

Other Nextcloud version

28.0.2

PHP engine version

PHP 8.1

Other PHP version

No response

Database engine

MariaDB

Database Engine version or other Database

10.5.23

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

NotFoundException Error loading poll with id 0

Additional environment informations

No response

Configuration report

No response

List of activated Apps

No response

Nextcloud Signing status

No response

Additional Information

No response

@razorrazor razorrazor added the bug label Feb 21, 2024
@dartcafe
Copy link
Collaborator

I have no idea why a poll with the number 0 should be referenced. So I need more information.

Please add some more information from your log file. Use the logfile viewer in the admin section and copy the stack trace you find there in the details view.

Additionally watch the network tab and share log entries showing errors from the polls app.

@razorrazor
Copy link
Author

razorrazor commented Feb 21, 2024

NotFoundException Error loading poll with id 0
/apps/polls/lib/Model/Acl.php línea 152 OCA\Polls\Model\Acl->loadPoll()
/apps/polls/lib/Service/WatchService.php línea 58 OCA\Polls\Model\Acl->setPollId()
/apps/polls/lib/Controller/WatchController.php línea 52 OCA\Polls\Service\WatchService->watchUpdates()
/apps/polls/lib/Controller/BaseController.php línea 67 OCA\Polls\Controller\WatchController->OCA\Polls\Controller\{closure}(
  "*** sensitive parameters replaced ***"
)
/apps/polls/lib/Controller/WatchController.php línea 52 OCA\Polls\Controller\BaseController->responseLong()
/lib/private/AppFramework/Http/Dispatcher.php línea 230 OCA\Polls\Controller\WatchController->watchPoll()
/lib/private/AppFramework/Http/Dispatcher.php línea 137 OC\AppFramework\Http\Dispatcher->executeController()
/lib/private/AppFramework/App.php línea 184 OC\AppFramework\Http\Dispatcher->dispatch()
/lib/private/Route/Router.php línea 315 OC\AppFramework\App::main()
/lib/base.php línea 1069 OC\Route\Router->match()
/index.php línea 39 OC::handleRequest()

Raw registry entry:

{
  "reqId": "ZdW9PQsTqtJZAoSY9svUCQAAABU",
  "level": 3,
  "time": "2024-02-21T09:07:09+00:00",
  "remoteAddr": "XXX.XXX.XXX.XXX",
  "user": "xxx",
  "app": "index",
  "method": "GET",
  "url": "/index.php/apps/polls/poll/0/watch?offset=1708506408",
  "message": "Error loading poll with id 0",
  "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36",
  "version": "28.0.2.5",
  "exception": {
    "Exception": "OCA\\Polls\\Exceptions\\NotFoundException",
    "Message": "Error loading poll with id 0",
    "Code": 0,
    "Trace": [
      {
        "file": "/apps/polls/lib/Model/Acl.php",
        "line": 152,
        "function": "loadPoll",
        "class": "OCA\\Polls\\Model\\Acl",
        "type": "->"
      },
      {
        "file": "/apps/polls/lib/Service/WatchService.php",
        "line": 58,
        "function": "setPollId",
        "class": "OCA\\Polls\\Model\\Acl",
        "type": "->"
      },
      {
        "file": "/apps/polls/lib/Controller/WatchController.php",
        "line": 52,
        "function": "watchUpdates",
        "class": "OCA\\Polls\\Service\\WatchService",
        "type": "->"
      },
      {
        "file": "/apps/polls/lib/Controller/BaseController.php",
        "line": 67,
        "function": "OCA\\Polls\\Controller\\{closure}",
        "class": "OCA\\Polls\\Controller\\WatchController",
        "type": "->",
        "args": [
          "*** sensitive parameters replaced ***"
        ]
      },
      {
        "file": "/apps/polls/lib/Controller/WatchController.php",
        "line": 52,
        "function": "responseLong",
        "class": "OCA\\Polls\\Controller\\BaseController",
        "type": "->"
      },
      {
        "file": "/lib/private/AppFramework/Http/Dispatcher.php",
        "line": 230,
        "function": "watchPoll",
        "class": "OCA\\Polls\\Controller\\WatchController",
        "type": "->"
      },
      {
        "file": "/lib/private/AppFramework/Http/Dispatcher.php",
        "line": 137,
        "function": "executeController",
        "class": "OC\\AppFramework\\Http\\Dispatcher",
        "type": "->"
      },
      {
        "file": "/lib/private/AppFramework/App.php",
        "line": 184,
        "function": "dispatch",
        "class": "OC\\AppFramework\\Http\\Dispatcher",
        "type": "->"
      },
      {
        "file": "/lib/private/Route/Router.php",
        "line": 315,
        "function": "main",
        "class": "OC\\AppFramework\\App",
        "type": "::"
      },
      {
        "file": "/lib/base.php",
        "line": 1069,
        "function": "match",
        "class": "OC\\Route\\Router",
        "type": "->"
      },
      {
        "file": "/index.php",
        "line": 39,
        "function": "handleRequest",
        "class": "OC",
        "type": "::"
      }
    ],
    "File": "/apps/polls/lib/Model/Acl.php",
    "Line": 191,
    "message": "Error loading poll with id 0",
    "exception": [],
    "CustomMessage": "Error loading poll with id 0"
  },
  "id": "65d61ada10ec8"
}

@dartcafe
Copy link
Collaborator

Now I can reproduce this bug. But it doesn't have any affect on the usage of Polls and does not explain, why you say, you see nothing.

Can you post a screenshot?

dartcafe added a commit that referenced this issue Feb 21, 2024
Signed-off-by: dartcafe <[email protected]>
@dartcafe
Copy link
Collaborator

dartcafe commented Feb 21, 2024

I think I misunderstod your initial post and the fix will close this issue.
Thanks for reporting.

Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants