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

Cannot delete my comments in public poll (User without Account) #1137

Closed
TaoTePuh opened this issue Oct 9, 2020 · 2 comments · Fixed by #1139
Closed

Cannot delete my comments in public poll (User without Account) #1137

TaoTePuh opened this issue Oct 9, 2020 · 2 comments · Fixed by #1139
Labels
Milestone

Comments

@TaoTePuh
Copy link

TaoTePuh commented Oct 9, 2020

To Reproduce
Steps to reproduce the behavior:

  1. Add new Poll.
  2. Add a public link.
  3. Visit the public link.
  4. Choose "No, I have no login".
  5. Write a comment.
  6. Try to delete the comment.
    => "Error while deleting the comment"

Information about your polls installation

Polls version?
1.5.4

Update from a prior version?
1.5.3

How did you install this version?
Appstore

Information about your Instance of Nextcloud/ownCloud

Nextcloud or ownCloud?
Nextcloud

Nextcloud/ownCloud version:
19.0.4

Logs

Nextcloud log

[index] Error: Exception: Call to a member function getUID() on null at <<closure>>

0. /var/www/nextcloud/lib/private/AppFramework/App.php line 137
   OC\AppFramework\Http\Dispatcher->dispatch(OCA\Polls\Controller\CommentController {}, "delete")
1. /var/www/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php line 47
   OC\AppFramework\App::main("OCA\\Polls\\Con ... r", "delete", OC\AppFramework\ ... {}, {commentId: "25" ... "})
2. <<closure>>
   OC\AppFramework\Routing\RouteActionHandler->__invoke({commentId: "25" ... "})
3. /var/www/nextcloud/lib/private/Route/Router.php line 297
   call_user_func(OC\AppFramework\ ... {}, {commentId: "25" ... "})
4. /var/www/nextcloud/lib/base.php line 1011
   OC\Route\Router->match("/apps/polls/comment/25")
5. /var/www/nextcloud/index.php line 37
   OC::handleRequest()

DELETE /index.php/apps/polls/comment/25
from xxx  at 2020-10-09T22:33:19+00:00
dartcafe added a commit that referenced this issue Oct 10, 2020
@dartcafe dartcafe added this to the 1.5.5 milestone Oct 10, 2020
@dartcafe
Copy link
Collaborator

Using DELETE seems to ignore the payload.

Copy link

github-actions bot commented Jun 7, 2024

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 Jun 7, 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