#4821 UI drops "Unknown Error" when the ipa record in /etc/hosts changes
Closed: Fixed None Opened 9 years ago by pvoborni.

Assessment of the description below: Web UI should detect communication issue(404, reuse of certificate, etc...) in AJAX call and print appropriate error message instead of "Unknown error".

Ticket was cloned from Red Hat Bugzilla (product Fedora): Bug 1168266

Description of problem:
IPA UI starts dropping "Enknown Error" / error when the IPA record in
/etc/hosts changes. Typically it doesn't happen to change IP addres of IPA host
in /etc/hosts but UI should count with it and drops proper error message.

Version-Release number of selected component (if applicable):
freeipa-server-4.1.2-1.fc21

How reproducible:
Always

Steps to Reproduce:
1. Set /etc/hosts like following:
192.168.123.123         ipa.mydomain.test ipa
2. Configure IPA server (via ipa-server-install)
3. start ipa server: systemctl start ipa
4. start your browser (firefox for example) and insert url of ipa server:
ipa.mydomain.test
5. login as "admin", click, click, click, ...
6. change the record in /etc/hosts like this:
192.168.123.111         ipa.mydomain.test ipa
7. go back to your browser and "click, click, click" will raise the "Unknown
Error" and won't let any action anymore

Actual results:
Title: Unknown Error
Body: error

Expected results:
Proper error message
Note: Full recovery would be nice to have but I suspect it can't happen because
of other services re-configuration and other related action that would be
non-trivial or not possible.

Additional info:
Ensure that you have no other device running on IP addresses mentioned above
(or change them according your needs).

This is not a priority for next release, pushing out. Help welcome!

This error appears every time when Web UI can't communicate with server API from whatever reason (untrusted cert, API down, proxy, ...)

master:

  • b18a351 WebUI: Add handling for HTTP error 404

Metadata Update from @pvoborni:
- Issue assigned to pvomacka
- Issue set to the milestone: FreeIPA 4.5

7 years ago

Login to comment on this ticket.

Metadata