mongo shell hangs on parser error and does not issue error

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: 2.6.0-rc0
    • Component/s: Admin
    • Environment:
      CentOS release 6.5
    • Linux
    • Hide

      Test Case - Enter a command with a syntax error as follows:
      mongo
      MongoDB shell version: 2.6.0-rc0
      connecting to: test
      > show collections;
      cars
      system.indexes
      temperature
      users
      – Now issue a command with a syntax error missing the closing "}"
      > db.cars.find({)
      – The shell issues ... but no error message or indication what is wrong and it just "hangs"

      Show
      Test Case - Enter a command with a syntax error as follows: mongo MongoDB shell version: 2.6.0-rc0 connecting to: test > show collections; cars system.indexes temperature users – Now issue a command with a syntax error missing the closing "}" > db.cars.find({) – The shell issues ... but no error message or indication what is wrong and it just "hangs"
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      MongoDB shell version: 2.6.0-rc0
      The mongo shell hangs on a parser error and does not issue an error.
      Test Case
      mongo
      MongoDB shell version: 2.6.0-rc0
      connecting to: test
      > show collections;
      cars
      system.indexes
      temperature
      users
      – Now issue a command with a syntax error missing the closing "}"
      > db.cars.find({)
      – The shell prints three dots ... but no error message or indication what is wrong and it just "hangs"

            Assignee:
            Unassigned
            Reporter:
            Bruce W. Hard
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: