We relaunched the TWiki.org project with an expanded TWiki charter, and we invite you to participate! The TWiki.org Code of Conduct agreement took effect on 27 Oct 2008. We ask existing twiki.org users to opt-in. You need to opt-in to participate in the Blog, Codev, Plugins and TWiki webs. -- PeterThoeny - 27 Oct 2008
Tags:
create new tag
, view all tags

Bug: View in raw mode filters out SEARCHES containing META Fields

I have a topic that searches a METAFIELD, in view?raw=on it filters out some of the topic text. view?raw=debug works

Test case

%SEARCH{"^%META:FIELD{name=.*AssignedTo.*.*" web="Tasks" nosearch="on" nototal="on" nosummary="on" regex="on" header="| Task Id | Task Priority | Task Status | Task Summary | Product | Est Time | Due Date | Creation Date |" format="| $topic? | $formfield(TaskPriority? ) | $formfield(TaskStatus? ) | $formfield(TaskSummary? ) | $formfield(ProductName? ) | $formfield(TimeEstimated? ) | $formfield(DueDate? ) | $createdate |"}%

Task Id %CALC{"$COUNTITEMS( $ABOVE() )"}%: 1 %CALC{"$COUNTITEMS( $ABOVE() )"}%: 1 Task Summary %CALC{"$COUNTITEMS( $ABOVE() )"}%: 1 0 Due Date Creation Date

Environment

TWiki version: TWikiAlphaRelease
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS:  
Web server:  
Perl version:  
Client OS:  
Web Browser:  

-- SvenDowideit - 27 Apr 2004

Follow up

Fix record

This is fixed and in TWikiAlphaRelease.

Index: View.pm
===================================================================
--- View.pm     (revision 1527)
+++ View.pm     (working copy)
@@ -139,6 +139,7 @@
       my $vtext = "<form><textarea readonly=\"readonly\" wrap=\"virtual\" rows=\"%EDITBOXHEIGHT%\" cols=\"%EDITBOXWIDTH%\">";
       $vtext = &TWiki::handleCommonTags( $vtext, $topic );
       $text =~ s/&/&amp\;/go;
+      $text =~ s/%/&\#037\;/go;
       $text =~ s/</&lt\;/go;
       $text =~ s/>/&gt\;/go;
       $text =~ s/\t/   /go;

-- PeterThoeny - 31 May 2004

Topic revision: r2 - 31 May 2004 - 00:00:06 - PeterThoeny
Codev.MetaFieldNotShownInViewRawMode moved from Codev.ViewInRawMode on 30 May 2004 - 23:59 by PeterThoeny - put it back
 
TWIKI.NET
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback