https://issues.apache.org/bugzilla/show_bug.cgi?id=57211
Bug ID: 57211
Summary: Config-time options
Product: Apache httpd-2
Version: 2.4.10
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P2
Component: mod_lua
Assignee: [email protected]
Reporter: [email protected]
Code re-use would be enhanced if each mod_lua hander allowed config-time
options.
At present LuaAuthzProvider accepts config-line options.
LuaQuickHandler, LuaHookTranslateName, LuaHookMapToStorage,
LuaHookAccessChecker, LuaHookCheckUserID, LuaHookAuthChecker,
LuaHookTypeChecker, LuaHookFixups, and LuaHookLog would benefit from similar
features.
I'm on the fence as to whether LuaMapHandler would benefit, but can see the
case to do so since it can avoid namespace pollution encoding options in the
function name.
Several options allow 'early' and 'late' as an optional parameter. My thinking
would be the add parsing of additional parameters following these, if present.
LuaAuthzProvider calls a function, assigning option strings to each parameter.
When you want a variable number, say, from 1 to 3 optional words on the config
line, you need to add a fourth parameter then test r-TO-l for nil to verify
only 1, 2, or 3 parameters appeared.
My suggestion would be to store all command-line parameters in a single
function parameter, as an array. Testing the number present then becomes simply
checking the array length.
--
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]