Bug 62303 - Syntax error in documentation of Require expr (no quote needed)
Summary: Syntax error in documentation of Require expr (no quote needed)
Status: RESOLVED FIXED
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: Documentation (show other bugs)
Version: 2.4.10
Hardware: PC Linux
: P2 minor (vote)
Target Milestone: ---
Assignee: HTTP Server Documentation List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-16 09:35 UTC by Romain THERRAT
Modified: 2018-04-17 19:22 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Romain THERRAT 2018-04-16 09:35:23 UTC
Hi

The documentation of Require expr syntax (https://httpd.apache.org/docs/current/fr/mod/mod_authz_core.html#requiredirectives) contain an error.

If using this example :

    Require expr "!(%{QUERY_STRING} =~ /secret/)"

Apache startup fail with this message 

    Cannot parse expression in require line: syntax error, unexpected $end

The correct syntax should be :

    Require expr !(%{QUERY_STRING} =~ /secret/)

(Same without double quote)

Apache version : Apache/2.4.10 (Debian)
Running in docker container.

Thank you for all your great work.

Regards
Comment 1 Christophe JAILLET 2018-04-17 19:22:03 UTC
The syntax with the " works fine with 2.4.33.

In fact the syntax with " has been introduced in trunk in r1585609.
It has been backported in r1678236.
That is to say 2.4.16.

See bug 56235.


I'll add a note in the doc to explicitly state when this syntax has been added.