Foswiki on GitHub is open for business! Next release meeting: Monday October 13, 1300Z

Item9911: SEARCH format is parsed through formatTime causing all sorts of problems

Priority: CurrentState: AppliesTo: Component: WaitingFor:
Urgent Closed Engine    
Below example returns the date of the found topic instead of the email address of the person.

Works on 1.0.10

But not on 1.1.1

Very serious bug because we have so many searches where we show the email address of a person. We have at least 500 topics where this type of search create mailto lists.

And if USERINFO is this bad - how many other macros do not work inside a SEARCH?

-- KennethLavrsen - 27 Oct 2010

Further analysis shows that the problem is not related to USERINFO

A plain SEARCH with a format expands $email and any other time string that formatTime understands

This is a 1.1.2 immediate release trigger. This is awful.

-- KennethLavrsen - 27 Oct 2010

I have fixed the problem.

I have linked to here from known issues topic and attached a working Search.pm.

Unit tests will be checked into Item9915

-- KennethLavrsen - 27 Oct 2010

 

ItemTemplate edit

Summary SEARCH format is parsed through formatTime causing all sorts of problems
ReportedBy KennethLavrsen
Codebase 1.1.1
SVN Range
AppliesTo Engine
Component
Priority Urgent
CurrentState Closed
WaitingFor
Checkins distro:6751819fc79a distro:fab1b05b6447
TargetRelease patch
ReleasedIn 1.1.2
Topic attachments
I Attachment Action Size Date Who Comment
Search.pmpm Search.pm manage 43.8 K 27 Oct 2010 - 22:23 KennethLavrsen Fixed lib/Foswiki/Search.pm that fixes the most urgent token problems
Topic revision: r5 - 10 Nov 2010, KennethLavrsen
 
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. see CopyrightStatement. Creative Commons License