Bug 1030732

Summary: CopyTrans fails when invoked by pushing source document from client
Product: [Retired] Zanata Reporter: Sean Flanigan <sflaniga>
Component: Component-CopyTransAssignee: Carlos Munoz <camunoz>
Status: CLOSED CURRENTRELEASE QA Contact: Ding-Yi Chen <dchen>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: developmentCC: dchen, zanata-bugs
Target Milestone: ---   
Target Release: 3.2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 3.2-SNAPSHOT (20131118-1242) Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-02-18 06:48:35 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 Flags
partial server.log none

Description Sean Flanigan 2013-11-15 03:15:22 UTC
Created attachment 824271 [details]
partial server.log

Description of problem:
CopyTrans fails when invoked by pushing document from client

Version-Release number of selected component (if applicable):
Zanata version 3.2-SNAPSHOT (20131114-1743)

How reproducible:
Pretty consistent, I think.

Steps to Reproduce:
1. Use zanata-cli to push a document, with copytrans enabled

Actual results:

Client log:
[INFO] pushing source doc [name=authconfig size=251] to server
Done in 0 secs
[INFO] Running Copy Trans for authconfig
Done in 0 secs
[WARN] Copy Trans for the above document stopped unexpectedly.

Server log: see attachment

Expected results:
CopyTrans successful, no error logged

Additional info:

Comment 1 Carlos Munoz 2013-11-15 05:53:53 UTC
I think this is caused by new changes in the uses of 'Activity ' when pushing source documents. Copy trans from the UI doesn't seem to be affected, but it's worth testing it too.

All hibernate entities that are used inside Work implementations should be loaded from inside the work invocation. Similarly, and we are more conscious of this, any Seam component instance used inside an AsyncTask implementation should be loaded from within the async call and not passed in.

See:
https://github.com/zanata/zanata-server/pull/274

Comment 2 Carlos Munoz 2013-11-15 06:35:51 UTC
See instead:
https://github.com/zanata/zanata-server/pull/275

Comment 3 Ding-Yi Chen 2013-11-18 04:19:01 UTC
VERIFIED with Zanata version 3.2-SNAPSHOT (20131118-1242)
zanata-maven-plugin:3.1.2