On Tue, August 29, 2006 09:27, Daniel Serodio wrote:
> Aaron D. Marasco wrote:
>> Hello all,
>>
>> I am having trouble with file links in 0.9.6 and
was wondering if
>> anybody
>> has seen this before. I know it's ugly to do a
file link to the C:
>> drive,
>> but it is an internal page and we all have the
software installed in the
>> same location. The first attempt is:
>>
[file:///C:/EDK/doc/usenglish/help/platform_studio/platform_
studio.htm]
>> which doesn't work.
>>
>> I have tried putting it in quotes, like
>> http://trac.edge
wall.org/ticket/2594 says to:
>>
[file:"//C:/EDK/doc/usenglish/help/platform_studio/pla
tform_studio.htm"]
>>
>> I have done it with and without quotes in and out
of brackets. With 2 to
>> 4
>> leading /'s.
>>
file:///C:/EDK/doc/usenglish/help/platform_studio/platform_s
tudio.htm
>>
file:"///C:/EDK/doc/usenglish/help/platform_studio/pla
tform_studio.htm"
>> etc
>>
>> I have tried changing security settings in Mozilla
like
>> http://trac
.edgewall.org/wiki/TracFaq#how-can-i-make-links-to-files-on-
the-network-via-unc-path-links
>> said to (which BTW uses a TinyURL that is now
dead). But it's the same
>> in
>> MSIE.
>>
>> The worst part about it, is that with most of these
solutions (2-3
>> slashes), if I right click on it and choose
"Copy Link Location" and
>> then
>> paste it into the address bar, the HTML file I want
comes right up, so
>> the
>> URI itself seems to be valid.
>>
>> Any ideas? TIA.
>>
> It's a security issue, http:// files can't open
file:// files.
> ht
tp://kb.mozillazine.org/Links_to_local_pages_don't_work
>
> HTH,
> Daniel Serodio
>
>
Thanks tons, that was it. I tried updating the TracFaq:
=== How can I make links to files on the network via UNC
path links? ===
#how-can-i-make-links-to-files-on-the-network-via-unc-path-l
inks
Make a wiki link that looks like
`[file:///%5C%5Cserver/path/to/file/readme.txt Readme]`. In
Mozilla or
Firefox, security settings need to be modified, see
ht
tp://kb.mozillazine.org/Links_to_local_pages_don't_work
.
But got an error:
Python Traceback
Traceback (most recent call last):
File
"/usr/lib/python2.3/site-packages/trac/web/main.py&qu
ot;, line 335, in
dispatch_request
dispatcher.dispatch(req)
File
"/usr/lib/python2.3/site-packages/trac/web/main.py&qu
ot;, line 220, in
dispatch
resp = chosen_handler.process_request(req)
File
"/usr/lib/python2.3/site-packages/trac/wiki/web_ui.py
", line 113,
in process_request
self._do_save(req, db, page)
File
"/usr/lib/python2.3/site-packages/trac/wiki/web_ui.py
", line 240,
in _do_save
req.remote_addr)
File
"/usr/lib/python2.3/site-packages/trac/wiki/model.py&
quot;, line 126, in
save
"%s,%s)", (self.name, self.version + 1, t,
author,
File
"/usr/lib/python2.3/site-packages/trac/db/util.py&quo
t;, line 47, in
execute
return self.cursor.execute(sql_escape_percent(sql),
args)
File
"/usr/lib/python2.3/site-packages/trac/db/sqlite_backe
nd.py", line
44, in execute
args or [])
File
"/usr/lib/python2.3/site-packages/trac/db/sqlite_backe
nd.py", line
36, in _rollback_on_error
return function(self, *args, **kwargs)
OperationalError: database is locked
-adm
--
Sent using a web interface, so I am sending this instead of
working.
_______________________________________________
Trac mailing list
Trac lists.edgewall.com
http:
//lists.edgewall.com/mailman/listinfo/trac
|