Skip to content

500 internal error on user create #647

@BaccanoMob

Description

@BaccanoMob

I get Error: {"status":500,"message":"invalid request params"} when I try to create a new user from user management.

From networks tab, I saw the payload was

{
  "what": "user",
  "which": [],
  "data": {
    "stickySidebar": false,
    "darkMode": true,
    "locale": "en",
    "viewMode": "normal",
    "singleClick": false,
    "showHidden": false,
    "dateFormat": false,
    "gallerySize": 3,
    "themeColor": "var(--blue)",
    "quickDownload": true,
    "disableOnlyOfficeExt": ".txt .csv .html .pdf",
    "lockPassword": false,
    "preview": {
      "highQuality": false,
      "image": false,
      "video": false,
      "motionVideoPreview": false,
      "office": false,
      "popup": false
    },
    "permissions": {
      "api": true,
      "admin": true,
      "modify": true,
      "share": true,
      "realtime": true
    },
    "loginMethod": "password",
    "password": "12345",
    "scopes": [
      {
        "path": "/data",
        "name": "data",
        "config": {
          "indexingInterval": 0,
          "disabled": false,
          "maxWatchers": 0,
          "neverWatchPaths": null,
          "ignoreHidden": false,
          "ignoreZeroSizeFolders": false,
          "exclude": {
            "files": null,
            "folders": null,
            "fileEndsWith": null
          },
          "include": {
            "files": null,
            "folders": null,
            "fileEndsWith": null
          },
          "defaultUserScope": "/home",
          "defaultEnabled": true,
          "createUserDir": true
        }
      },
      {
        "name": "abc",
        "scope": ""
      },
      {
        "name": "backend",
        "scope": ""
      }
    ],
    "username": "legoblocks"
  }
}

Relevant part of config

auth:
  tokenExpirationHours: 2
  methods:
    noauth: false
    proxy:
      enabled: false
    password:
      enabled: true
      minLength: 5
      signup: true
    oidc:
      enabled: false

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingregressionsomething stopped working

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions