Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-1044

Mongosh output from java execution contains dots depending on script depth

    • Type: Icon: Bug Bug
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • No version
    • Affects Version/s: 1.1.1
    • Component/s: Java Shell, Shell API
    • Labels:
      None
    • Not Needed

      Problem Statement/Rationale

      While using mongosh via external java program, the output of the commands are affected by the cyclomatic complexity.

      Steps to Reproduce

      I put an example code piece for you to experiment and see the difference.

      Expected Results

      I would normally expect to get same output from both command executions (As it was the case in legacy mongo shell implementation).

      Actual Results

      Additional indentation dots and following space are appearing as part of output.

      Additional Notes

      Maybe using ".editor" mode can work as a workaround. But not sure if this is expected behaviour or not. Just creating this ticket for clarification.

            Assignee:
            Unassigned Unassigned
            Reporter:
            alperen.pulur@3tsoftwarelabs.com Alperen Pulur
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: