You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Emmanuel Dreyfus <ma...@netbsd.org> on 2023/03/01 09:34:58 UTC

Why is my merge_dir_config not called

Hello

I am trying to add a per-directory confioguration directive to mod_dav_fs, 
but the merge_dir_config() calback is never called, and I always get the 
value from create_dir_config() when accessing the per-directory configuration.

The directive is defined with ACCESS_CONF|RSRC_CONF but I am not sure
that matters here, since merge_dir_config() should handle all directives
and it is not called at all.

What is the trick? I have spent a lot of time with printfs in server/config.c
with no success so far. 

-- 
Emmanuel Dreyfus
manu@netbsd.org

Re: Why is my merge_dir_config not called

Posted by Emmanuel Dreyfus <ma...@netbsd.org>.
On Wed, Mar 01, 2023 at 05:29:28AM -0500, Eric Covener wrote:
> Does your config have directives from dav_fs in two overlapping sections?

Like this, you mean?
    <Directory "/htdocs/dav/C">
        DavQuota 4444
    </Directory>
    <Directory "/htdocs/dav/C/D">
        DavQuota None
    </Directory>
    <Directory "/htdocs/dav/C/D/E">
        DavQuota 222 
    </Directory>

-- 
Emmanuel Dreyfus
manu@netbsd.org

Re: Why is my merge_dir_config not called

Posted by Eric Covener <co...@gmail.com>.
Does your config have directives from dav_fs in two overlapping sections?

On Wed, Mar 1, 2023, 4:36 AM Emmanuel Dreyfus <ma...@netbsd.org> wrote:

> Hello
>
> I am trying to add a per-directory confioguration directive to mod_dav_fs,
> but the merge_dir_config() calback is never called, and I always get the
> value from create_dir_config() when accessing the per-directory
> configuration.
>
> The directive is defined with ACCESS_CONF|RSRC_CONF but I am not sure
> that matters here, since merge_dir_config() should handle all directives
> and it is not called at all.
>
> What is the trick? I have spent a lot of time with printfs in
> server/config.c
> with no success so far.
>
> --
> Emmanuel Dreyfus
> manu@netbsd.org
>