You are here: Foswiki>Tasks Web>Item922 (20 Jun 2015, CrawfordCurrie)Edit Attach

Item922: possible bug in query & if on windows with PurePerl

pencil
Priority: Normal
Current State: No Action Required
Released In: n/a
Target Release: patch
Applies To: Engine
Component: SEARCH
Branches:
Reported By: SvenDowideit
Waiting For:
Last Change By: CrawfordCurrie
This needs testing - as I'm in the middle of trying to fudge it on a client system

using strawberry perl and pureperl search, the following query / IF statement appears to fail for topics that are not wiki words

(yes, About is the parent of Team)

"('Blackfin.Team'/parent.name = 'About')"

%IF{
"('Blackfin.Team'/parent.name = 'About')"
then="   * yes"
else="   * no"
}%

When I rename the Team (and other similar topics) to a name like OutTeam, the IF and query work.

This bug hasn't shown up on the OSX system I have been working on - even after i set it to use pure perl search too, bo frown, sad smile

-- SvenDowideit - 31 Jan 2009

Since the parent only includes the web specifier if the reference is out-of-web, then 'About' obviously has to be in the same web. So an equals test should work. Let's try it:
  • Does %IF{"('Sandbox.TestItem922'/parent.name = 'About')" then="yes" else="no"}% work? no
And
  • Does %IF{"('Sandbox.TestItem922'/parent.name = 'NotAbout')" then="yes" else="no"}% work? no

Well, it works fine here. Good. I don't have strawberry perl (I use ActiveState) so I'm leaving this for Sven's feedback, as he can easily build the same testcase.

-- CrawfordCurrie - 05 Feb 2009

Cannot be urgent any more

-- KennethLavrsen - 24 Feb 2009

Any feedback or do we No Action this? This one is from February. And the feedback required takes 5 minutes to do.

-- KennethLavrsen - 09 Jan 2010

No feedback - closing no-action

-- Main.CrawfordCurrie - 20 Jun 2015 - 08:17

ItemTemplate edit

Summary possible bug in query & if on windows with PurePerl
ReportedBy SvenDowideit
Codebase 1.0.0, trunk
SVN Range Foswiki-1.0.0, Thu, 08 Jan 2009, build 1878
AppliesTo Engine
Component SEARCH
Priority Normal
CurrentState No Action Required
WaitingFor
Checkins
TargetRelease patch
ReleasedIn n/a
CheckinsOnBranches
trunkCheckins
masterCheckins
ItemBranchCheckins
Release01x01Checkins
Topic revision: r6 - 20 Jun 2015, CrawfordCurrie
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