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

mongo shell hangs on parser error and does not issue error

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • 2.6.0-rc0
    • Admin
    • 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"

    Description

      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"

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: