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 2010/04/14 02:45:51 UTC
DO NOT REPLY [Bug 49114] New: NTFS junction directories missing from
directory listing
https://issues.apache.org/bugzilla/show_bug.cgi?id=49114
Summary: NTFS junction directories missing from directory
listing
Product: Apache httpd-2
Version: 2.2.13
Platform: PC
OS/Version: Windows Vista
Status: NEW
Severity: major
Priority: P2
Component: mod_dav
AssignedTo: bugs@httpd.apache.org
ReportedBy: ng@fennek.dk
If a directory made available through Apache WEB DAV module, contains folders /
directories made / linked with NTFS junction, these folders are not shown in a
directory listing.
I have really tried to figure out why, and as far I can tell it is because the
function building the directory tree don't accept NTFS junctions as directories
or any other kind of file for that matter.
Looking in the source code I found this some code in repos.c that might be
responsible for building the directory tree.
else if (fsctx->info1.finfo.filetype == APR_DIR) {
apr_size_t save_path_len = fsctx->path1.cur_len;
apr_size_t save_uri_len = fsctx->uri_buf.cur_len;
apr_size_t save_path2_len = fsctx->path2.cur_len;
...
== APR_DIR tells me that somewhere in the code APR_DIR is valid for normal
folders but not for NTFS junctions... can that be changed or will it be
possible to say something like this.
else if (fsctx->info1.finfo.filetype == APR_DIR || APR_NTFS_JUNCTION)..
Oh when activating the INDEXES option in a site config, the function generating
the HTML to show the folder / file structure is able to show the directories
made with NTFS junction. But I couldn't find that code, to see how it
recognized directories made with NTFS junctions.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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
DO NOT REPLY [Bug 49114] NTFS junction directories missing from
directory listing
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49114
--- Comment #3 from ng@fennek.dk 2010-04-21 05:04:18 EDT ---
Are there any suggestion on how I can solve this problem??
If it is a change in Apcache config or the way I make NTFS junctions, are there
anyone who would like to come with suggestions on how I go about that???
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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
DO NOT REPLY [Bug 49114] NTFS junction directories missing from
directory listing
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49114
--- Comment #1 from Will Rowe <wr...@apache.org> 2010-04-13 20:51:11 EDT ---
Presuming there is no flaw, NTFS junctions are handled exactly as unix
symlinks.
Of course a symlink may be to a file or directory, while NTFS junctions may
only resolve to a directory.
So if the information is gathered from an apr_file_stat, it should show as the
target of the junction, and if its gathered as an lstat, it would be a symlink.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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
DO NOT REPLY [Bug 49114] NTFS junction directories missing from
directory listing
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49114
--- Comment #2 from ng@fennek.dk 2010-04-15 02:04:37 EDT ---
(In reply to comment #1)
> Presuming there is no flaw, NTFS junctions are handled exactly as unix
> symlinks.
> Of course a symlink may be to a file or directory, while NTFS junctions may
> only resolve to a directory.
>
> So if the information is gathered from an apr_file_stat, it should show as the
> target of the junction, and if its gathered as an lstat, it would be a symlink.
That comment riddle me a bit, if I have understood it correctly you are saying,
that as the code is now, it should be able to return a NTFS junction as a
directory. It is more a matter of me setting up Apache or NTFS junction
correctly.
I have only read some of the source code for mod_dav, I haven't set up a prober
build environment as I lack the skills to do so. I'll wish I could test and see
how the code handles the NTFS junctions directories, when making a directory
listing but having no previous experience in building Apache or writing C code
I find that a bit hard.
What I can tell you is that even though mod_dav doesn't accept my NTFS junction
as directory when making a listing of the directory where the junction folder
is. (long sentence sorry), I'm able to browse/copy/upload the contents of the
junction folder, when writing the complete path in my web_dav client.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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
DO NOT REPLY [Bug 49114] NTFS junction directories missing from
directory listing
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49114
ng@fennek.dk changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ng@fennek.dk
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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