Uploaded image for project: 'COmanage'
  1. COmanage
  2. CO-1835

registry is not stripping spaces from identifier

    XMLWordPrintable

Details

    Description

      I created an enrollment flow that asks the user for their GitHub username. Users can enter this, but comanage is not stripping spaces from the end of the name. See the example where I reproduced this by setting my GitHub name to 'duncanbrown '. The space appears after the name and before the cursor (the thin vertical line). It ends up in the database:

      MariaDB [registry]> select identifier,quote(identifier),type,status from cm_identifiers where identifier like 'duncanbrown%';

      -------------------------------------------+

      | identifier   | quote(identifier) | type   | status |  

      -------------------------------------------+ 

      | duncanbrown  | 'duncanbrown '    | GitHub | A      | 

      -------------------------------------------+ 

      1 row in set (0.01 sec)

      Attachments

        Activity

          People

            benn.oshrin@at.internet2.edu Benn Oshrin (internet2.edu)
            duncan.brown@at.internet2.edu Duncan Brown
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: