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
A master routing rule (/gateleen/resources/v1/(.*) which forwards to another rule (/gateleen/other/resources/v1/(.*)).
When hooks for both URLs are created, the second hook (to /gateleen/other/resources/v1/(.*)) will never be triggered because of the x-hooked request header added by the HookHandler class.
The HookHandler checks whether a request is already hooked with
/** * Checks if the original Request was already hooked. * Eg. After a request is processed by the hook handler * (register), the handler creates a self request with * a copy of the original request. Therefore it's * necessary to mark the request as already hooked. * * @param request request * @return true if the original request was already hooked. */publicbooleanisRequestAlreadyHooked(HttpServerRequestrequest) {
Stringhooked = request.headers().get(HOOKED_HEADER);
returnhooked != null && hooked.equals("true");
}
When forwarding a request, the original request headers are copied to the new client request. I am not sure whether we should also copy the x-hooked request header.
@ljucam I assigned it to you, since you are the master of the hooks :-)
The text was updated successfully, but these errors were encountered:
Consider the following routing rules:
A master routing rule (/gateleen/resources/v1/(.*) which forwards to another rule (/gateleen/other/resources/v1/(.*)).
When hooks for both URLs are created, the second hook (to /gateleen/other/resources/v1/(.*)) will never be triggered because of the x-hooked request header added by the HookHandler class.
The HookHandler checks whether a request is already hooked with
When forwarding a request, the original request headers are copied to the new client request. I am not sure whether we should also copy the x-hooked request header.
@ljucam I assigned it to you, since you are the master of the hooks :-)
The text was updated successfully, but these errors were encountered: