]
Michal Karm Babacek updated MODCLUSTER-514:
-------------------------------------------
Priority: Major (was: Minor)
MemManagerFile doesn't take relative paths
------------------------------------------
Key: MODCLUSTER-514
URL:
https://issues.jboss.org/browse/MODCLUSTER-514
Project: mod_cluster
Issue Type: Bug
Components: Native (httpd modules)
Affects Versions: 1.3.1.Final, 1.2.13.Final
Reporter: Michal Karm Babacek
Assignee: George Zaronikas
This is mostly a user experience issue.
According to what {{LoadModule}} and other directives do, one would expect that a path
without leading slash is a relative one to the server root.
h3. Setting
* {{MemManagerFile cache/mod_cluster}}
* {{ServerRoot "/home/karm/Projects/MOD_CLUSTER/httpd-2.4.20-build"}}
h3. Expected result
{noformat}
/home/karm/Projects/MOD_CLUSTER/httpd-2.4.20-build/cache/mod_cluster/
manager.balancer.balancers manager.context.contexts
manager.domain.domain manager.host.hosts manager.node.nodes
manager.balancer.balancers.lock manager.context.contexts.lock
manager.domain.domain.lock manager.host.hosts.lock manager.node.nodes.lock
manager.balancer.balancers.slotmem manager.context.contexts.slotmem
manager.domain.domain.slotmem manager.host.hosts.slotmem manager.node.nodes.slotmem
{noformat}
h3. Actual result
{noformat}
/cache/mod_cluster/
manager.balancer.balancers manager.context.contexts
manager.domain.domain manager.host.hosts manager.node.nodes
manager.balancer.balancers.lock manager.context.contexts.lock
manager.domain.domain.lock manager.host.hosts.lock manager.node.nodes.lock
manager.balancer.balancers.slotmem manager.context.contexts.slotmem
manager.domain.domain.slotmem manager.host.hosts.slotmem manager.node.nodes.slotmem
{noformat}
and an empty directory is created in the directory from which the httpd root process was
started:
{{/home/karm/Projects/MOD_CLUSTER/httpd-2.4.20-build/bin/cache/mod_cluster/}}.
h3. Fix
* leading {{/}} should mean absolute path
* without leading {{/}} should be relative to ServerRoot