You are here: Foswiki>Tasks Web>Item13937 (04 Mar 2016, GeorgeClark)Edit Attach

Item13937: Crash in Search if web contains topic name containing a backslash

pencil
Priority: Normal
Current State: Confirmed
Released In: n/a
Target Release: n/a
Applies To: Engine
Component: FoswikiStore, SEARCH
Branches: master Item13897
Reported By: GeorgeClark
Waiting For:
Last Change By: GeorgeClark
In Sandbox, create a topic name containing a backslash. Ab\Cd, then visit Sandbox.

I'm not actually sure where the error is. The topic name appears to have lost all characters prior to the backslash. The actual name in the below dump was "KALENDER\2", but the topic name passed to the MetaCache was just 2.

Could not perform search. Error was: Assertion failed!
at /var/www/foswiki/distro/core/lib/AssertOn.pm line 30.
Assert::ASSERT("") called at /var/www/foswiki/distro/core/lib/Foswiki/MetaCache.pm line 222
Foswiki::MetaCache::get(Foswiki::MetaCache=HASH(0x32444d8), "Litterbox.2") called at /var/www/foswiki/distro/core/lib/Foswiki/Search/InfoCache.pm line 304
Foswiki::Search::InfoCache::sortTopics(ARRAY(0x300e420), "modified", "") called at /var/www/foswiki/distro/core/lib/Foswiki/Search/InfoCache.pm line 222
Foswiki::Search::InfoCache::sortResults(Foswiki::Search::InfoCache=HASH(0x300e5a0), HASH(0x30c56e8)) called at /var/www/foswiki/distro/core/lib/Foswiki/Search/ResultSet.pm line 273
Foswiki::Search::ResultSet::sortResults(Foswiki::Search::ResultSet=HASH(0x3218bb8), HASH(0x30c56e8)) called at /var/www/foswiki/distro/core/lib/Foswiki/Iterator/FilterIterator.pm line 64
Foswiki::Iterator::FilterIterator::sortResults(Foswiki::Iterator::FilterIterator=HASH(0x3218bd0), HASH(0x30c56e8)) called at /var/www/foswiki/distro/core/lib/Foswiki/Store/Interfaces/QueryAlgorithm.pm line 140
Foswiki::Store::Interfaces::QueryAlgorithm::query(Foswiki::Store::SearchAlgorithms::Forking=HASH(0x31d4488), Foswiki::Search::Node=HASH(0x31781e8), undef, Foswiki=HASH(0x144eff8), HASH(0x30c56e8)) called at /var/www/foswiki/distro/core/lib/Foswiki/Store/PlainFile.pm line 888
Foswiki::Store::PlainFile::query(Foswiki::Store::PlainFile=HASH(0x2398de8), Foswiki::Search::Node=HASH(0x31781e8), undef, Foswiki=HASH(0x144eff8), HASH(0x30c56e8)) called at /var/www/foswiki/distro/core/lib/Foswiki/Meta.pm line 984
Foswiki::Meta::query(Foswiki::Search::Node=HASH(0x31781e8), undef, HASH(0x30c56e8)) called at /var/www/foswiki/distro/core/lib/Foswiki/Search.pm line 408
Foswiki::Search::searchWeb(Foswiki::Search=HASH(0x2fd0e70), "baseweb", "Litterbox", "_DEFAULT", ".*", "search", ".*", "nonoise", "on", ...) called at /var/www/foswiki/distro/core/lib/Foswiki/Macros/SEARCH.pm line 39
Foswiki::__ANON__() called at /usr/share/perl5/Error.pm line 416
eval {...} called at /usr/share/perl5/Error.pm line 408
Error::subs::try(CODE(0x2fd1020), HASH(0x2fd30d8)) called at /var/www/foswiki/distro/core/lib/Foswiki/Macros/SEARCH.pm line 60
Foswiki::SEARCH(Foswiki=HASH(0x144eff8), Foswiki::Attrs=HASH(0x2fd0de0), Foswiki::Meta=HASH(0x29fc820)) called at /var/www/foswiki/distro/core/lib/Foswiki.pm line 3516
Foswiki::_expandMacroOnTopicRendering(Foswiki=HASH(0x144eff8), "SEARCH", "\x{a}\x{9}\".*\"\x{a}\x{9}type=\"regex\"\x{a}\x{9}nonoise=\"on\"\x{a}\x{9}order=\"modified\"\x{a}\x{9}reverse"..., Foswiki::Meta=HASH(0x29fc820)) called at /var/www/foswiki/distro/core/lib/Foswiki.pm line 3378
Foswiki::_processMacros(Foswiki=HASH(0x144eff8), "---+!! %MAKETEXT{\"Welcome to the [_1] web\" args=\"%WEB%\"}"..., CODE(0x1af8b28), Foswiki::Meta=HASH(0x29fc820), 16) called at /var/www/foswiki/distro/core/lib/Foswiki.pm line 3136
Foswiki::innerExpandMacros(Foswiki=HASH(0x144eff8), SCALAR(0x1b09690), Foswiki::Meta=HASH(0x29fc820)) called at /var/www/foswiki/distro/core/lib/Foswiki.pm line 3701
Foswiki::expandMacros(Foswiki=HASH(0x144eff8), "---+!! %MAKETEXT{\"Welcome to the [_1] web\" args=\"%WEB%\"}"..., Foswiki::Meta=HASH(0x29fc820)) called at /var/www/foswiki/distro/core/lib/Foswiki/Meta.pm line 3353
Foswiki::Meta::expandMacros(Foswiki::Meta=HASH(0x29fc820), "---+!! %MAKETEXT{\"Welcome to the [_1] web\" args=\"%WEB%\"}"...) called at /var/www/foswiki/distro/core/lib/Foswiki/UI/View.pm line 479
Foswiki::UI::View::_prepare("---+!! %MAKETEXT{\"Welcome to the [_1] web\" args=\"%WEB%\"}"..., Foswiki::Meta=HASH(0x29fc820), 0) called at /var/www/foswiki/distro/core/lib/Foswiki/UI/View.pm line 459
Foswiki::UI::View::view(Foswiki=HASH(0x144eff8)) called at /var/www/foswiki/distro/core/lib/Foswiki/UI.pm line 374
Foswiki::UI::__ANON__() called at /usr/share/perl5/Error.pm line 416
eval {...} called at /usr/share/perl5/Error.pm line 408
Error::subs::try(CODE(0x97b930), HASH(0x144ea10)) called at /var/www/foswiki/distro/core/lib/Foswiki/UI.pm line 500
Foswiki::UI::_execute(Foswiki::Request=HASH(0x1b7acd0), CODE(0x152e278), "view", 1) called at /var/www/foswiki/distro/core/lib/Foswiki/UI.pm line 326
Foswiki::UI::handleRequest(Foswiki::Request=HASH(0x1b7acd0)) called at /var/www/foswiki/distro/core/lib/Foswiki/Engine/CGI.pm line 100
Foswiki::Engine::CGI::run(Foswiki::Engine::CGI=HASH(0x1487ae8)) called at view line 29
at /var/www/foswiki/distro/core/lib/AssertOn.pm line 30.
Assert::ASSERT("") called at /var/www/foswiki/distro/core/lib/Foswiki/MetaCache.pm line 222
Foswiki::MetaCache::get(Foswiki::MetaCache=HASH(0x32444d8), "Litterbox.2") called at /var/www/foswiki/distro/core/lib/Foswiki/Search/InfoCache.pm line 304
Foswiki::Search::InfoCache::sortTopics(ARRAY(0x300e420), "modified", "") called at /var/www/foswiki/distro/core/lib/Foswiki/Search/InfoCache.pm line 222
Foswiki::Search::InfoCache::sortResults(Foswiki::Search::InfoCache=HASH(0x300e5a0), HASH(0x30c56e8)) called at /var/www/foswiki/distro/core/lib/Foswiki/Search/ResultSet.pm line 273
Foswiki::Search::ResultSet::sortResults(Foswiki::Search::ResultSet=HASH(0x3218bb8), HASH(0x30c56e8)) called at /var/www/foswiki/distro/core/lib/Foswiki/Iterator/FilterIterator.pm line 64
Foswiki::Iterator::FilterIterator::sortResults(Foswiki::Iterator::FilterIterator=HASH(0x3218bd0), HASH(0x30c56e8)) called at /var/www/foswiki/distro/core/lib/Foswiki/Store/Interfaces/QueryAlgorithm.pm line 140
Foswiki::Store::Interfaces::QueryAlgorithm::query(Foswiki::Store::SearchAlgorithms::Forking=HASH(0x31d4488), Foswiki::Search::Node=HASH(0x31781e8), undef, Foswiki=HASH(0x144eff8), HASH(0x30c56e8)) called at /var/www/foswiki/distro/core/lib/Foswiki/Store/PlainFile.pm line 888
Foswiki::Store::PlainFile::query(Foswiki::Store::PlainFile=HASH(0x2398de8), Foswiki::Search::Node=HASH(0x31781e8), undef, Foswiki=HASH(0x144eff8), HASH(0x30c56e8)) called at /var/www/foswiki/distro/core/lib/Foswiki/Meta.pm line 984
Foswiki::Meta::query(Foswiki::Search::Node=HASH(0x31781e8), undef, HASH(0x30c56e8)) called at /var/www/foswiki/distro/core/lib/Foswiki/Search.pm line 408
Foswiki::Search::searchWeb(Foswiki::Search=HASH(0x2fd0e70), "baseweb", "Litterbox", "_DEFAULT", ".*", "search", ".*", "nonoise", "on", ...) called at /var/www/foswiki/distro/core/lib/Foswiki/Macros/SEARCH.pm line 39
Foswiki::__ANON__() called at /usr/share/perl5/Error.pm line 416
eval {...} called at /usr/share/perl5/Error.pm line 408
Error::subs::try(CODE(0x2fd1020), HASH(0x2fd30d8)) called at /var/www/foswiki/distro/core/lib/Foswiki/Macros/SEARCH.pm line 60
Foswiki::SEARCH(Foswiki=HASH(0x144eff8), Foswiki::Attrs=HASH(0x2fd0de0), Foswiki::Meta=HASH(0x29fc820)) called at /var/www/foswiki/distro/core/lib/Foswiki.pm line 3516
Foswiki::_expandMacroOnTopicRendering(Foswiki=HASH(0x144eff8), "SEARCH", "\x{a}\x{9}\".*\"\x{a}\x{9}type=\"regex\"\x{a}\x{9}nonoise=\"on\"\x{a}\x{9}order=\"modified\"\x{a}\x{9}reverse"..., Foswiki::Meta=HASH(0x29fc820)) called at /var/www/foswiki/distro/core/lib/Foswiki.pm line 3378
Foswiki::_processMacros(Foswiki=HASH(0x144eff8), "---+!! %MAKETEXT{\"Welcome to the [_1] web\" args=\"%WEB%\"}"..., CODE(0x1af8b28), Foswiki::Meta=HASH(0x29fc820), 16) called at /var/www/foswiki/distro/core/lib/Foswiki.pm line 3136
Foswiki::innerExpandMacros(Foswiki=HASH(0x144eff8), SCALAR(0x1b09690), Foswiki::Meta=HASH(0x29fc820)) called at /var/www/foswiki/distro/core/lib/Foswiki.pm line 3701
Foswiki::expandMacros(Foswiki=HASH(0x144eff8), "---+!! %MAKETEXT{\"Welcome to the [_1] web\" args=\"%WEB%\"}"..., Foswiki::Meta=HASH(0x29fc820)) called at /var/www/foswiki/distro/core/lib/Foswiki/Meta.pm line 3353
Foswiki::Meta::expandMacros(Foswiki::Meta=HASH(0x29fc820), "---+!! %MAKETEXT{\"Welcome to the [_1] web\" args=\"%WEB%\"}"...) called at /var/www/foswiki/distro/core/lib/Foswiki/UI/View.pm line 479
Foswiki::UI::View::_prepare("---+!! %MAKETEXT{\"Welcome to the [_1] web\" args=\"%WEB%\"}"..., Foswiki::Meta=HASH(0x29fc820), 0) called at /var/www/foswiki/distro/core/lib/Foswiki/UI/View.pm line 459
Foswiki::UI::View::view(Foswiki=HASH(0x144eff8)) called at /var/www/foswiki/distro/core/lib/Foswiki/UI.pm line 374
Foswiki::UI::__ANON__() called at /usr/share/perl5/Error.pm line 416
eval {...} called at /usr/share/perl5/Error.pm line 408
Error::subs::try(CODE(0x97b930), HASH(0x144ea10)) called at /var/www/foswiki/distro/core/lib/Foswiki/UI.pm line 500
Foswiki::UI::_execute(Foswiki::Request=HASH(0x1b7acd0), CODE(0x152e278), "view", 1) called at /var/www/foswiki/distro/core/lib/Foswiki/UI.pm line 326
Foswiki::UI::handleRequest(Foswiki::Request=HASH(0x1b7acd0)) called at /var/www/foswiki/distro/core/lib/Foswiki/Engine/CGI.pm line 100
Foswiki::Engine::CGI::run(Foswiki::Engine::CGI=HASH(0x1487ae8)) called at view line 29.

-- GeorgeClark - 29 Jan 2016

 

ItemTemplate edit

Summary Crash in Search if web contains topic name containing a backslash
ReportedBy GeorgeClark
Codebase 2.1.0 beta1, 2.0.3, trunk
SVN Range
AppliesTo Engine
Component FoswikiStore, SEARCH
Priority Normal
CurrentState Confirmed
WaitingFor
Checkins distro:582a3cbad300
TargetRelease n/a
ReleasedIn n/a
CheckinsOnBranches master Item13897
trunkCheckins
masterCheckins distro:582a3cbad300
ItemBranchCheckins distro:582a3cbad300
Release02x00Checkins
Release01x01Checkins
Topic revision: r3 - 04 Mar 2016, 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