Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.4, 2.2.0
    • Fix Version/s: 2.2.2, 3.0.0
    • Component/s: karaf-shell
    • Labels:
      None
    • Environment:

      Windows

      Description

      When running Karaf on Windows with -Djline.terminal=jline.UnsupportedTerminal the Karaf prompt in the console is displayed twice after executing some command (i.e. pressing enter).

      I believe the problem is in the jline library in ConsoleReader.readLine(InputStream) as the function will return after seeing first \r or \n. But on Windows \r\n is used as the EOL and the function does not consume the remaining \n.

        Activity

        Jarek Gawor created issue -
        Hide
        Andreas Pieber added a comment -

        I can reproduce this error also in the linux shell if I use -Djline.terminal=jline.UnsupportedTerminal. Let's see if I can get it running with a patched jline version

        Show
        Andreas Pieber added a comment - I can reproduce this error also in the linux shell if I use -Djline.terminal=jline.UnsupportedTerminal. Let's see if I can get it running with a patched jline version
        Hide
        Andreas Pieber added a comment -

        correction. I mean a different issue in linux . This one is windows only (I can reproduce it)

        Show
        Andreas Pieber added a comment - correction. I mean a different issue in linux . This one is windows only (I can reproduce it)
        Jarek Gawor made changes -
        Field Original Value New Value
        Assignee Jarek Gawor [ gawor@mcs.anl.gov ]
        Hide
        Jarek Gawor added a comment -

        I committed fixes for this problem to trunk (revision 1124286) and 2.2 branch (revision 1124287). I updated the jline.console.ConsoleReader to consume the extra LF character if there is one - much like what BufferedReader does.

        Show
        Jarek Gawor added a comment - I committed fixes for this problem to trunk (revision 1124286) and 2.2 branch (revision 1124287). I updated the jline.console.ConsoleReader to consume the extra LF character if there is one - much like what BufferedReader does.
        Jarek Gawor made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 2.2.2 [ 12316339 ]
        Fix Version/s 3.0.0 [ 12316040 ]
        Resolution Fixed [ 1 ]
        Hide
        Jamie goodyear added a comment -

        Fixed in Apache Karaf 2.2.2.

        Show
        Jamie goodyear added a comment - Fixed in Apache Karaf 2.2.2.
        Jamie goodyear made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        76d 20h 2m 1 Jarek Gawor 18/May/11 15:44
        Resolved Resolved Closed Closed
        47d 4h 9m 1 Jamie goodyear 04/Jul/11 19:54

          People

          • Assignee:
            Jarek Gawor
            Reporter:
            Jarek Gawor
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development