Item11061: lc(Field) =~ lc('something') failing again

pencil
Priority: Normal
Current State: New
Released In: n/a
Target Release: n/a
Applies To: Extension
Component: MongoDBPlugin
Branches:
Reported By: PaulHarvey
Waiting For:
Last Change By: PaulHarvey
SEARCH crash: Acacia/LLB/Taxa.0048: SEARCH{"lc(Acacia_SeedSource)=~lc('9002') AND (fields[value='Acacia/LLB/Taxa.0048'])"

This works fine, though:
SEARCH{"Acacia_SeedSource=~'9002' AND (fields[value='Acacia/LLB/Taxa.0048'])"

Can't lc an integer? The mongod log said:

Wed Aug 24 16:49:38 [conn1586] JS Error: SyntaxError: missing ; before statement nofile_a:0
Wed Aug 24 16:49:38 [conn1586] Count with ns: web_abd862ce9541a8916cc97b4646f81bd7.current and query: { _history: { $exists: 0 }
, $where: " ( (( /9002/.test(foswiki_toLowerCase(foswiki_getField(this, 'FIELD.Ac..." } failed with exception: exception: 10070 
$where compile error
Wed Aug 24 16:49:38 [conn1586] JS Error: SyntaxError: missing ; before statement nofile_a:0
Wed Aug 24 16:49:38 [conn1586] assertion 10070 $where compile error ns:web_abd862ce9541a8916cc97b4646f81bd7.current query:{ orde
rby: { _topic: 1 }, query: { _history: { $exists: 0 }, $where: " ( (( /9002/.test(foswiki_toLowerCase(foswiki_getField(this, 'FI
ELD.Ac..." } }
Wed Aug 24 16:49:47 [clientcursormon] mem (MB) res:4577 virt:10241 mapped:9791
Wed Aug 24 16:49:48 [conn1566] JS Error: SyntaxError: missing ; before statement nofile_a:0
Wed Aug 24 16:49:48 [conn1566] Count with ns: web_abd862ce9541a8916cc97b4646f81bd7.current and query: { _history: { $exists: 0 }
, $where: " ( (( /9002/.test(foswiki_toLowerCase(foswiki_getField(this, 'FIELD.Ac..." } failed with exception: exception: 10070 
$where compile error
Wed Aug 24 16:49:48 [conn1566] JS Error: SyntaxError: missing ; before statement nofile_a:0
Wed Aug 24 16:49:48 [conn1566] assertion 10070 $where compile error ns:web_abd862ce9541a8916cc97b4646f81bd7.current query:{ orderby: { _topic: 1 }, query: { _history: { $exists: 0 }, $where: " ( (( /9002/.test(foswiki_toLowerCase(foswiki_getField(this, 'FIELD.Ac..." } }

-- PaulHarvey - 24 Aug 2011

MongoDBPlugin MongoDBPlugin:74d537b5ca54

core distro:43d73c8445c3

-- PaulHarvey - 24 Aug 2011

 

ItemTemplate edit

Summary lc(Field) =~ lc('something') failing again
ReportedBy PaulHarvey
Codebase trunk
SVN Range
AppliesTo Extension
Component MongoDBPlugin
Priority Normal
CurrentState New
WaitingFor
Checkins
TargetRelease n/a
ReleasedIn n/a
Topic revision: r1 - 24 Aug 2011, PaulHarvey - This page was cached on 20 Oct 2020 - 10:08.

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