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
doesn't seem to easily reproducible. Could be just timing issue.
https://github.com/zanata/zanata-server/pull/181
See also bug 997717.
*** Bug 997717 has been marked as a duplicate of this bug. ***
VERIFIED with Zanata version 3.2-SNAPSHOT (20131112-0036)