You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2019/11/12 12:13:31 UTC

[Bug 63919] New: =

https://bz.apache.org/bugzilla/show_bug.cgi?id=63919

            Bug ID: 63919
           Summary: =
           Product: Apache httpd-2
           Version: 2.4.41
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_rewrite
          Assignee: bugs@httpd.apache.org
          Reporter: vcaron@bearstech.com
  Target Milestone: ---

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 63919] =CondPattern (lexicographically equal) does not seem to work with usual double quoting

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=63919

Eric Covener <co...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|INVALID                     |---
             Status|RESOLVED                    |REOPENED

--- Comment #4 from Eric Covener <co...@gmail.com> ---
reopen for docs

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 63919] =CondPattern (lexicographically equal) does not seem to work with usual double quoting

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=63919

--- Comment #3 from Vincent Caron <vc...@bearstech.com> ---
Oh thanks.

I think that would need some clarification in mod_rewrite reference doc,
because the allowed ="" syntax makes this situation non-intuitive.

Like adding an explicit "The string comparison operator is part of the
CondPattern argument and must be included in the quotes if those are used. Eg.

RewriteCond %{HTTP_USER_AGENT} "=This Robot/1.0"
"

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 63919] =CondPattern (lexicographically equal) does not seem to work with usual double quoting

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=63919

Christophe JAILLET <ch...@wanadoo.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|REOPENED                    |RESOLVED

--- Comment #5 from Christophe JAILLET <ch...@wanadoo.fr> ---
Note added in r1870427 (trunk) and r1870428 (2.4.x)

Will be visible online when doc is rebuilt

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 63919] =CondPattern (lexicographically equal) does not seem to work with usual double quoting

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=63919

Vincent Caron <vc...@bearstech.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|=                           |=CondPattern
                   |                            |(lexicographically equal)
                   |                            |does not seem to work with
                   |                            |usual double quoting

--- Comment #1 from Vincent Caron <vc...@bearstech.com> ---
This simple snippet is valid (quoted arg as regex) :

RewriteEngine On
RewriteCond "%{HTTP_USER_AGENT}" "Foo Bar"
RewriteRule . - [F,L]


This other one is fine (and clearly documented) :

RewriteEngine On
RewriteCond "%{HTTP_USER_AGENT}" =""
RewriteRule . - [F,L]

But this one fails with a "RewriteCond: bad flag delimiters" error, and can
only be fixed by escaping spaces on the condpattern :

RewriteEngine On
RewriteCond "%{HTTP_USER_AGENT}" ="Foo Bar"
RewriteRule . - [F,L]

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 63919] =CondPattern (lexicographically equal) does not seem to work with usual double quoting

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=63919

Eric Covener <co...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |INVALID
             Status|NEW                         |RESOLVED

--- Comment #2 from Eric Covener <co...@gmail.com> ---
> RewriteCond "%{HTTP_USER_AGENT}" ="Foo Bar"

The config parser doesn't let you quote part of an argument, only leading
quotes are signfificant/impact the tokenization (after extra leading
whitespace) of arguments.

It's best to move the = (or !) inside the quotes since they are part of the
argument.  A similar pattern is used for directives that take <if>-like
expressions as arguments where they used to take something else -- you will see
e.g. Header set foo bar "expr=(%{..."

(invalid status not quite right, but the syntax is what it is)

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org