Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-42775

Users are not getting listed propely when created with a line break.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • 4.16.z
    • oc
    • None
    • 1
    • Workloads Sprint 261
    • 1
    • False
    • Hide

      None

      Show
      None
    • Release Note Not Required
    • In Progress

      Description of problem:

      1. Creating a Normal User:
      
      ```
      $ oc create user test
      user.user.openshift.io/test created
      
      $ oc get user
      NAME       UID                                    FULL NAME   IDENTITIES
      test       cef90f53-715e-4c10-9e26-c431d31de8c3               
      ```
      
      This command worked as expected, and the user appeared correctly in both the CLI and the web console.
      
      2. Using Special Characters:
      
      ```
      $ oc create user test$*(
      > test)
      user.user.openshift.io/test(
      test) created
      
      $ oc get user
      NAME       UID                                    FULL NAME   IDENTITIES
      test       cef90f53-715e-4c10-9e26-c431d31de8c3               
      test(...   50f2ad2b-1385-4b3c-b32c-b84531808864
      ```
      
      In this case, the user was created successfully and displayed correctly in the web console as test( test). However, the CLI output was not as expected.
      
      3. Handling Quoted Names:
      
      ```
      $ oc create user test'
      > test'
      
      $ oc get user
      NAME       UID                                    FULL NAME   IDENTITIES
      test...    1fdaadf0-7522-4d38-9894-ee046a58d835
      ```
      
      Similarly, creating a user with quotes produced a discrepancy: the CLI displayed test..., but the web console showed it as test test.

      Version-Release number of selected component (if applicable):

      4.16

      How reproducible:

      100%

      Steps to Reproduce:

      Given in the description.     

      Actual results:

      The user list is not getting listed properly.

      Expected results:

      1. User should not be created with a line break.
      2. If they are being created, then they should be displayed properly.

      Additional info:

          

            aguclu@redhat.com Arda Guclu
            rhn-support-arbhagat Arpit Bhagat
            ying zhou ying zhou
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: