Skip to content
This repository has been archived by the owner on Jan 25, 2019. It is now read-only.

TBrookRouterHandler doesn't link to TBrookRouter #120

Closed
leledumbo opened this issue Nov 1, 2015 · 5 comments
Closed

TBrookRouterHandler doesn't link to TBrookRouter #120

leledumbo opened this issue Nov 1, 2015 · 5 comments

Comments

@leledumbo
Copy link
Collaborator

I'm testing brook components. So far, TBrookMiddlewareHandler works great by registering itself before / after action execution. However, TBrookRouterHandler doesn't seem to register itself to the listed events. I put a breakpoint in TBrookRouter.MatchPattern and:

if Assigned(FBeforeMatchPattern) then

keeps returning false even though I have filled the BeforeMatchPattern events in object inspector. I need to use the component to redirect empty path info to /.

@silvioprog
Copy link
Owner

Hum... I can't understand even with the explanation. Can you send a small demo showing the problem? I use middleware in an application that the user is redirected to the login page if he is not logged.

@leledumbo
Copy link
Collaborator Author

brookroutertest.tar.gz.pdf

remove the .pdf extension (damn github)

@silvioprog
Copy link
Owner

I downloaded it. =)

I'll debug this problem tonight ...

@silvioprog
Copy link
Owner

I can't detect if it is a problem in Brook sources or in the compiler. :-(

I'm going to try it again...

@silvioprog
Copy link
Owner

Fixed in trunk. Thanks for reporting! :-)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants