[mod_cluster-issues] [JBoss JIRA] (MODCLUSTER-514) MemManagerFile doesn't take relative paths

Michal Karm Babacek (JIRA) issues at jboss.org
Fri Jun 10 11:57:00 EDT 2016


Michal Karm Babacek created MODCLUSTER-514:
----------------------------------------------

             Summary: 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: Michal Karm Babacek
            Priority: Minor


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



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the mod_cluster-issues mailing list