You are here: Foswiki>Tasks Web>Item10898 (17 Dec 2011, GeorgeClark)Edit Attach

Item10898: SEARCH{... order="formfield(a),formfield(b)" ASSERT error (when ASSERTs are enabled)

pencil
Priority: Urgent
Current State: Closed
Released In: 1.1.4
Target Release: patch
Applies To: Engine
Component: SEARCH
Branches:
Reported By: PaulHarvey
Waiting For:
Last Change By: GeorgeClark
Doesn't happen on Release01x01. Example:
%SEARCH{
  "1"
  limit="1"
  order="formfield(Summary),formfield(CurrentState)"
}%

Yields:
Could not perform search. Error was: Argument "formfield(CurrentState" isn't numeric in numeric lt (<) at /usr/home/trunk.foswiki.org/core/lib/Foswiki/Render.pm line 2001.
at /usr/local/lib/perl5/5.10.1/CGI/Carp.pm line 356
CGI::Carp::realdie('Argument "formfield(CurrentState" isn\'t numeric in numeric l...') called at /usr/local/lib/perl5/5.10.1/CGI/Carp.pm line 437
CGI::Carp::die('Argument "formfield(CurrentState" isn\'t numeric in numeric l...') called at /usr/home/trunk.foswiki.org/core/lib/Foswiki.pm line 149
Foswiki::__ANON__('Argument "formfield(CurrentState" isn\'t numeric in numeric l...') called at /usr/home/trunk.foswiki.org/core/lib/Foswiki/Render.pm line 2001
Foswiki::Render::breakName('Additional granularty to ALLOWTOPICCHANGE', 'formfield(CurrentState') called at /usr/home/trunk.foswiki.org/core/lib/Foswiki/Render.pm line 2042
Foswiki::Render::protectFormFieldValue('Additional granularty to ALLOWTOPICCHANGE', 'HASH(0x3320dc0)') called at /usr/home/trunk.foswiki.org/core/lib/Foswiki/Form/FieldDefinition.pm line 347
Foswiki::Form::FieldDefinition::renderForDisplay('Foswiki::Form::Text=HASH(0x2cc55b8)', '$value', 'Additional granularty to ALLOWTOPICCHANGE', 'HASH(0x3320dc0)') called at /usr/home/trunk.foswiki.org/core/lib/Foswiki/Meta.pm line 1765
Foswiki::Meta::__ANON__() called at /usr/local/lib/perl5/site_perl/5.10.1/Error.pm line 415
eval {...} called at /usr/local/lib/perl5/site_perl/5.10.1/Error.pm line 407
Error::subs::try('CODE(0x210f950)', 'HASH(0x23d9b00)') called at /usr/home/trunk.foswiki.org/core/lib/Foswiki/Meta.pm line 1771
Foswiki::Meta::renderFormFieldForDisplay('Foswiki::Meta=HASH(0xb647b0)', 'Summary)', '$value', 'HASH(0x3320dc0)') called at /usr/home/trunk.foswiki.org/core/lib/Foswiki/Search.pm line 1258
Foswiki::Search::displayFormField('Foswiki::Meta=HASH(0xb647b0)', 'Summary),formfield(CurrentState') called at /usr/home/trunk.foswiki.org/core/lib/Foswiki/Search/InfoCache.pm line 297
Foswiki::Search::InfoCache::sortTopics('ARRAY(0x1fa0fb8)', 'Summary),formfield(CurrentState', 1) called at /usr/home/trunk.foswiki.org/core/lib/Foswiki/Search/InfoCache.pm line 213
Foswiki::Search::InfoCache::sortResults('Foswiki::Search::InfoCache=HASH(0x1fa10a8)', 'HASH(0x20c5630)') called at /usr/home/trunk.foswiki.org/core/lib/Foswiki/Store/SearchAlgorithms/Forking.pm line 51
Foswiki::Store::SearchAlgorithms::Forking::__ANON__('Tasks', 'HASH(0x1fa0cb8)') called at /usr/home/trunk.foswiki.org/core/lib/Foswiki/Iterator/ProcessIterator.pm line 51
Foswiki::Iterator::ProcessIterator::next('Foswiki::Iterator::ProcessIterator=HASH(0x1fa0da8)') called at /usr/home/trunk.foswiki.org/core/lib/Foswiki/Iterator/ProcessIterator.pm line 66
Foswiki::Iterator::ProcessIterator::all('Foswiki::Iterator::ProcessIterator=HASH(0x1fa0da8)') called at /usr/home/trunk.foswiki.org/core/lib/Foswiki/Store/SearchAlgorithms/Forking.pm line 63
Foswiki::Store::SearchAlgorithms::Forking::query('Foswiki::Search::Node=HASH(0x22c0590)', undef, 'Foswiki=HASH(0x9a0668)', 'HASH(0x20c5630)') called at /usr/home/trunk.foswiki.org/core/lib/Foswiki/Store/VC/Store.pm line 556
Foswiki::Store::VC::Store::query('Foswiki::Store::RcsWrap=HASH(0x9f7d40)', 'Foswiki::Search::Node=HASH(0x22c0590)', undef, 'Foswiki=HASH(0x9a0668)', 'HASH(0x20c5630)') called at /usr/home/trunk.foswiki.org/core/lib/Foswiki/Meta.pm line 893
Foswiki::Meta::query('Foswiki::Search::Node=HASH(0x22c0590)', undef, 'HASH(0x20c5630)') called at /usr/home/trunk.foswiki.org/core/lib/Foswiki/Search.pm line 364
Foswiki::Search::searchWeb('Foswiki::Search=HASH(0x20b5398)', 'search', 1, 'basetopic', 'Item10898', '_RAW', '\x{a} "1"\x{a} limit="1"\x{a} order="formfield(Summary),formfield(Curr...', 'order', 'formfield(Summary),formfield(CurrentState)', ...) called at /usr/home/trunk.foswiki.org/core/lib/Foswiki/Macros/SEARCH.pm line 32
Foswiki::__ANON__() called at /usr/local/lib/perl5/site_perl/5.10.1/Error.pm line 415
eval {...} called at /usr/local/lib/perl5/site_perl/5.10.1/Error.pm line 407
Error::subs::try('CODE(0x206fae8)', 'HASH(0x216f5b8)') called at /usr/home/trunk.foswiki.org/core/lib/Foswiki/Macros/SEARCH.pm line 52
Foswiki::SEARCH('Foswiki=HASH(0x9a0668)', 'Foswiki::Attrs=HASH(0x206fb00)', 'Foswiki::Meta=HASH(0xcc8af0)') called at /usr/home/trunk.foswiki.org/core/lib/Foswiki.pm line 3038
Foswiki::_expandMacroOnTopicRendering('Foswiki=HASH(0x9a0668)', 'SEARCH', '\x{a} "1"\x{a} limit="1"\x{a} order="formfield(Summary),formfield(Curr...', 'Foswiki::Meta=HASH(0xcc8af0)') called at /usr/home/trunk.foswiki.org/core/lib/Foswiki.pm line 2917
Foswiki::_processMacros('Foswiki=HASH(0x9a0668)', 'Doesn\'t happen on Release01x01. Example:\x{a}%JQREQUIRE{"chili"}...', 'CODE(0x95b018)', 'Foswiki::Meta=HASH(0xcc8af0)', 16) called at /usr/home/trunk.foswiki.org/core/lib/Foswiki.pm line 2714
Foswiki::innerExpandMacros('Foswiki=HASH(0x9a0668)', 'SCALAR(0x95df28)', 'Foswiki::Meta=HASH(0xcc8af0)') called at /usr/home/trunk.foswiki.org/core/lib/Foswiki.pm line 3215
Foswiki::expandMacros('Foswiki=HASH(0x9a0668)', 'Doesn\'t happen on Release01x01. Example:\x{a}%JQREQUIRE{"chili"}...', 'Foswiki::Meta=HASH(0xcc8af0)') called at /usr/home/trunk.foswiki.org/core/lib/Foswiki/Meta.pm line 3209
Foswiki::Meta::expandMacros('Foswiki::Meta=HASH(0xcc8af0)', 'Doesn\'t happen on Release01x01. Example:\x{a}%JQREQUIRE{"chili"}...') called at /usr/home/trunk.foswiki.org/core/lib/Foswiki/UI/View.pm line 406
Foswiki::UI::View::_prepare('Doesn\'t happen on Release01x01. Example:\x{a}%JQREQUIRE{"chili"}...', 'Foswiki::Meta=HASH(0xcc8af0)', 0) called at /usr/home/trunk.foswiki.org/core/lib/Foswiki/UI/View.pm line 386
Foswiki::UI::View::view('Foswiki=HASH(0x9a0668)') called at /usr/home/trunk.foswiki.org/core/lib/Foswiki/UI.pm line 316
Foswiki::UI::__ANON__() called at /usr/local/lib/perl5/site_perl/5.10.1/Error.pm line 415
eval {...} called at /usr/local/lib/perl5/site_perl/5.10.1/Error.pm line 407
Error::subs::try('CODE(0x603c88)', 'HASH(0x9a0218)') called at /usr/home/trunk.foswiki.org/core/lib/Foswiki/UI.pm line 435
Foswiki::UI::_execute('Foswiki::Request=HASH(0x9787e8)', 'CODE(0x666cb8)', 'view', 1) called at /usr/home/trunk.foswiki.org/core/lib/Foswiki/UI.pm line 274
Foswiki::UI::handleRequest('Foswiki::Request=HASH(0x9787e8)') called at /usr/home/trunk.foswiki.org/core/lib/Foswiki/Engine/CGI.pm line 37
Foswiki::Engine::CGI::run('Foswiki::Engine::CGI=HASH(0x77ca88)') called at /home/trunk.foswiki.org/core/bin/view line 29.

Test:
Searched: 1

Results from Tasks web retrieved at 14:25 (GMT)

AC
Main.ArthurClemens
Number of topics: 1

-- PaulHarvey - 18 Jun 2011

Actually... it crashes both, it's just that we don't have ASSERTS on foswiki.org.

-- PaulHarvey - 18 Jun 2011

 
Topic revision: r13 - 17 Dec 2011, GeorgeClark
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