Skip to content

400 Error when trying to assign circle to card #7026

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

Open
y3n4 opened this issue May 27, 2025 · 1 comment
Open

400 Error when trying to assign circle to card #7026

y3n4 opened this issue May 27, 2025 · 1 comment

Comments

@y3n4
Copy link

y3n4 commented May 27, 2025

How to use GitHub

  • Please use the 👍 reaction to show that you are affected by the same issue.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Describe the bug
Trying to assign a circle to a card returns 400

To Reproduce

  1. Open any card in deck
  2. Open assignment menu and select the circle that is the owner of the Deck
  3. Press return or just click
  4. -> 400 Error

Expected behavior
As of #1629, I believe it should be possible to assign a circle to a card.

Server details

Operating system: Debian 12

Web server: Apache2

Database: 15.1

PHP version: 8.2.28

Nextcloud version: 30.0.11

Where did you install Nextcloud from:

Logs

Nextcloud log (data/nextcloud.log)

{
  "Exception": "OCA\\\\Deck\\\\BadRequestException",
  "Message": "userId must be provided and must be not empty",
  "Code": 0,
  "Trace": [
    {
      "file": "/var/www/nc/nextcloud-30.0.11/apps/deck/lib/Validators/BaseValidator.php",
      "line": 66,
      "function": "validate",
      "class": "OCA\\\\Deck\\\\Validators\\\\BaseValidator",
      "type": "->"
    },
    {
      "file": "/var/www/nc/nextcloud-30.0.11/apps/deck/lib/Service/AssignmentService.php",
      "line": 91,
      "function": "check",
      "class": "OCA\\\\Deck\\\\Validators\\\\BaseValidator",
      "type": "->"
    },
    {
      "function": "__construct",
      "class": "OCA\\\\Deck\\\\Service\\\\AssignmentService",
      "type": "->"
    },
    {
      "file": "/var/www/nc/nextcloud-30.0.11/lib/private/AppFramework/Utility/SimpleContainer.php",
      "line": 61,
      "function": "newInstanceArgs",
      "class": "ReflectionClass",
      "type": "->"
    },
    {
      "file": "/var/www/nc/nextcloud-30.0.11/lib/private/AppFramework/Utility/SimpleContainer.php",
      "line": 106,
      "function": "buildClass",
      "class": "OC\\\\AppFramework\\\\Utility\\\\SimpleContainer",
      "type": "->"
    },
    {
      "file": "/var/www/nc/nextcloud-30.0.11/lib/private/AppFramework/Utility/SimpleContainer.php",
      "line": 124,
      "function": "resolve",
      "class": "OC\\\\AppFramework\\\\Utility\\\\SimpleContainer",
      "type": "->"
    },
    {
      "file": "/var/www/nc/nextcloud-30.0.11/lib/private/AppFramework/DependencyInjection/DIContainer.php",
      "line": 453,
      "function": "query",
      "class": "OC\\\\AppFramework\\\\Utility\\\\SimpleContainer",
      "type": "->"
    },
    {
      "file": "/var/www/nc/nextcloud-30.0.11/lib/private/AppFramework/DependencyInjection/DIContainer.php",
      "line": 425,
      "function": "queryNoFallback",
      "class": "OC\\\\AppFramework\\\\DependencyInjection\\\\DIContainer",
      "type": "->"
    },
    {
      "file": "/var/www/nc/nextcloud-30.0.11/lib/private/AppFramework/Utility/SimpleContainer.php",
      "line": 74,
      "function": "query",
      "class": "OC\\\\AppFramework\\\\DependencyInjection\\\\DIContainer",
      "type": "->"
    },
    {
      "function": "OC\\\\AppFramework\\\\Utility\\\\{closure}",
      "class": "OC\\\\AppFramework\\\\Utility\\\\SimpleContainer",
      "type": "->",
      "args": [
        "*** sensitive parameters replaced ***"
      ]
    },
    {
      "file": "/var/www/nc/nextcloud-30.0.11/lib/private/AppFramework/Utility/SimpleContainer.php",
      "line": 61,
      "function": "array_map"
    },
    {
      "file": "/var/www/nc/nextcloud-30.0.11/lib/private/AppFramework/Utility/SimpleContainer.php",
      "line": 106,
      "function": "buildClass",
      "class": "OC\\\\AppFramework\\\\Utility\\\\SimpleContainer",
      "type": "->"
    },
    {
      "file": "/var/www/nc/nextcloud-30.0.11/lib/private/AppFramework/Utility/SimpleContainer.php",
      "line": 124,
      "function": "resolve",
      "class": "OC\\\\AppFramework\\\\Utility\\\\SimpleContainer",
      "type": "->"
    },
    {
      "file": "/var/www/nc/nextcloud-30.0.11/lib/private/AppFramework/DependencyInjection/DIContainer.php",
      "line": 453,
      "function": "query",
      "class": "OC\\\\AppFramework\\\\Utility\\\\SimpleContainer",
      "type": "->"
    },
    {
      "file": "/var/www/nc/nextcloud-30.0.11/lib/private/AppFramework/DependencyInjection/DIContainer.php",
      "line": 425,
      "function": "queryNoFallback",
      "class": "OC\\\\AppFramework\\\\DependencyInjection\\\\DIContainer",
      "type": "->"
    },
    {
      "file": "/var/www/nc/nextcloud-30.0.11/lib/private/AppFramework/App.php",
      "line": 140,
      "function": "query",
      "class": "OC\\\\AppFramework\\\\DependencyInjection\\\\DIContainer",
      "type": "->"
    },
    {
      "file": "/var/www/nc/nextcloud-30.0.11/lib/private/Route/Router.php",
      "line": 303,
      "function": "main",
      "class": "OC\\\\AppFramework\\\\App",
      "type": "0:0:0:0:0:0:0:0"
    },
    {
      "file": "/var/www/nc/nextcloud-30.0.11/lib/base.php",
      "line": 1010,
      "function": "match",
      "class": "OC\\\\Route\\\\Router",
      "type": "->"
    },
    {
      "file": "/var/www/nc/nextcloud-30.0.11/index.php",
      "line": 24,
      "function": "handleRequest",
      "class": "OC",
      "type": "0:0:0:0:0:0:0:0"
    }
  ],
  "File": "/var/www/nc/nextcloud-30.0.11/apps/deck/lib/Validators/BaseValidator.php",
  "Line": 47,
  "message": "userId must be provided and must be not empty",
  "exception": {},
  "CustomMessage": "userId must be provided and must be not empty"
}

Browser log

{"userId":"REDACTED","type":7}

Response:

{"status":400,"message":"Invalid type provided for assignemnt"}
@luka-nextcloud
Copy link
Contributor

I can reproduce the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants