Bug 999813 - [Usability] Cancel operation is ignored when flushing JMS destination metrics in the management console
[Usability] Cancel operation is ignored when flushing JMS destination metrics...
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: Web Console (Show other bugs)
Unspecified Unspecified
unspecified Severity high
: ER9
: EAP 6.3.0
Assigned To: Harald Pehl
Jakub Cechacek
Russell Dickenson
Depends On:
Blocks: 1003533
  Show dependency treegraph
Reported: 2013-08-22 03:48 EDT by Osamu Nagano
Modified: 2015-02-01 18:00 EST (History)
5 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
In JBoss EAP 6.1.0 and 6.1.1, before flushing a JMS destination via the web management console, a confirmation dialog was shown, requesting confirmation of the action. Regardless of the user's reply, the JMS destination *was* flushed. The root cause of this issue was that the result of the confirmation prompt was ignored. This issue has now been resolved and the JMS destination is only flushed if the confirmation dialog was closed with "OK".
Story Points: ---
Clone Of:
Last Closed: 2014-08-06 10:37:17 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

External Trackers
Tracker ID Priority Status Summary Last Updated
JBoss Issue Tracker WFLY-1921 Major Resolved Cancel operation is ignored when flushing JMS destination metrics in the management console 2014-07-24 03:29:06 EDT

  None (edit)
Description Osamu Nagano 2013-08-22 03:48:44 EDT
Description of problem:
When you push "Flush" button on JMS Destinations runtime tab (both of queues and topics), a confirmation dialog box brings up. "Cancel" button in the dialog box is always ignored and destination flushing is inevitably executed.

Steps to Reproduce:
1. Launch a standalone-full.xml instance.
2. Create a queue, helloworld-jms quickstart is sufficient.
3. In the management console, go to "Runtime > JMS Destinations > Queues" tab.
4. Select the queue and push "Flush".
5. Push "Cancel" in the dialog.
6. "Cancel" is ignored and messages are flushed.

Additional info:
"remove-messages" operation in CLI is the equivalent one.  So possible workaround will be something like as follows.
Comment 1 JBoss JIRA Server 2013-08-22 04:07:38 EDT
Osamu Nagano <onagano@redhat.com> made a comment on jira WFLY-1921

{{isConfirmed}} is ignored in the {{onConfirmation()}} method.  The same in {{TopicMetrics.java}}.
    176                 Feedback.confirm("Flush Queue", "Do you really want to flush queue "+queue.getName(),
    177                         new Feedback.ConfirmationHandler(){
    178                             @Override
    179                             public void onConfirmation(boolean isConfirmed) {
    180                                 presenter.onFlushQueue(queue);
    181                             }
    182                         });
Comment 2 Osamu Nagano 2013-08-22 23:18:18 EDT
This bug can be critical, a message lost, but easy to fix.  Shouldn't we rush this into EAP 6.1.1?
Comment 3 Jakub Cechacek 2013-08-23 05:09:12 EDT
I seriously doubt that lack of confirmation dialog is critical. It is certainly confusing and thus should be properly documented. 6.1.1 is in ER8 should go straight to GA. I will propose this fix to 6.2.0

If you would have decided to perform this operation from let's say CLI, you would have to do so without confirmation message. Another workaround would bo to close configrmation dialog with the X button in upport right corner.
Comment 4 Heiko Braun 2013-08-23 05:14:24 EDT
I agree with Jakub, I would consider this to be a critical bug.
Comment 6 Heiko Braun 2013-08-23 05:15:25 EDT
meant to say: ... would not
Comment 8 Jakub Cechacek 2013-09-26 08:00:35 EDT
Confirmation dialog is still broken. This is an important usability issue promised to be addressed in 6.2.0. Thus setting higher severity and proposing a blocker.
Comment 9 Jakub Cechacek 2013-09-26 08:10:46 EDT
I apologize for last comment. The verification was done against ER2. 
The issue as described in this report is fixed in ER3 (hal 2.0.0.Final) 

Verified 6.2.0.ER3
Comment 11 JBoss JIRA Server 2013-12-05 08:02:42 EST
Harald Pehl <hpehl@redhat.com> updated the status of jira WFLY-1921 to Resolved
Comment 12 JBoss JIRA Server 2013-12-05 08:02:42 EST
Harald Pehl <hpehl@redhat.com> made a comment on jira WFLY-1921

Fixed in upstream. Will be part of WF 8 and EAP 6.2.CP0a.
Comment 13 Martin Velas 2014-07-08 11:10:35 EDT
Was this functionality removed in EAP 6.3.0 from webconsole? There is no such option in Configuraion > Messaging > Destinations > Queues.
Comment 14 Martin Velas 2014-07-10 06:21:11 EDT
Verified for EAP 6.3.0.ER9 (messages are flushed only when Flush is Confirmed).
Comment 15 Scott Mumford 2014-07-17 00:17:13 EDT
Making public for inclusion in 6.3.0 Release Notes.

Note You need to log in before you can comment on or make changes to this bug.