[naviserver-devel] Following symbolic directory links with NaviServer possible?
Hi all! I'm wondering if it's a misconfiguration of mine or a feature of NaviServer: whenever I want to symbolically link to a folder in pages directory, I run into a 403 (Forbidden) error. Symbolically linking to individual files works fine. Did I miss a configuration parameter? Testing configurations were Ubuntu/Debian 8.10 and 9.04 and SuSE Enterprise 10 (Kernel 2.6.16). By the way: I vaguely remember symbolically linking to a mounted CD-ROM in AOLserver 4 on a SuSE system, some years ago. -- Regards, Christian -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ naviserver-devel mailing list naviserver-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/naviserver-devel
Re: [naviserver-devel] Following symbolic directory links with NaviServer possible?
On Tue, Sep 22, 2009 at 11:23 AM, Christian A Vogl c...@kinetiqa.de wrote: Hi all! I'm wondering if it's a misconfiguration of mine or a feature of NaviServer: whenever I want to symbolically link to a folder in pages directory, I run into a 403 (Forbidden) error. Symbolically linking to individual files works fine. Did I miss a configuration parameter? I don't think there's any code in the fastpath (static files) or adp/tcl path which returns a 403 response. Maybe you have some code which calls ns_forbidden or Ns_ConnReturnForbidden? In a filter, or a directory listing proc/adp? If there is also a file/directory permission error, it should show up in the error log. -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ naviserver-devel mailing list naviserver-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/naviserver-devel
Re: [naviserver-devel] Following symbolic directory links with NaviServer possible?
Yes, you're right, Stephen, thank you! Responsible's my own ns_returnforbidden, and I was misguided by the different behaviour for files and directories. In detail, for maybe helping other misguided half-blinds like me: I checked file access using TCL's file normalize, which returns /path/to/real/file.ext for requests of /path/to/webserver/pages/symdir/file.ext in a symbolically linked directory (symbolic link symdir -- /path/to/real in physical naviserver page root /path/to/webserver/pages), but returns /path/to/webserver/pages/physdir/file.ext if only file.ext links symbolically somewhere else (symbolic link file.ext -- /path/to/real/file.ext in physical directory /path/to/webserver/pages/realdir) So I just had to drop the normalizing. Thanks again, Stephen, and best regards to the list! On Tue, 22 Sep 2009, Stephen Deasey wrote: On Tue, Sep 22, 2009 at 11:23 AM, Christian A Vogl c...@kinetiqa.de wrote: Hi all! I'm wondering if it's a misconfiguration of mine or a feature of NaviServer: whenever I want to symbolically link to a folder in pages directory, I run into a 403 (Forbidden) error. Symbolically linking to individual files works fine. Did I miss a configuration parameter? I don't think there's any code in the fastpath (static files) or adp/tcl path which returns a 403 response. Maybe you have some code which calls ns_forbidden or Ns_ConnReturnForbidden? In a filter, or a directory listing proc/adp? If there is also a file/directory permission error, it should show up in the error log. Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ naviserver-devel mailing list naviserver-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/naviserver-devel -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ naviserver-devel mailing list naviserver-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/naviserver-devel
Re: [naviserver-devel] Following symbolic directory links with NaviServer possible?
On Tue, Sep 22, 2009 at 1:13 PM, Christian A Vogl c.v...@kinetiqa.de wrote: Yes, you're right, Stephen, thank you! Responsible's my own ns_returnforbidden, and I was misguided by the different behaviour for files and directories. In detail, for maybe helping other misguided half-blinds like me: I checked file access using TCL's file normalize, which returns /path/to/real/file.ext for requests of /path/to/webserver/pages/symdir/file.ext in a symbolically linked directory (symbolic link symdir -- /path/to/real in physical naviserver page root /path/to/webserver/pages), but returns /path/to/webserver/pages/physdir/file.ext if only file.ext links symbolically somewhere else (symbolic link file.ext -- /path/to/real/file.ext in physical directory /path/to/webserver/pages/realdir) So I just had to drop the normalizing. Check out ns_register_fasturl2file: http://naviserver.sourceforge.net/n/naviserver/files/ns_register_url2file.html It's like the 'mount' command in linux, or like symlinking one directory to another. Some examples (bit obscure...) here: http://bitbucket.org/naviserver/naviserver/src/tip/tests/url2file.test#cl-73 -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ naviserver-devel mailing list naviserver-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/naviserver-devel