Description

Show image with file: protocol

MoinMoin 1.6.x syntax {{ image }} to show image is not working if image is defined by file:// protocol to link to file accessed via the filesystem on intranet file server.

Steps to reproduce

  1. Create command to show image by file:// protocol.

Example

 {{file://///myserver/myshare/mydir/myimage.png}} 

- should show image but result is

file://///myserver/myshare/mydir/myimage.png???

Here it is, rendered:

Component selection

Details

MoinMoin Version

MoinMoin Version Release 1.6.2 - DesktopEdition

OS and Version

Windows XP

Python Version

Python Version 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)]

Server Setup

DesktopEdition

Server Details

-

Language you are using the wiki in (set in the browser/UserPreferences)

English

Workaround

Discussion

What's happening if you copy and paste that file: url to your browser's url line?

Aside from a potential bug in moin (quite likely looking at that rendered output), you must also be careful with browser configuration, see FileLinks.

If I put file: url to browser's url line, image is showed. If I remove show image syntax {{  }} and enter only file://url, then there is the link on page and this link is also working.

Thank you very much for your quick and precise solution!

Plan


CategoryMoinMoinBugFixed

MoinMoin: MoinMoinBugs/ShowImageByFileProtocol (last edited 2008-03-30 23:08:05 by ThomasWaldmann)