Bug Report: (Administrator) Creating a new user or role throws an error #9

Closed
opened 2024-02-19 13:05:32 +00:00 by porfra · 1 comment
Member

Issue Description:
When a user with role administrator creates a new user, an error message appears after using the Submit button.
http://192.168.21.18/admin/user/create

This happens also when creating a new user role.
http://192.168.21.18/admin/role/create

Steps to Reproduce:

  • Access with a user with role Administrator

  • Use the user creation function and fill correctly the fields

  • Click submit

  • Obtain the message error

  • Check that the user has been in fact created and appears in the user search menu

  • Repeat same procedure for role creation

Expected Behavior:
The submission of /admin/user/create generates a message confirming the creation of a new user.
The same for role creation.

Actual Behavior:
The submission of /admin/user/create generates an error message.
The same for role creation.

Additional Information:

Dev console (user creation):

[14:00:40.712] ERROR (myapp/1671): E_CANNOT_FIND_ROUTE: Cannot find route for "user.index" identifier
err: {
"type": "RouterException",
"message": "E_CANNOT_FIND_ROUTE: Cannot find route for "user.index" identifier",
"stack":
RouterException: E_CANNOT_FIND_ROUTE: Cannot find route for "user.index" identifier
at Function.cannotLookupRoute (/home/administrator/test.backend/node_modules/@adonisjs/http-server/build/src/Exceptions/RouterException.js:63:23)
at Routes.findOrFail (/home/administrator/test.backend/node_modules/@adonisjs/http-server/build/src/Router/LookupStore.js:39:53)
at UrlBuilder.make (/home/administrator/test.backend/node_modules/@adonisjs/http-server/build/src/Router/LookupStore.js:166:39)
at Router.makeUrl (/home/administrator/test.backend/node_modules/@adonisjs/http-server/build/src/Router/index.js:315:24)
at Redirect.toRoute (/home/administrator/test.backend/node_modules/@adonisjs/http-server/build/src/Redirect/index.js:115:33)
at UsersController.store (/home/administrator/test.backend/app/Controllers/Http/Admin/UsersController.ts:97:36)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at Object.PreCompiler.runRouteHandler [as fn] (/home/administrator/test.backend/node_modules/@adonisjs/http-server/build/src/Server/PreCompiler/index.js:47:31)
at Can.handle (/home/administrator/test.backend/app/Middleware/Can.ts:36:9)
at Role.handle (/home/administrator/test.backend/app/Middleware/Role.ts:35:9)
"help": "When making URL for a route. You can use one of the following identifiers\n- The route name. Defined using Route.as()\n- The route controller.method name. PostsController.show"
}

Environment:

  • Vue3
  • Adonisjs
  • Dashboard component (/admin/user/create)
  • Dashboard component (/admin/role/create)
  • Dashboard component (/admin/role/store)
**Issue Description:** When a user with role administrator creates a new user, an error message appears after using the Submit button. http://192.168.21.18/admin/user/create This happens also when creating a new user role. http://192.168.21.18/admin/role/create **Steps to Reproduce:** - [ ] Access with a user with role Administrator - [ ] Use the user creation function and fill correctly the fields - [ ] Click submit - [ ] Obtain the message error - [ ] Check that the user has been in fact created and appears in the user search menu - [ ] Repeat same procedure for role creation **Expected Behavior:** The submission of /admin/user/create generates a message confirming the creation of a new user. The same for role creation. **Actual Behavior:** The submission of /admin/user/create generates an error message. The same for role creation. **Additional Information:** Dev console (user creation): [14:00:40.712] ERROR (myapp/1671): E_CANNOT_FIND_ROUTE: Cannot find route for "user.index" identifier err: { "type": "RouterException", "message": "E_CANNOT_FIND_ROUTE: Cannot find route for \"user.index\" identifier", "stack": RouterException: E_CANNOT_FIND_ROUTE: Cannot find route for "user.index" identifier at Function.cannotLookupRoute (/home/administrator/test.backend/node_modules/@adonisjs/http-server/build/src/Exceptions/RouterException.js:63:23) at Routes.findOrFail (/home/administrator/test.backend/node_modules/@adonisjs/http-server/build/src/Router/LookupStore.js:39:53) at UrlBuilder.make (/home/administrator/test.backend/node_modules/@adonisjs/http-server/build/src/Router/LookupStore.js:166:39) at Router.makeUrl (/home/administrator/test.backend/node_modules/@adonisjs/http-server/build/src/Router/index.js:315:24) at Redirect.toRoute (/home/administrator/test.backend/node_modules/@adonisjs/http-server/build/src/Redirect/index.js:115:33) at UsersController.store (/home/administrator/test.backend/app/Controllers/Http/Admin/UsersController.ts:97:36) at processTicksAndRejections (node:internal/process/task_queues:95:5) at Object.PreCompiler.runRouteHandler [as fn] (/home/administrator/test.backend/node_modules/@adonisjs/http-server/build/src/Server/PreCompiler/index.js:47:31) at Can.handle (/home/administrator/test.backend/app/Middleware/Can.ts:36:9) at Role.handle (/home/administrator/test.backend/app/Middleware/Role.ts:35:9) "help": "When making URL for a route. You can use one of the following identifiers\n- The route name. Defined using `Route.as()`\n- The route controller.method name. `PostsController.show`" } **Environment:** - Vue3 - Adonisjs - Dashboard component (/admin/user/create) - Dashboard component (/admin/role/create) - Dashboard component (/admin/role/store)
porfra added the
bug
label 2024-02-19 13:05:32 +00:00
kaiarn was assigned by porfra 2024-02-19 13:05:32 +00:00
porfra added this to the (deleted) project 2024-02-19 13:05:32 +00:00
porfra added the
L
label 2024-02-19 13:41:01 +00:00
porfra changed title from Bug Report: (Administrator role) Creating a new user throws an error to Bug Report: (Administrator role) Creating a new user or role throws an error 2024-02-20 10:12:51 +00:00
porfra changed title from Bug Report: (Administrator role) Creating a new user or role throws an error to Bug Report: (Administrator) Creating a new user or role throws an error 2024-02-21 12:05:34 +00:00
Author
Member

This has been solved.

This has been solved.
porfra added this to the Iteration 1: All "Bugs" are solved milestone 2024-07-17 14:06:28 +00:00
Sign in to join this conversation.
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: geolba/tethys.backend#9
No description provided.