Bug 1030732 - CopyTrans fails when invoked by pushing source document from client
Summary: CopyTrans fails when invoked by pushing source document from client
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Zanata
Classification: Retired
Component: Component-CopyTrans
Version: development
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 3.2
Assignee: Carlos Munoz
QA Contact: Ding-Yi Chen
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-15 03:15 UTC by Sean Flanigan
Modified: 2014-02-18 06:48 UTC (History)
2 users (show)

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


Attachments (Terms of Use)
partial server.log (10.83 KB, text/plain)
2013-11-15 03:15 UTC, Sean Flanigan
no flags Details

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


Note You need to log in before you can comment on or make changes to this bug.