Created attachment 1014379 [details] err Description of problem: Version-Release number of selected component (if applicable): 5.4.0.0.19.20150410165622_ad23806 How reproducible: 100% Steps to Reproduce: 1.Navigate to infrastructure->Configuration management 2.Add a new foreman provider with invalid user id and click on validate 3. Actual results: 401 Unauthorized displayed in UI. see attached screenshot Expected results: correct validation message required Additional info:
We should identify how we are handling this for other providers.
We're rescuing the RestClient::Unauthorized exception and re-raising MiqException::MiqInvalidCredentialsError with the error message Should we be changing our message to something other than the error message?
yes,may be with more user friendly message.
John, We're doing the same thing that we do for every other "provider". This one just happens to return "401 Unauthorized" as the message. Should we change this across the board to be something friendlier?
This is working as designed, we specifically rescue this exception and re-raise it this way. If desired please open an RFE bug for providers to all return consistent error messages for known errors.