Question
Sorry, me again!
I have a page with a link to a 'local' file of the format:
%ICON{"pdf"}% [[file:///E:/resource/Equipment/PDTs/Symbol/68xx/%ENCODE{"Users Guide"}%.pdf][Users Guide]]
This worked on 4.0.5, but does nothing in 4.1.1 when I click on the link.
Firefox shows the correct destination URL in the status bar before I click, but nothing happens.
I don't remember setting any kind of security setting in the 4.0.5 TWiki to handle this, but my memory is not what it used to be!
Environment
--
DuncanKinnear - 07 Mar 2007
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
Some more info.
It works fine in IE.
When I looked at the "Error Console" in Firefox there were errors which said:
Security Error: Content at http://sam/twiki/bin/view/Support/EquipmentPDTs may not load or link to file:///E:/mcresrce/Equipment/PDTs/Intermec/Trakker_241X/Users%20Manual.pdf.
So it is a Firefox security issue.
However, using exactly the same browser, in another tab, I can view the 4.0.5 version of the same page and it works fine.
I googled for the Error Console messages and found a page about known issues with Firefox at Mozilla.org, and it said to set my
security.checkloaduri setting to false to allow local file links. But I already have that set to false!
My guess is that this is some kind of difference in Apache between the two servers that is telling Firefox that the server is not secure.
Any ideas?
--
DuncanKinnear - 08 Mar 2007
OK, a bit more googling has come up with an answer!
It appears that Firefox has built-in security to disable local file links. Even setting the 'secuirity.checkloaduri' setting doesn't allow these links to be followed.
However, I found a web-site which detailed how to enable this. You can do so on site-by-site basis.
To enable this you need to create a 'user.js' file (if you don't already have one) and add the lines:
user_pref("capability.policy.policynames", "localfilelinks");
user_pref("capability.policy.localfilelinks.sites", "http://sam");
user_pref("capability.policy.localfilelinks.checkloaduri.enabled", "allAccess");
The 'sites' entry can have multiple servers defined with spaces in between each one.
The reason why it worked for me on the older server is because I had already defined this (I don't remember doing it!) with just the address of the older server.
--
DuncanKinnear - 09 Mar 2007
consider installing
local link
which gives you the ability to open a file link with right click.
--
CarloSchulz - 02 Jul 2007