Closed joelsdc closed 4 years ago
@joelsdc I have read your details bug report. Thank you for explaining in detail.
I feel this is bug in the router when route /
is not defined. Need investigation and fix!
@joelsdc I hope you're doing well. I'm trying to wrap up the v0.13.0 release. Did fixes and enhancements. Then I will be moving on to aah revamp on v0.14.0
Can you please validate this issue against the branch wrapping-v0.13.0
and let me know?
What version of aah are you using (
aah --version
)?v0.12.3
Does this issue reproduce with the latest release?
Yes
What operating system are you using (such as macOS, Linux and Windows)?
macOS (haven't verified the bug on other platforms)
What did you do?
Create a simple service that has only one route not directly under the root path.
Example
routes.conf
:What did you expect to see?
I expected that any path that wouldn't match
.../test/something
aah should return a 404, and the log should state a "route not found".Expected:
NOTE: I have my doubts on what would the correct results be the line with
(??)
What did you see instead?
I saw the following:
Additional context
WORKAROUND: After extensive testing and trying crazy combinations I have found that if you have and "Index" route (/), this whole behavior changes:
Example2
routes.conf
:We get the correct results:
Please let me know if you need any other information.
Thanks!