Edgewall Software
Modify

Opened 10 years ago

Last modified 3 years ago

#8223 new defect

Mozilla/Firefox displaying images through html processor

Reported by: benoit.moniere@… Owned by:
Priority: low Milestone: next-dev-1.3.x
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:

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)

sampl1.html (247 bytes ) - added by anonymous 8 years ago.

Download all attachments as: .zip

Change History (11)

comment:1 by Christian Boos, 10 years ago

Milestone: 1.0
Severity: normalminor

Mostly invalid, as this behavior is expected from Firefox (see e.g. Th:WikiGoodiesPlugin#MoreaboutUNCpathsupport).

You're right however about:

[[Image(//<server-relative>/thumb.jpg)]]

You can perhaps use site:..., which will fetch files from your <env>/htdocs area.

comment:2 by anonymous, 10 years ago

Hi cboos, Thanks for the help : )

  1. 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?
  1. Thanks for the site: tip, but my goal is to avoid making copies of images.

Cheers, Benoit

in reply to:  2 comment:3 by Christian Boos, 10 years ago

Replying to anonymous:

  1. 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.

in reply to:  1 comment:4 by Christian Boos, 10 years ago

Milestone: 1.00.13
Severity: minornormal

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 anonymous, 10 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 Christian Boos, 9 years ago

Milestone: next-major-0.1X0.13
Owner: set to Christian Boos
Priority: normallow

by anonymous, 8 years ago

Attachment: sampl1.html added

comment:7 by Christian Boos, 8 years ago

Milestone: 0.130.14

comment:8 by Thijs Triemstra, 8 years ago

Cc: Thijs Triemstra added

comment:9 by Ryan J Ollos, 4 years ago

Owner: Christian Boos removed

comment:10 by Ryan J Ollos, 3 years ago

Milestone: next-dev-1.1.xnext-dev-1.3.x

Narrowing focus for milestone:1.2. Please move ticket to milestone:1.2 if you intend to fix it.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The ticket will remain with no owner.
The ticket will be disowned.
as The resolution will be set.
The owner will be changed from (none) to anonymous.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.