Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-10345

regex search result difference copy/paste and manual type

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Critical - P2 Critical - P2
    • None
    • Affects Version/s: 2.4.5
    • Component/s: None
    • Labels:
      None
    • Environment:
      telman@telman:~/Apps$ uname -a
      Linux telman 3.8.0-26-generic #38-Ubuntu SMP Mon Jun 17 21:43:33 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
    • Linux
    • Hide

      telman@telman:~$ uname -a
      Linux telman 3.8.0-26-generic #38-Ubuntu SMP Mon Jun 17 21:43:33 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

      telman@telman:~$ locale
      LANG=en_US.UTF-8
      LANGUAGE=
      LC_CTYPE="en_US.UTF-8"
      LC_NUMERIC=tr_TR.UTF-8
      LC_TIME=tr_TR.UTF-8
      LC_COLLATE="en_US.UTF-8"
      LC_MONETARY=tr_TR.UTF-8
      LC_MESSAGES="en_US.UTF-8"
      LC_PAPER=tr_TR.UTF-8
      LC_NAME=tr_TR.UTF-8
      LC_ADDRESS=tr_TR.UTF-8
      LC_TELEPHONE=tr_TR.UTF-8
      LC_MEASUREMENT=tr_TR.UTF-8
      LC_IDENTIFICATION=tr_TR.UTF-8
      LC_ALL=

      telman@telman:~$ mongo uysdb
      MongoDB shell version: 2.4.5
      connecting to: uysdb
      >
      db.dataBankCalculateFormulas.update(

      {"name" : "A.А=A.I+A.II"}

      ,
      {$set:{
      "active" : true,
      "converter" : "MoneyConverter",
      "droolsMeasureKey" : "solo",
      "droolsRuleCoordinate" :

      {"xCode" : "A.А","yCode" : "solo"}

      ,
      "droolsVertical" : [
      "+",

      {"valueKey":"solo", "xCode":"A.I", "yCode":"solo"}

      ,
      "+",

      {"valueKey":"solo", "xCode":"A.II", "yCode":"solo"}

      ],
      "forms" : "calculateFormulas",
      "relations" : "H1",
      "style" : "background-color : #98FB98 ; text-align : right;",
      "validPeriods" : [200306]
      }},

      {upsert:true}

      );

      db.dataBankCalculateFormulas.findOne(

      {"name" : "A.А=A.I+A.II"}

      )

      {
      "_id" : ObjectId("51f219b9cfd52b4d2be30f1c"),
      "active" : true,
      "converter" : "MoneyConverter",
      "droolsMeasureKey" : "solo",
      "droolsRuleCoordinate" :

      { "xCode" : "A.А", "yCode" : "solo" }

      ,
      "droolsVertical" : [
      "+",

      { "valueKey" : "solo", "xCode" : "A.I", "yCode" : "solo" }

      ,
      "+",

      { "valueKey" : "solo", "xCode" : "A.II", "yCode" : "solo" }

      ],
      "forms" : "calculateFormulas",
      "name" : "A.А=A.I+A.II",
      "relations" : "H1",
      "style" : "background-color : #98FB98 ; text-align : right;",
      "validPeriods" : [
      200306
      ]
      }

      //type A.A= by using keybord
      db.dataBankCalculateFormulas.findOne(

      {"name" : /A.A=/}

      )
      null
      //copy/paste A.A= from above findOne search result
      db.dataBankCalculateFormulas.findOne(

      {"name" : /A.A=/}

      )
      it is o now
      {
      "_id" : ObjectId("51f219b9cfd52b4d2be30f1c"),
      "active" : true,
      "converter" : "MoneyConverter",
      "droolsMeasureKey" : "solo",
      "droolsRuleCoordinate" :

      { "xCode" : "A.А", "yCode" : "solo" }

      ,
      ...
      ...

      Show
      telman@telman:~$ uname -a Linux telman 3.8.0-26-generic #38-Ubuntu SMP Mon Jun 17 21:43:33 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux telman@telman:~$ locale LANG=en_US.UTF-8 LANGUAGE= LC_CTYPE="en_US.UTF-8" LC_NUMERIC=tr_TR.UTF-8 LC_TIME=tr_TR.UTF-8 LC_COLLATE="en_US.UTF-8" LC_MONETARY=tr_TR.UTF-8 LC_MESSAGES="en_US.UTF-8" LC_PAPER=tr_TR.UTF-8 LC_NAME=tr_TR.UTF-8 LC_ADDRESS=tr_TR.UTF-8 LC_TELEPHONE=tr_TR.UTF-8 LC_MEASUREMENT=tr_TR.UTF-8 LC_IDENTIFICATION=tr_TR.UTF-8 LC_ALL= telman@telman:~$ mongo uysdb MongoDB shell version: 2.4.5 connecting to: uysdb > db.dataBankCalculateFormulas.update( {"name" : "A.А=A.I+A.II"} , {$set:{ "active" : true, "converter" : "MoneyConverter", "droolsMeasureKey" : "solo", "droolsRuleCoordinate" : {"xCode" : "A.А","yCode" : "solo"} , "droolsVertical" : [ "+", {"valueKey":"solo", "xCode":"A.I", "yCode":"solo"} , "+", {"valueKey":"solo", "xCode":"A.II", "yCode":"solo"} ], "forms" : "calculateFormulas", "relations" : "H1", "style" : "background-color : #98FB98 ; text-align : right;", "validPeriods" : [200306] }}, {upsert:true} ); db.dataBankCalculateFormulas.findOne( {"name" : "A.А=A.I+A.II"} ) { "_id" : ObjectId("51f219b9cfd52b4d2be30f1c"), "active" : true, "converter" : "MoneyConverter", "droolsMeasureKey" : "solo", "droolsRuleCoordinate" : { "xCode" : "A.А", "yCode" : "solo" } , "droolsVertical" : [ "+", { "valueKey" : "solo", "xCode" : "A.I", "yCode" : "solo" } , "+", { "valueKey" : "solo", "xCode" : "A.II", "yCode" : "solo" } ], "forms" : "calculateFormulas", "name" : "A.А=A.I+A.II", "relations" : "H1", "style" : "background-color : #98FB98 ; text-align : right;", "validPeriods" : [ 200306 ] } //type A.A= by using keybord db.dataBankCalculateFormulas.findOne( {"name" : /A.A=/} ) null //copy/paste A.A= from above findOne search result db.dataBankCalculateFormulas.findOne( {"name" : /A.A=/} ) it is o now { "_id" : ObjectId("51f219b9cfd52b4d2be30f1c"), "active" : true, "converter" : "MoneyConverter", "droolsMeasureKey" : "solo", "droolsRuleCoordinate" : { "xCode" : "A.А", "yCode" : "solo" } , ... ...

      there is difference when you search with regex.
      when I normally use using keyboard it give the null result.
      when just copy/paste from previous success search result then it is ok.

      Could you please advice ?

      Regards,
      Telman

            Assignee:
            andre.defrere@mongodb.com Andre de Frere
            Reporter:
            shahbazov telman shahbazov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: