Hallo Sakari,

I guess this is for security reasons, because file:// doesn't
necessarily mean your computer, but the page requester's computer in
general.

I've once been experimenting with this and used the following InterWiki
link in jspwiki.properties:

jspwiki.interWikiRef.WindowsShare = file:///%s

You can then define a link via [WindowsShare:c:/bla/xyz.txt] in your
wiki pages.

This link then appears correctly in the HTML code, but it seems as if
modern browsers block it (clicking on it doesn't do anything in IE7
and Firefox 2). However, this feature may be configurable.

Regards,
 Florian

Ursprüngliche Nachricht vom 16.05.2008 um 09:13:
> http://www.jspwiki.org/wiki/TextFormattingRules says

> "The link can also be a direct URL starting with http:, ftp:, mailto:,
> https:, or news:, in which case the link points to an external entity. "

> I wonder why file: is not allowed. If I type something like
>     file://localhost/myanmar.xls
> into my browser's address field (and hit Enter), OpenOffice Calc is  
> launched and opens the file named. It doesn't happen if, instead of  
> file:, the link starts with http: (in which case I get the dreaded  
> "Object not found!" error.)

> Now, I wanted to put a link like that (file:) into a JSPWiki page. But
> clicking it doesn't work - there is no error message, even. (If I  
> start the link with http:, it's "Object not found!" again.)

> Just curious whether there is a reason for this, or whether it's  
> something no one else finds useful...


> Sakari Aaltonen


Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to