You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2016/05/26 18:37:35 UTC

[Bug 59636] New: UserDir is not accepting more than one directory location

https://bz.apache.org/bugzilla/show_bug.cgi?id=59636

            Bug ID: 59636
           Summary: UserDir is not accepting more than one directory
                    location
           Product: Apache httpd-2
           Version: 2.4.6
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: minor
          Priority: P1
         Component: mod_userdir
          Assignee: bugs@httpd.apache.org
          Reporter: mhruscak@redhat.com

Created attachment 33894
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=33894&action=edit
userdir.conf

Manual https://httpd.apache.org/docs/2.4/howto/public_html.html section
"Setting the file path with UserDir" is described option about multiple
directories, which can be add.
In my case, if there is 2 directories set, only first is accepted.

UserDir /home/*/bla public_html -first working, second is ignored

I have retested it using switching order to
UserDir public_html /home/*/bla -first working, second is ignored

Same behaviour using completely different dir, e.g.
/virtual/user1/new_dir/index.html

OS Fedora 21
httpd installed directly using yum
selinux in permissive mode
both directories and home dir set to 711 perms
firefox without cache
used 2 different file names(index.html and ind.html)

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 59636] UserDir is not accepting more than one directory location

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=59636

--- Comment #2 from Luca Toscano <to...@gmail.com> ---
Christophe, should we propose this for a 2.4.x backport?

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 59636] UserDir is not accepting more than one directory location

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=59636

--- Comment #3 from Christophe JAILLET <ch...@wanadoo.fr> ---
r1832306 does not seem to be complete enough.

If we go through the 'apr_uid_homepath_get' branch, and if it does NOT return
SUCCESS, then filename would still be NULL, and we would certainly segfault in
the apr_strcat call.

This should be reworded a bit before a backport proposal.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 59636] UserDir is not accepting more than one directory location

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=59636

Christophe JAILLET <ch...@wanadoo.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |FixedInTrunk

--- Comment #1 from Christophe JAILLET <ch...@wanadoo.fr> ---
Confirmed.

Fixed in r1832306.

Previously we were checking only in the first *existing* directory, which is
clearly not what is said in the doc.

> UserDir "public_html" "/usr/web" "http://www.example.com/"
>
> With a request for http://www.example.com/~bob/one/two.html, will try to find
> the page at ~bob/public_html/one/two.html first, then /usr/web/bob/one/two.html,
> and finally it will send a redirect to http://www.example.com/bob/one/two.html.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org