This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 217349 - Validation Status breaks validation and hangs the UI until "Cancel"
Summary: Validation Status breaks validation and hangs the UI until "Cancel"
Status: CLOSED FIXED
Alias: None
Product: WTP Common Tools
Classification: WebTools
Component: wst.validation (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: 3.0 M5   Edit
Assignee: Gary Karasiuk CLA
QA Contact: Chuck Bridgham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 217756
  Show dependency tree
 
Reported: 2008-01-31 16:56 EST by Cameron Bateman CLA
Modified: 2008-04-23 14:07 EDT (History)
1 user (show)

See Also:


Attachments
Example (4.09 KB, application/x-zip-compressed)
2008-02-04 16:57 EST, Cameron Bateman CLA
no flags Details
part 1 of a patch (73.32 KB, patch)
2008-02-06 18:01 EST, Gary Karasiuk CLA
no flags Details | Diff
small patch for a missing class (5.46 KB, patch)
2008-02-07 10:31 EST, Gary Karasiuk CLA
no flags Details | Diff
small patch for a missing class (1.64 KB, patch)
2008-02-07 10:33 EST, Gary Karasiuk CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Cameron Bateman CLA 2008-01-31 16:56:00 EST
The new "Validation Status" dialog that appears during manual validations hang the UI, saying that validation was complete but then only offers a Cancel button to proceed.  Validation appears to not have been executed in most cases either when I hit cancel.  Recommend that the preference be defaulted to off until this dialog works properly.  Even if works properly, the dialog is annoying and seems unnecessary.  At very least, it should have a "Don't show this again" checkbox.  I'd prefer not to see it all unless I've explicit set the preference.
Comment 1 Gary Karasiuk CLA 2008-02-02 08:40:42 EST
It doesn't hang the UI, but it is a modal dialog. It is shown at the very end of validation, so once you press cancel, validation is then finished.

If it looks like your validator hasn't run, then that would be a different bug.
Can you attach a sample, that illustrates this problem. Does it work correctly, if the dialog is turned off?

I could add the "Don't show this again" checkbox.
Comment 2 Cameron Bateman CLA 2008-02-04 16:52:51 EST
(In reply to comment #1)
> It doesn't hang the UI, but it is a modal dialog. It is shown at the very end
> of validation, so once you press cancel, validation is then finished.

This by itself is a usability issue.  "Cancel" means to cancel the current operation.  Most users will assume that hitting it cancels something.  What you are saying is that it doesn't, it accepts an outcome.  So the button should say "Ok" or "Accept".

Looking into it further there's another usability issue.  If the validation returns  problems with a high severity the dialog says that validation "was not successful".  This implies that something in the system failed, which is not the case.

> If it looks like your validator hasn't run, then that would be a different 
> bug.

I looks like what is happening is that in some cases the validation jobs are run but problem messages are not being updated.  Perhaps as a related problem, I am seeing duplicate messages for the same problem cropping up. Attached is an example project.
Comment 3 Cameron Bateman CLA 2008-02-04 16:57:55 EST
Created attachment 88836 [details]
Example

Important the project in the zip.  Ignore the two import errors for the tag libraries (you can fix this if you happen to have JSF 1.1 libraries, but it's not essential). Now change either the border or columns attribute value on the h:panelGrid to a value that is not a number (i.e "d").  Manually validate.  You should get an error that it's not a valid integer.  Now fix it back to "2" and manually validate.  I often see the validation marker stay.  I often see duplicate validation problems for the same problem, which leads me to wonder if when the manual validation is called with valid value, one or more of the duplicate messages is not being removed.

I have verified that the validation *is* actually running using breakpoints, so it seems like the problem is more visual.
Comment 4 Cameron Bateman CLA 2008-02-05 04:02:53 EST
Something else I just noticed, when there's duplicates, the type one copy is "JSP Semantics Problem (JSF)", which is the correct one.  The other is "Validation Message", which I'm not sure of the source of.
Comment 5 Gary Karasiuk CLA 2008-02-05 09:37:34 EST
(In reply to comment #3)
> Created an attachment (id=88836) [details]

Thanks I will investigate.
Comment 6 Gary Karasiuk CLA 2008-02-06 18:01:11 EST
Created attachment 89083 [details]
part 1 of a patch

This patches makes some improvements to the dialog.

It also removes some (by not all) of the duplicated messages. I am going to keep working on this, but I wanted to get this patch into the system because the as-you-type validation depends on it.
Comment 7 Gary Karasiuk CLA 2008-02-06 18:04:20 EST
Chuck or Carl could you please commit this patch. 
Comment 8 Gary Karasiuk CLA 2008-02-07 10:31:01 EST
Created attachment 89147 [details]
small patch for a missing class

Somehow this class got missed as part of the previous patch.
Comment 9 Gary Karasiuk CLA 2008-02-07 10:33:56 EST
Created attachment 89148 [details]
small patch for a missing class

Let me try again (without first browsing the settings for the project)
Comment 10 Carl Anderson CLA 2008-02-07 10:51:50 EST
Committed to HEAD for WTP 3.0
Comment 11 Carl Anderson CLA 2008-02-14 15:02:23 EST
Forgot to mark this as fixed when I committed it.
Comment 12 Gary Karasiuk CLA 2008-04-16 05:50:07 EDT
Can this be closed now?
Comment 13 Gary Karasiuk CLA 2008-04-23 08:52:04 EDT
I am in the process of cleaning up the Validation Framework defects. Could you please close this Bugzilla. If I don't hear back within 7 days,
I will assume that everything is OK, and will close it.
Comment 14 Cameron Bateman CLA 2008-04-23 13:35:18 EDT
Verified in 3.0M6.
Comment 15 Gary Karasiuk CLA 2008-04-23 14:07:54 EDT
Thanks - closing.