Uploaded image for project: 'mod_cluster'
  1. mod_cluster
  2. MODCLUSTER-514

MemManagerFile doesn't take relative paths

    XMLWordPrintable

Details

    Description

      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.

      Setting

      • MemManagerFile cache/mod_cluster
      • ServerRoot "/home/karm/Projects/MOD_CLUSTER/httpd-2.4.20-build"

      Expected result

      /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
      

      Actual result

      /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
      

      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/.

      Fix

      • leading / should mean absolute path
      • without leading / should be relative to ServerRoot

      Attachments

        Activity

          People

            gzaronik@redhat.com George Zaronikas
            mbabacek1@redhat.com Michal Karm
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: