https://bz.apache.org/bugzilla/show_bug.cgi?id=70061
--- Comment #4 from Philippe Cloutier <[email protected]> --- (In reply to Rich Bowen from comment #1) > This ticket seems to discuss two separate things - the presence (or absence) > of the ! character in the rewriterule pattern, and RewriteCond patterns. > Right? Not really. The documentation is confused about the special characters (in particular "!") used at the beginning of the arguments of RewriteCond and RewriteRule which contain patterns. It considers these characters as part of the pattern, and therefore, that a condition is only satisfied when the pattern matches. This confusion is evident in several places. > But then it also talks about backreferences. Trying to disambiguate > all of the isssues addressed here. I fail to see the ambiguity here. The specification of back-references is just one place which assumes the pattern matches if the rule triggers. (In reply to Rich Bowen from comment #2) > The pattern either matches, or it does not. Regex does not have a concept of > "at least one match." It's either 1 or 0, and backreferences are only > defined if there is a match. Regular expressions are complex. There are multiple dialects, libraries, functions and modes, but in general, a pattern can have multiple matches in “subject string”. If the pattern is "s", there is 1 match for [0→1] and another for [8→9]. See pcre2demo(3) and its "-g" switch. However, you are right that mod_rewrite does not find all of these; a positive main condition is satisfied as soon as the subject-path has at least 1 matching substring. (In reply to Rich Bowen from comment #3) > I'm reasonably sure that everything that this ticket mentions was addressed > in r1934480 and r1934481. Thank you once again Rich, but r1934480 does not fully fix. The section still contains: > The Substitution of a rewrite rule is the string that replaces the original > URL-path that was matched by Pattern. The patch fixes that. By the way, the inability to restore the status (from NEEDINFO) is tracked in INFRA-27948. -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
