Item2354: ImagePlugin and Preview

pencil
Priority: Normal
Current State: Closed
Released In: n/a
Target Release: n/a
Applies To: Extension
Component: ImagePlugin
Branches:
Reported By: AndreLichtsteiner
Waiting For:
Last Change By: AndreLichtsteiner
The following code renders wrong in preview:

%IMAGE{
  "http://trunk.foswiki.org/pub/Tasks/WebPreferences/logo.png"
  type="float" 
  href="http://www.foswiki.org/"
}%

view:
logo.png

in preview: Bug.png

I pinned down the problem as being between ImagePlugin and the core function 'Disable links and inputs in preview':

lib/Foswiki/UI/Preview.pm, line 115
    # Disable links and inputs in the text
    $displayText =~
      s#<a\s[^>]*>(.*?)</a>#<span class="foswikiEmulatedLink">$1</span>#gis;

I am guessing, that while Preview.pm is trying to replace links, ImagePlugin still has an <nop> or alike in the href attribute.

I don't know, which other codes do generate the same error.

-- AndreLichtsteiner - 13 Nov 2009

Seems still be pending

-- AndreLichtsteiner - 07 Mar 2011

Can't reproduce on latest foswiki and image plugin anymore.

-- MichaelDaum - 09 Jan 2012

Sorry, but the bug is still in the following set-up:
  • Foswiki-1.1.4, Tue, 20 Dec 2011, build 13483
  • ImagePlugin (2.41, $Rev: 13571 (2012-01-09) $)
  • NatEditPlugin (4.50, $Rev: 11307 (2011-04-05) $)

-- AndreLichtsteiner - 10 Jan 2012

ItemTemplate edit

Summary ImagePlugin and Preview
ReportedBy AndreLichtsteiner
Codebase 1.1.2
SVN Range Foswiki-1.0.7, Sun, 20 Sep 2009, build 5061
AppliesTo Extension
Component ImagePlugin
Priority Normal
CurrentState Closed
WaitingFor
Checkins
TargetRelease n/a
ReleasedIn n/a
CheckinsOnBranches
trunkCheckins
Release01x01Checkins
I Attachment Action Size Date Who Comment
Bug.pngpng Bug.png manage 3 K 13 Nov 2009 - 11:25 AndreLichtsteiner  
Topic revision: r5 - 10 Jan 2012, AndreLichtsteiner
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy