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
A method handler is interfering into another handler with same name in another controller. #2663
Comments
Please, provide a minimal repository which reproduces your issue. |
same issue http://localhost:3000/user1/details controller named UserController -> /user1/details http://localhost:3000/usera/details controller named UseraController-> /usera/details |
Thanks! I'll push fix asap |
Fixed in 6.6.0 :) |
@kamilmysliwiec @daniel-dia The problem is only partially fixed. There is a very similar bug with global pipes. When 2 controllers with the same name and method are used As a result if you use pipe-based validation with for example ValidationPipe you are in trouble. The bug is still present in 6.6.3. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Bug Report
Current behavior
I had two controllers into two differnt folders and differnt modules, Both of them has a method with same
create
name./admin/entity.controller.ts
/user/entity.ontroller.ts
When I do post the following in both routes:
{"name": "test"}
,curl -X POST http://localhost:3000/admin/ -d '{"name":"test"}'
curl -X POST http://localhost:3000/user/ -d '{"name":"test"}'
It happens that
admin
create()
method logs thebody
part, not therequests
as expected.It seems to be that the definition of the
user
controller is interfering into theadmin
controller and making it to do not work properly.Environment
The text was updated successfully, but these errors were encountered: