cloud-gov / cg-dashboard

Unarchived due to stratos bug in user management: https://github.com/cloudfoundry/stratos/issues/4103
Other
30 stars 18 forks source link

"Inviting users" 500 error #1317

Closed rogeruiz closed 5 years ago

rogeruiz commented 5 years ago

If a user that already exists in CF / UAA is invited, it causes a 500 error when inviting users.

   2018-11-29T09:42:24.94-0500 [RTR/2] OUT dashboard.fr.cloud.gov - [2018-11-29T14:42:24.678+0000] "POST /uaa/invite/users HTTP/1.1" 500 34 75 "https://dashboard.fr.cloud.gov/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0 Safari/605.1.15" "127.0.0.1:${local_port}" "${internal_ip}:${internal_port}" x_forwarded_for:"${external_ip}, 127.0.0.1" x_forwarded_proto:"https" vcap_request_id:"${guid_id}" response_time:0.270706112 app_id:"${app_id}" app_index:"2" x_b3_traceid:"${trace_id}" x_b3_spanid:"${span_id}" x_b3_parentspanid:"-"
   2018-11-29T09:42:24.94-0500 [RTR/2] OUT
rogeruiz commented 5 years ago

This seems to affect users who are "active" but not "verified". After checking with someone who was attempting to do this, they were able to add the user via the dashboard again once the invitee logged into their account and was put into a "verified" state by UAA.