Bug 1103947
Summary: | [Translation Editor] Dialog "Invalid translation" failed to obtain input focus. | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Retired] Zanata | Reporter: | Ding-Yi Chen <dchen> | ||||||
Component: | Component-UI | Assignee: | Alex Eng <aeng> | ||||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Ding-Yi Chen <dchen> | ||||||
Severity: | high | Docs Contact: | |||||||
Priority: | unspecified | ||||||||
Version: | 3.4 | CC: | dchen, zanata-bugs | ||||||
Target Milestone: | --- | ||||||||
Target Release: | 3.4 | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | 3.4.2-SNAPSHOT (git-server-3.4.1-16-gcaeed7b) | Doc Type: | Bug Fix | ||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2014-07-17 06:39:45 UTC | Type: | Bug | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Attachments: |
|
Description
Ding-Yi Chen
2014-06-03 00:57:28 UTC
Created attachment 901553 [details]
Screenshot: Dialog "Invalid Translation" failed to get focus
Tested with Chrome 35.0.1916.114 Steps to reproduce in Chrome: 1-5 are same with firefox. After 5. it may seems it as if it was saving the entry (but it was not). 6. Click the entry that trigger the error. 7. Save as translated. After step 7, the symptom is same with firefox. Pull request: https://github.com/zanata/zanata-server/pull/485 Tested with Zanata 3.4.2-SNAPSHOT (git-server-3.4.1-7-g1ed6db1): With Firefox 24.4.0: Button "Return to editor" does not work" With Chrome 35.0.1916.114 1. Button "Return to editor" does not work" 2. "Save as Fuzzy" bring you back to the entry, but it does not save as fuzzy, and you cannot leave the entry even if you saved as fuzzy. 3. The first entry that trigger the error still showing as it is saving. I also found that set newline checking as "ERROR" does not trigger an ERROR, it still a warning. But that should be tracked in other bug. Please use "Positional printf (XSI extension)" to trigger the error. Reassigned. The newline not showing error bug is tracked with Bug 1105375. Tested from https://github.com/zanata/zanata-server/pull/485 seems alright. Can you let me know where did you get the WAR file from? Tested with Zanata 3.4.2-SNAPSHOT (git-server-3.4.1-7-g1ed6db1) With Firefox 24.4.0: Button "Return to editor" does work, but it tooks 4.7 seconds on my local machine for it to disappear. It might be worse in production server. Otherwise it is good. With Chrome 35.0.1916.114 1. If you trigger an invalid Error the first time on the session, it shows "Saving...", but it is not actually saving, and validator failed to show the "Invalid translation" Dialog. The javascript console shows following error: (-:-) 2014-06-10 10:40:48,476 [FATAL] uncaught exception java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at Unknown.$collect(JsArrayString.java:42) at Unknown.fillInStackTrace_3(StackTraceCreator.java:174) at Unknown.fillInStackTrace_1(StackTraceCreator.java:501) at Unknown.fillInStackTrace(Throwable.java:72) at Unknown.$$init_12(Throwable.java:46) at Unknown.Throwable_1(Throwable.java:52) at Unknown.Exception_1(Exception.java:29) at Unknown.RuntimeException_1(RuntimeException.java:29) at Unknown.IndexOutOfBoundsException_1(IndexOutOfBoundsException.java:29) at Unknown.indexOutOfBounds(AbstractList.java:191) at Unknown.checkIndex(AbstractList.java:183) at Unknown.$get_8(ArrayList.java:157) at Unknown.get_32(ArrayList.java:156) at Unknown.$onSuccess_32(TransUnitSaveService.java:202) at Unknown.onSuccess_35(TransUnitSaveService.java:200) at Unknown.$onSuccess_30(SeamDispatchAsync.java:97) at Unknown.onSuccess_33(SeamDispatchAsync.java:96) at Unknown.onResponseReceived(RequestCallbackAdapter.java:232) at Unknown.$fireOnResponseReceived(Request.java:287) at Unknown.onReadyStateChange(RequestBuilder.java:395) at Unknown.anonymous(XMLHttpRequest.java:351) at Unknown.apply_3(Impl.java:189) at Unknown.entry0(Impl.java:242) at Unknown.anonymous(Impl.java:70) 2. Save to fuzzy failed to save the invalid as fuzzy, nor it is display properly. Created attachment 906801 [details]
Screen cast of bug reproduced in Chrome
Screen cast of bug reproduced in Chrome
Tested with Zanata 3.4.2-SNAPSHOT (git-server-3.4.1-8-g1553fb4) Common problem that appear both Firefox and Chrome Steps to reproduced: Start from Step 4. In any entry, trigger an error by adding an additional newline in the end of string. 6. Click the next page (or switch any other page) 7. Click "Save as Fuzzy" Expected: Entry that trigger should be saved as fuzzy. Actual: Entry that trigger was not saved at all. With Firefox 24.4.0: Button "Return to editor" does work, but it tooks 4.7 seconds on my local machine for it to disappear. VERIFIED with Zanata 3.4.2-SNAPSHOT (git-server-3.4.1-16-gcaeed7b) Firefox ESR 24.5.0 Google Chrome 35.0.1916.153 Note that Firefox is still slow to hide the dialog, but there was an loading indicator, so user won't think it's stop working and click on "Return to editor" multiple time. |