List Info

Thread: Troubles with file:/// links




Troubles with file:/// links
user name
2006-08-28 20:39:40
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.

 - Aaron


-- 
Sent using a web interface, so I am sending this instead of
working.

_______________________________________________
Trac mailing list
Traclists.edgewall.com
http:
//lists.edgewall.com/mailman/listinfo/trac
Troubles with file:/// links
user name
2006-08-29 13:27:33
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
_______________________________________________
Trac mailing list
Traclists.edgewall.com
http:
//lists.edgewall.com/mailman/listinfo/trac
Troubles with file:/// links
user name
2006-08-29 13:46:07
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
Traclists.edgewall.com
http:
//lists.edgewall.com/mailman/listinfo/trac
Troubles with file:/// links
user name
2006-08-29 14:37:19
Aaron D. Marasco wrote:
> ...
>  I tried updating the TracFaq:
>
> ...
> But got an error:
> Python Traceback
>
> ...
> OperationalError: database is locked
>
>   

This is a known issue. In the future, we'll probably find
ways to improve
concurrent access with SQLite, but in the mean time, we have
quite a lot
of "database is locked" errors [1].

In the meantime we probably need to trap this kind of error
and present
a more user-friendly error message [2].

-- Christian

[1] - http://trac.edge
wall.org/ticket/3446
[2] - http://trac.edge
wall.org/ticket/3503
_______________________________________________
Trac mailing list
Traclists.edgewall.com
http:
//lists.edgewall.com/mailman/listinfo/trac
[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )