Uploaded image for project: 'AeroGear'
  1. AeroGear
  2. AEROGEAR-518

TODO: register a user with an existing username returns 400 status code

    XMLWordPrintable

Details

    • Bug
    • Resolution: Obsolete
    • Major
    • 1.future
    • 1.0.0.M5
    • examples, security
    • None

    Description

      When I register a user with an existing username, I get a 400 status code:

      First try:

      curl -v -H "Accept: application/json" -H "Content-type: application/json" -X POST -d '{"firstname":"Abstract","lastname":"J","email":"mei@open.de","username":"mrBruno","password":"password","role":"admin"}' http://localhost:8080/todo-server/auth/register
      

      ==> 200

      Second try:

      curl -v -H "Accept: application/json" -H "Content-type: application/json" -X POST -d '{"firstname":"Abstract","lastname":"J","email":"mei@open.de","username":"mrBruno","password":"password","role":"admin"}' http://localhost:8080/todo-server/auth/register
      

      ==> 400 response code.

      Attachments

        Activity

          People

            boliveir_managed_kafka_security (inactive user) Bruno Oliveira Silva (Inactive)
            mwessend@redhat.com Matthias Wessendorf
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: