Bug Report: (Administrator) Creating a new user or role throws an error #9
Labels
No Label
bug
duplicate
enhancement
H
help wanted
invalid
L
M
question
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: geolba/tethys.backend#9
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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:
Bug Report: (Administrator role) Creating a new user throws an errorto Bug Report: (Administrator role) Creating a new user or role throws an errorBug Report: (Administrator role) Creating a new user or role throws an errorto Bug Report: (Administrator) Creating a new user or role throws an errorThis has been solved.