#2723 [IPA WebUI] multiple error dialog appears at same time
Closed: wontfix 5 years ago Opened 11 years ago by mkosek.

https://bugzilla.redhat.com/show_bug.cgi?id=818694 (Red Hat Enterprise Linux 6)

Description of problem:
I noticed this problem a while ago but failed to reproduce. It happens again
today. I will report the problem right now and try to reproduce it later.

As you can see from screenshot, there are two error dialogues appears at same
time. In fact, there are total 3 error dialogues. The third one is under the
circled dialogue. It says "ipa internal error"

Here are steps I recalled from my memory:
1. go to "Identity->DNS->DNS Zones"
2. click "Add" to create a new zone
3. for "Zone name" enter ASCII string: like "test.redhat.com"
4. for "Authoritative nameserver" enter UTF-8 String like "env.yzhang.??"
5. click "Add"
-- what I saw after click "Add" is that there are no response for about 5-10
seconds.
6. Since I see no response in UI, I then click "Cancel" on the same dialog
7. Dialog disappears. I then click "Add" again to start a new test.
8. for "Zone name" enter UTF-8 string like "env.yzhang.?????"
9. for "Authoritative nameserver", enter ASCII string, like "test.redhat.com"
10. click "Add"

-- almost right after click "Add". I saw the dialog "IPA Internal Error"
-- then about a second or two later, the second dialog appears. "invilid
'name': only letters, numbers, and - are allowed. DNS label may not start or
end with -
-- a secnd or two after second dialog, the third dialog appears.

It looks like some of these dialogues are delayed response to previous action.


Version-Release number of selected component (if applicable):
[yi@fig (RH6.3-x86_64) /] rpm -qi ipa-server
Name        : ipa-server                   Relocations: (not relocatable)
Version     : 2.2.0                             Vendor: Red Hat, Inc.
Release     : 12.el6                        Build Date: Mon 30 Apr 2012
11:52:52 AM PDT
Install Date: Wed 02 May 2012 11:00:38 AM PDT      Build Host:
x86-004.build.bos.redhat.com
Group       : System Environment/Base       Source RPM:
ipa-2.2.0-12.el6.src.rpm
Size        : 3778371                          License: GPLv3+
Signature   : (none)
Packager    : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
URL         : http://www.freeipa.org/
Summary     : The IPA authentication server


Additional info:
I have seen similar behave for other operations.
1. I sometimes accidentally click "Add" to add new entry into ipa server.
Sometimes a duplicated record being created.
2. I sometimes click "Delete" twice, and a error dialog appears and says
"record not found"

The bug is indeed caused by multiple commands evaluating at the same time. The ticket describes when response for the first command comes after the second (and so on when there are more commands).

Possible causes:
- a command takes a long time to execute. User doesn't notice that it is still executing and starts other command.
- user double/triple/... clicks on add button before receiving response from server

In my opinion showing multiple error dialogs is not a bug. We have to show response for each command user starts. What we might do is discourage user to execute multiple commands. It may be done by following means:
- show activity indicator in adder dialog. Right now activity indicator is shown in background and can be easily overlooked.
- disable adder button for short period of time to avoid double/triple clicks

Disabling buttons seems like a low hanging fruit.

Keeping it in the beta 1 as the scope is unknown. Petr please assess.

Scope is large (all buttons) but severity is minor. Because of the large scope (more testing) I would rather fix it in 3.1.

This issue may confuse user but it shouldn't do any harm. Reasoning:

If user clicks repeatedly (before first click's action finishes) on:
- update button: error message is something like: "nothing to change"
- delete button: "record not found"
- add button: "XXX with name YYY already exists."

for other actions it should be similar: disable/enable can only be done once.

Personally to fix the issue I would do both: show activity indicator (prevents confusion) and disable button for short period of time (ie 1s) (prevents double clicks). Time-wise both are equal.

OK, makes sense. Moving out.

Metadata Update from @mkosek:
- Issue assigned to pvoborni
- Issue set to the milestone: Future Releases

7 years ago

Metadata Update from @pvomacka:
- Issue close_status updated to: None
- Issue tagged with: webui

6 years ago

Thank you taking time to submit this request for FreeIPA. Unfortunately this bug was not given priority and the team lacks the capacity to work on it at this time.

Given that we are unable to fulfil this request I am closing the issue as wontfix. To request re-consideration of this decision please reopen this issue and provide additional technical details about its importance to you.

Metadata Update from @rcritten:
- Issue close_status updated to: wontfix
- Issue status updated to: Closed (was: Open)

5 years ago

Login to comment on this ticket.

Metadata