Tags:
create new tag
view all tags

Bug: Topic param in SEARCH does not expand variables such as URLPARAM

topic parameter in SEARCH limits searches to specific topics. Like many other parameters, this variable should also undergo variable substitution.

Test case

in a SEARCH, try param="%URLPARAM{"mytopic"}% and use "?mytopic=TopicName with the URL. Search for unique string within this topic.

Environment

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

-- VinodKulkarni - 17 Jul 2004

Follow up

I just tried this in my installation, and it works as advertised. E.g., try the search %SEARCH{%URLPARAM{"test"}%}%, and pass the parameter test=Vinod (or whatever else you want to search for) to the topic. You can try it on this topic, see below...

-- ThomasWeigert - 17 Jul 2004

(My mistake, should have generated test cases from clean builds.)

Neverthless, some comments: I had referred to topic= parameter specifically and not other parameters in general. triggerred by reading code in TWiki::Search::_searchTopicsInWeb that expands topic variable (looking for wildcards etc.) It didn't do handleCommonTags().

What was not clear was whether %URLPARAM% got expanded before %SEARCH% was consdered for rendering. Since it works, I presume this is indeed so.

-- VinodKulkarni - 18 Jul 2004

Fix record

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2004-07-18 - VinodKulkarni
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.