| Summary: | improve handling of error Unknown code: 99 | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Steffen Pingel <steffen.pingel> | ||||||||||||||||
| Component: | Mylyn | Assignee: | Frank Becker <eclipse> | ||||||||||||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||||||||||||
| Severity: | normal | ||||||||||||||||||
| Priority: | P2 | CC: | eclipse, robert.elves | ||||||||||||||||
| Version: | unspecified | ||||||||||||||||||
| Target Milestone: | 3.5 | ||||||||||||||||||
| Hardware: | PC | ||||||||||||||||||
| OS: | Linux | ||||||||||||||||||
| Whiteboard: | |||||||||||||||||||
| Attachments: |
|
||||||||||||||||||
|
Description
Steffen Pingel
Created attachment 174450 [details]
screenshot
Steffen, you get this error in the following cases: 1) "expired_token" 2) "missing_token" 3) "invalid_token" The problem is that you can only see in the body what problem exists with the token. For me it looks like 1) is the most common error. An token is valid for 3 days, so when you made change and do not sync for three days you can get this error. Should we change BugzillaClient.parseRepositoryResponse to add the following "Error with security token. Please retry operation." to the BugziallStatus Or do you think we need to parse the Responsebody for show the real reason? Thoughts? Thanks for clarifying. I would prefer if we could parse the body to provide a meaningful error and fall back to a standard error, e.g. "Security token error occurred during submission. Synchronize task and re-submit changes." Created attachment 176842 [details] patch V1 (In reply to comment #3) > Thanks for clarifying. I would prefer if we could parse the body to provide a > meaningful error and fall back to a standard error, e.g. "Security token error > occurred during submission. Synchronize task and re-submit changes." Patch commited to HEAD for the fall back case. For passing the body I see the problem that we must find an test that work in all languages. Thoughts? Created attachment 176843 [details]
mylyn/context/zip
(In reply to comment #4) > For passing the body I see the problem that we must find an test that work in > all languages. If that's not easily possible than let's not worry about it for now. We should file a but against Bugzilla to supply a unique ID for each error somewhere in the Http repsonse or HTML output (e.g. through a hidden field) so that we can identify each error reliably. I open bug https://bugzilla.mozilla.org/show_bug.cgi?id=593138 for the request. Created attachment 179178 [details] patch this patch is a save of my current implementation that I need when https://bugzilla.mozilla.org/show_bug.cgi?id=593138 is fixed Created attachment 179179 [details]
mylyn/context/zip
Looks like the upstream bug has been fixed. Created attachment 182113 [details]
commited patch
Created attachment 182114 [details]
mylyn/context/zip
Steffen, can you please verify this. |