[zanata-bugs] [Bug 1008251] New: Rejected translation will cause an error in TM

bugzilla at redhat.com bugzilla at redhat.com
Sun Sep 15 23:40:53 UTC 2013


https://bugzilla.redhat.com/show_bug.cgi?id=1008251

            Bug ID: 1008251
           Summary: Rejected translation will cause an error in TM
           Product: Zanata
           Version: 3.0
         Component: Component-Logic
          Severity: medium
          Assignee: irooskov at redhat.com
          Reporter: pahuang at redhat.com
        QA Contact: zanata-qa at redhat.com
                CC: zanata-bugs at redhat.com



User-Agent:       Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.31 (KHTML,
like Gecko) Chrome/26.0.1410.63 Safari/537.31
Build Identifier: 

When rejects a Translated or Approved translation, afterwards TM will refresh
and it will encounter an error (viewable in browser console or server log).
Debugging shows lucene search returns the newly Rejected translation even
though we ask it to exclude Rejected state. Revisit the row (i.e.by move down
then up again) this error goes away. I think this is because lucene index
update is not synchronized with the database change. When the TM request comes
in lucene still thinks the string is in previous state and serves it up. And
the database (or perhaps ehcache) returns the actual object the state became
Rejected.

Reproducible: Always

Steps to Reproduce:
1. Find a string with Translated or Approved state
2. Reject it
3. Check Firefox firebug console or Chrome console or server log
Actual Results:  
09:27:32,813 ERROR [org.zanata.webtrans.server.SeamDispatch]
(http-/0.0.0.0:9898-4) Error dispatching action: java.lang.RuntimeException:
Cannot map content state: Rejected
: java.lang.RuntimeException: Cannot map content state: Rejected
        at
org.zanata.webtrans.server.rpc.GetTransMemoryHandler.fromContentState(GetTransMemoryHandler.java:164)
[classes:]
        at
org.zanata.webtrans.server.rpc.GetTransMemoryHandler.processIndexMatch(GetTransMemoryHandler.java:139)
[classes:]
        at
org.zanata.webtrans.server.rpc.GetTransMemoryHandler.searchTransMemory(GetTransMemoryHandler.java:104)
[classes:]
        at
org.zanata.webtrans.server.rpc.GetTransMemoryHandler.execute(GetTransMemoryHandler.java:88)
[classes:]
        at
org.zanata.webtrans.server.rpc.GetTransMemoryHandler.execute(GetTransMemoryHandler.java:1)
[classes:]


Expected Results:  
Should not return Rejected translation as TM result

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=QMYDubUoMv&a=cc_unsubscribe




More information about the zanata-bugs mailing list