• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Item6360: FilterPlugin stops unexpectedly, "eats" content

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Extension FilterPlugin Normal New   n/a  

Edit Form Data

Summary:
Reported By:
Codebase:
Applies To:
Component:
Priority:
Current State:
Waiting For:
Target Release:
Released In:
 

Detail

This problem occurs on our corporate TWiki installation. We are using [Plugins/FilterPlugin][FilterPlugin]] v1.51 (the latest).

FilterPlugin works as expected up to the last possible match. After that, all trailing text disappears entirely.

In the example below, the text , IP datagrams on Avian Carriers -- if you can see this, Twiki is no longer eating text that I put here. vanishes after rendering.

The Code

---+++ protocol specs
%STARTSUBST{pattern="RFC ?(\d+)" format="[[http://www.rfc-editor.org/rfc/rfc$1.txt][RFC$1]]"}%
   * RFC 2971, IMAP =ID= Extension (the moral equivalent of =User-Agent=)
   * RFC 3501, the IMAP 4 base spec, replacing RFC 2060 and RFC 1730
   * RFC 5530, IMAP Response Codes, which improves the machine-readable IMAP errors
   * RFC 4315, =UIDPLUS= extension, which replaces RFC 2359
   * RFC 4422, SASL, the "Simple" Authentication and Security Layer, is really a generalization of the IMAP4 =AUTHENTICATE= command.
   * RFC 1149, IP datagrams on Avian Carriers -- if you can see this, Twiki is no longer eating text that I put here.
%STOPSUBST%

Results (screenshot)
Item6360Picture1.png

Workaround

The workaround is to force one final pattern match after the real data.

---+++ protocol specs
%STARTSUBST{pattern="RFC ?(\d+)" format="[[http://www.rfc-editor.org/rfc/rfc$1.txt][RFC$1]]"}%
   * RFC 2971, IMAP =ID= Extension (the moral equivalent of =User-Agent=)
   * RFC 3501, the IMAP 4 base spec, replacing RFC 2060 and RFC 1730
   * RFC 5530, IMAP Response Codes, which improves the machine-readable IMAP errors
   * RFC 4315, =UIDPLUS= extension, which replaces RFC 2359
   * RFC 4422, SASL, the "Simple" Authentication and Security Layer, is really a generalization of the IMAP4 =AUTHENTICATE= command.
   * RFC 1149, IP datagrams on Avian Carriers -- if you can see this, Twiki is no longer eating text that I put here.
<!-- RFC 0  workaround for SUBST bug -->
%STOPSUBST%

Results (screenshot)
Item6360Picture2.png

-- TWiki:Main/VickiBrown - 27 Oct 2009

ItemTemplate
Summary FilterPlugin stops unexpectedly, "eats" content
ReportedBy TWiki:Main.VickiBrown
Codebase 4.2.4
SVN Range TWiki-5.0.0, Sun, 27 Sep 2009, build 18153
AppliesTo Extension
Component FilterPlugin
Priority Normal
CurrentState New
WaitingFor

Checkins

TargetRelease n/a
ReleasedIn

Topic attachments
I Attachment History Action Size Date Who Comment
PNGpng Item6360Picture1.png r1 manage 26.9 K 2009-10-27 - 16:14 UnknownUser screenshot
PNGpng Item6360Picture2.png r1 manage 30.4 K 2009-10-27 - 16:16 UnknownUser screenshot
Topic revision: r1 - 2009-10-27 - VickiBrown
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2023 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback