Opened 17 years ago
Last modified 6 years ago
#8223 new defect
Mozilla/Firefox displaying images through html processor
| Reported by: | Owned by: | ||
|---|---|---|---|
| Priority: | low | Milestone: | next-major-releases |
| Component: | wiki system | Version: | 0.11.1 |
| Severity: | normal | Keywords: | image html processor wiki server-relative mozilla firefox |
| Cc: | Thijs Triemstra | Branch: | |
| Release Notes: | |||
| API Changes: | |||
| Internal Changes: | |||
Description
Hi,
I'm having trouble getting the wiki to display images.
- render_unsafe_content is set to 'true'
- it does this no matter with basic theme and other themes
- I think I've tried all forward and back slash variations.
Any ideas? I'm running out.
See code and specs below.
Thanks,
Benoit
p.s. please be merciful as I don't have access to google groups.
trac: 0.11
server: python 2.4
client: WinXP SP2
browsers: IE7.0.57, Firefox 3.0.8
This code works in a trac 0.11 wiki page, viewed with IE7
{{{
#!html
<img alt="image" src="file:///\\<server-path>\thumb.jpg"/>
}}}
The same code DOES NOT work in a trac 0.11 wiki page, viewed with Firefox 308 (only alt is shown)
{{{
#!html
<img alt="image" src="file:///\\<server-path>\thumb.jpg"/>
}}}
This HTML page works in Firefox 308, off my C:\
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <body> <img alt="image" src="file:///\\<server-path>\thumb.jpg"/> </body> </html>
Oh… and this doesn't work in IE or FF ("/<server-relative>/thumb.jpg" is diplayed on screen)
[[Image(//<server-relative>/thumb.jpg)]]
Attachments (1)
Change History (13)
follow-up: 4 comment:1 by , 17 years ago
| Milestone: | → 1.0 |
|---|---|
| Severity: | normal → minor |
follow-up: 3 comment:2 by , 17 years ago
Hi cboos, Thanks for the help : )
- If I copy/paste the html rendered by trac, which does not display the image, into a local file on my C:\ ex. test.html, and open it in firefox, and the image is displayed. Is that still consistent with the UNC issue you're describing?
- Thanks for the site: tip, but my goal is to avoid making copies of images.
Cheers, Benoit
comment:3 by , 17 years ago
Replying to anonymous:
- If I copy/paste the html rendered by trac, which does not display the image, into a local file on my C:\ ex. test.html, and open it in firefox, and the image is displayed. Is that still consistent with the UNC issue you're describing?
Yes: here you're pointing to a local URL, so the other local URLs are interpreted as well. In the other situation, you're pointing to an http: URL, so the references to file: URLs served from there are ignored.
comment:4 by , 17 years ago
| Milestone: | 1.0 → 0.13 |
|---|---|
| Severity: | minor → normal |
This link:
[[Image(//<server-relative>/thumb.jpg)]]
and many others could be transformed into URLs by using extract_link. This would also address the TODO in the Image macro about decoupling the trac.versioncontrol modules.
comment:5 by , 17 years ago
Thanks for the clarification.
I'll keep trying different firefox configurations to see if I can get it to work.
Benoit
comment:6 by , 15 years ago
| Milestone: | next-major-0.1X → 0.13 |
|---|---|
| Owner: | set to |
| Priority: | normal → low |
by , 15 years ago
| Attachment: | sampl1.html added |
|---|
comment:7 by , 15 years ago
| Milestone: | 0.13 → 0.14 |
|---|
comment:8 by , 15 years ago
| Cc: | added |
|---|
comment:9 by , 10 years ago
| Owner: | removed |
|---|
comment:10 by , 10 years ago
| Milestone: | next-dev-1.1.x → next-dev-1.3.x |
|---|
Narrowing focus for milestone:1.2. Please move ticket to milestone:1.2 if you intend to fix it.
comment:12 by , 6 years ago
| Milestone: | next-dev-1.5.x → next-major-releases |
|---|



Mostly invalid, as this behavior is expected from Firefox (see e.g. Th:WikiGoodiesPlugin#MoreaboutUNCpathsupport).
You're right however about:
You can perhaps use
site:..., which will fetch files from your <env>/htdocs area.