[dokuwiki] Re: filelist plugin

Gina Häußge wrote:
Hello Eugen,

I'm the author of this plugin.

Eugen Stoianovici wrote:
a {{filelist>/path/to/my/file.txt}} should include the file
/path/to/my/file.txt relative to my system, right? Well, there's nothing
displayed in my page:(

More correctly, it should include a _link_ to the file. That nothing is
displayed hints at some error during evaluation of your path[1]. I'm
currently on the bughunt in this plugin[2], as it has some issues with
symlinks in the filesystem as well, so this might be the reason for the
problems you are encountering. If /path/to/your/file is not inside the
dokuwiki directory (DOKU_INC), that might also be the reason, as the
plugin does not allow access to files outside of the "Dokuwiki Jail"[3].

Kind regards,
  Gina 'foosel' Haeussge

[1] Simply displaying nothing in such a case sounded like a good idea at
the time of writing. I'll change that in the future, as it makes
debugging a bitch.

[2] Although it takes quite some time, as my day job didn't leave me
much time for private coding sessions the last two months.

[3] I wouldn't like the idea of some anonymous guest inserting a
{{filelist>/etc/*&style=table&direct=1}} on some publicly writable page
and thus hinting at what software is running on the webserver...
The problem was [3] and your observation is fair enough. I wouldn't like somebody to link to /etc/whatever and this is a strong point for a global distribution plugin. However, my setup addresses a small/internal/non public group on a server that has a global ftp section. I would like to be able to link files from that ftp. Is there a way to add another path to DOKU_INK? ie: /dokuwiki;/storage/ftp;/some/other/location; ?(and if you answer me with a rtfm...would you please tell me what section?). If not, do you think this "feature" is useful enough to add it? I'll (eventually) be implementing it for my distribution anyway.

Thanks,
Eugen Stoianovici


--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: