Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-5382

Karaf shell session.readLine consumes backslashes

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.2.0.M1
    • Component/s: karaf
    • Labels:
      None

      Description

      I don't know what the intended use case is for session.readLine, but the behaviour w.r.t backslashes is odd.
      I use is to prompt for a password from the user. So in an action, call session.readLine("prompt", '*'). However, if the user's password contains a backslash, readLine doesn't return what the user typed, which is mighty confusing.

        Attachments

          Activity

            People

            • Assignee:
              gnt Guillaume Nodet
              Reporter:
              tomq42 Tom Quarendon
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: