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 found an issue when re-ordering the elements in the log output pattern. If you change the logPattern in the server-config.yaml file to be "%m %D cs-uri" the example application crashes.
The issue appears to be caused by failing to resolve all the pattern elements in com.mdac.vertx.web.accesslogger.configuration.pattern.PatternResolver#resolvePattern. I've raised a pull request that adds a unit test and attempts to fix the issue by moving the offset check to only run if the extracted position is == to the previously found element.
I wasn't certain of the purpose of checking the offset, perhaps it can be ignored completely?
Good finding, very much appreciated. Indeed the offset check I added if I remember correct as you might have various elements starting with %{ and ending with }something and as the resolver does not eg takes in account opening and closing of those brackets you could get various candidates and then the one with the lowest offset should be the one you really want.
However it looks like I missed to add an equals here
I found an issue when re-ordering the elements in the log output pattern. If you change the logPattern in the server-config.yaml file to be "%m %D cs-uri" the example application crashes.
The issue appears to be caused by failing to resolve all the pattern elements in com.mdac.vertx.web.accesslogger.configuration.pattern.PatternResolver#resolvePattern. I've raised a pull request that adds a unit test and attempts to fix the issue by moving the offset check to only run if the extracted position is == to the previously found element.
I wasn't certain of the purpose of checking the offset, perhaps it can be ignored completely?
Happy to hear any comments.
Pull request: #10
The text was updated successfully, but these errors were encountered: