Skip to content

Unable to permanently delete a user #2035

@vlunak-cen55224

Description

@vlunak-cen55224

Describe the bug

When trying to delete user as a admin, HTTP 404 is received from the DELETE endpoint /device-farm/api/auth/users/79f47a31-fd64-4053-9902-c0ea906bc6d8 and user stays in the system.

HTTP response message:

{
    "value": {
        "error": "unknown command",
        "message": "The requested resource could not be found, or a request was received using an HTTP method that is not supported by the mapped resource.",
        "stacktrace": "UnknownCommandError: The requested resource could not be found, or a request was received using an HTTP method that is not supported by the mapped resource.\n    at catch404Handler (/usr/local/lib/node_modules/appium/node_modules/@appium/base-driver/lib/express/middleware.js:158:49)\n    at Layer.handleRequest (/usr/local/lib/node_modules/appium/node_modules/router/lib/layer.js:152:17)\n    at next (/usr/local/lib/node_modules/appium/node_modules/router/lib/route.js:157:13)\n    at Route.dispatch (/usr/local/lib/node_modules/appium/node_modules/router/lib/route.js:117:3)\n    at handle (/usr/local/lib/node_modules/appium/node_modules/router/index.js:435:11)\n    at Layer.handleRequest (/usr/local/lib/node_modules/appium/node_modules/router/lib/layer.js:152:17)\n    at /usr/local/lib/node_modules/appium/node_modules/router/index.js:295:15\n    at param (/usr/local/lib/node_modules/appium/node_modules/router/index.js:600:14)\n    at param (/usr/local/lib/node_modules/appium/node_modules/router/index.js:610:14)\n    at processParams (/usr/local/lib/node_modules/appium/node_modules/router/index.js:664:3)\n    at Immediate.next (/usr/local/lib/node_modules/appium/node_modules/router/index.js:291:5)\n    at Immediate._onImmediate (/Users/<user>/.appium/node_modules/appium-device-farm/node_modules/router/index.js:688:15)\n    at processImmediate (node:internal/timers:487:21)\n    at process.callbackTrampoline (node:internal/async_hooks:130:17)"
    }
}

Creating users or deactivating them works. After page refresh, deleted user is visible again in the user list.

Link to Appium logs

https://gist.github.com/vlunak-cen55224/b59d809a03ce461ee627cd635e590814

Environment

  1. Appium version (or git revision) that exhibits the issue: 3.2.0
  2. Last Appium version that did not exhibit the issue (if applicable): -
  3. Node.js version (unless using Appium.app|exe): 22.22.1
  4. Npm or Yarn package manager: npm
  5. Mobile platform/version under test: -
  6. Real device or emulator/simulator: -
  7. Appium CLI or Appium.app|exe: appium command

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions