coheigea opened a new pull request, #3705:
URL: https://github.com/apache/cxf/pull/3705

   An unconstrained template variable compiles to the lazy regex ([^/]+?).
   When several such variables are adjacent in one path segment, as in
   @Path("/{a}{b}{c}.json"), a request path that does not match makes the
   regex engine try every way of splitting the segment between them. The
   cost is polynomial in the segment length.
   
   An unconstrained variable directly followed by another unconstrained
   variable only ever binds one character, because the next variable can
   absorb anything longer. Compile such variables to ([^/]) instead. The
   paths that match and the values bound are unchanged, but matching is
   now linear in the segment length.
   
   Custom {name:regex} patterns are still compiled as written.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to