Bug 46071 - Allowing space in between comma and last option in the Order directive
Summary: Allowing space in between comma and last option in the Order directive
Status: RESOLVED WONTFIX
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: All (show other bugs)
Version: 2.5-HEAD
Hardware: PC All
: P2 enhancement (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-22 23:01 UTC by Gia Kien Tran
Modified: 2018-05-31 20:15 UTC (History)
0 users



Attachments
the Order directive inside httpd.conf file (20.43 KB, image/jpeg)
2008-10-22 23:01 UTC, Gia Kien Tran
Details
Syntax error when trying to start the httpd service (45.73 KB, image/jpeg)
2008-10-22 23:17 UTC, Gia Kien Tran
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gia Kien Tran 2008-10-22 23:01:36 UTC
Created attachment 22768 [details]
the Order directive inside httpd.conf file

The directive Order deny, allow with a space in between comma and allow will cause a syntax error to occur when attempting to start the httpd service. Normally people will type a space right after a comma so in this situation, IMO it will happens a lot of time when people forgot to eliminate that comma.

It would be good if using a space within the argument doesn’t cause any syntax error.
Comment 1 Gia Kien Tran 2008-10-22 23:17:30 UTC
Created attachment 22769 [details]
Syntax error when trying to start the httpd service
Comment 2 Christophe JAILLET 2018-05-31 20:15:04 UTC
Order deny,allow and co are 2.2.x specific directives.
Even if still supported in 2.4.x (see mod_access_compat), it is not advised to do so.

2.2.x is EOL, so the syntax will not be tweaked anymore to accept some spaces into it. 'deny,allow' and co should be taken as a whole, not as 2 distinct options of the Order directive.