| Summary: | improve Bugzilla client error handling and error messages | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | David Green <greensopinion> | ||||||||||||
| Component: | Mylyn | Assignee: | David Green <greensopinion> | ||||||||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||||||||
| Severity: | enhancement | ||||||||||||||
| Priority: | P3 | CC: | eclipse, robert.elves | ||||||||||||
| Version: | unspecified | ||||||||||||||
| Target Milestone: | 3.5 | ||||||||||||||
| Hardware: | All | ||||||||||||||
| OS: | All | ||||||||||||||
| Whiteboard: | |||||||||||||||
| Attachments: |
|
||||||||||||||
|
Description
David Green
Created attachment 183808 [details]
patch that improves error handling
I've created a patch that looks for the 'error_msg' element to extract the error message as it's intended to be displayed to the user. When found, a status with severity of IStatus.ERROR is created instead of IStatus.INFO.
Created attachment 183809 [details]
mylyn/context/zip
Looks like a good idea to me. Frank, can you review the changes? (In reply to comment #0) > Bugzilla provides an HTML message in a tag identified by id 'error_msg'. It's > possible to improve error handling to use IStatus.ERROR instead of IStatus.INFO > and provide a more descriptive message in some cases. Sorry I can not reproduce this. What I need is the cases where you see the error_msg. Midair-Collision and invalide secureToken did not include this tag. I don't recall how I reproduced this scenario. There are some cases where error_msg is set but not used in the client. It's these scenarios that this patch is intended to fix. (In reply to comment #5) > I don't recall how I reproduced this scenario. There are some cases where > error_msg is set but not used in the client. It's these scenarios that this > patch is intended to fix. I think we should do some work in this area. Most errors are fethched by Mylyn using the <title> and languagesettings. Mybe it is better to use the <td> with id=error_msg. There is no better way because bugzilla did not have an error number so we need to deal with all supported language. Thoughts? Created attachment 184558 [details]
mylyn/context/zip
In case we don't recognize the error using the current mechanism, would it make sense to use the solution suggested by David? For Bugzilla 4.0 and later we should be able to use the error id so this will be less of a concern moving forward. +1 (In reply to comment #8) > In case we don't recognize the error using the current mechanism, would it make > sense to use the solution suggested by David? > > For Bugzilla 4.0 and later we should be able to use the error id so this will > be less of a concern moving forward. Steffen, I did not know where we have the error id. What I requested was the reason for "Suspicious Action". Should I request an bugzilla enhancement for add the internal error field in an comment html tag. Created attachment 184655 [details]
recut patch against HEAD
recut patch against HEAD
Created attachment 184656 [details]
mylyn/context/zip
(In reply to comment #10) > Should I request an bugzilla enhancement for add the internal error field in an > comment html tag. Yes, we should have a unique ID for all errors in Bugzilla. Having that in an HTTP header (easy to parse) or HTML tag would be very useful. (In reply to comment #11) > Created an attachment (id=184655) > recut patch against HEAD > > recut patch against HEAD David, I verify your patch an commit it to HEAD. But because I did not use httpAuthCredentials I can not test the authenticate change, looking into the code seams to be OK. (In reply to comment #13) > (In reply to comment #10) > > Should I request an bugzilla enhancement for add the internal error field in an > > comment html tag. > > Yes, we should have a unique ID for all errors in Bugzilla. Having that in an > HTTP header (easy to parse) or HTML tag would be very useful. I create the enhancement https://bugzilla.mozilla.org/show_bug.cgi?id=617256 This looks done to me: anything else to do here? Thanks David. Closing. |