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

Priority: Urgent
Current State: Closed
Released In: 1.1.2
Target Release: patch
Applies To: Engine
Reported By: KennethLavrsen
Waiting For:
Last Change By: KennethLavrsen
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

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
Priority Urgent
CurrentState Closed
Checkins distro:6751819fc79a distro:fab1b05b6447
TargetRelease patch
ReleasedIn 1.1.2
I Attachment Action Size Date Who Comment
Search.pmpm manage 43 K 27 Oct 2010 - 22:23 KennethLavrsen Fixed lib/Foswiki/ 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 Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy