You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I saw that there are documentation about KrakenD not supporting Colliding Routes (cannot have /user/:id and /user/new at the same time).
I tried to reproduce it in my machine, but unexpectedly, I can have /user/:id and /user/new at the same time.
Digging deeper, my colleague found out that gin have fixed the inability of httprouter to have mixed param and non-param at gin-gonic/gin#2663
Can the documentation be updated to reflect this? Thank you.
Your configuration file
The content of your krakend.json. When using the flexible configuration option, the computed file can be generated using FC_OUT=out.json
Wow, thank you so much for your feedback. Our team has given feedback to httprouter because of this problem before. Theoretically, there should be no conflict because of the existence of priority
Hi @ pascalmail you are right. In the last version we upgraded the gin router to include this change, but on 1.4.1 this is not yet stable and the documentation shouldn't encourage you to do so. There is a problem related with RedirectFixedPath that makes shared prefixes panic. The documentation has been changed in the 2.0 branch with the new fix and will be published when it's safe in the the new 2.0 release
Thanks
This issue was marked as resolved a long time ago and now has been automatically locked as there has not been any recent activity after it. You can still open a new issue and reference this link.
Describe what are you trying to do
I was reading the KrakenD documentation about creating endpoint at https://www.krakend.io/docs/endpoints/creating-endpoints/.
I saw that there are documentation about KrakenD not supporting Colliding Routes (cannot have /user/:id and /user/new at the same time).
I tried to reproduce it in my machine, but unexpectedly, I can have /user/:id and /user/new at the same time.
Digging deeper, my colleague found out that gin have fixed the inability of httprouter to have mixed param and non-param at gin-gonic/gin#2663
Can the documentation be updated to reflect this? Thank you.
Your configuration file
The content of your
krakend.json
. When using the flexible configuration option, the computed file can be generated usingFC_OUT=out.json
Commands used
How did you start the software?
Logs
If applicable, any logs you saw in the console and debugging information
I run curl to test the endpoint:
KrakenD log
Server log:
The text was updated successfully, but these errors were encountered: