Bug 1101803 - TMX clear function doesn't work from UI
TMX clear function doesn't work from UI
Product: Zanata
Classification: Community
Component: Component-UI (Show other bugs)
Unspecified Unspecified
unspecified Severity unspecified
: ---
: 3.5
Assigned To: Patrick Huang
Ding-Yi Chen
Depends On:
  Show dependency treegraph
Reported: 2014-05-27 20:28 EDT by Patrick Huang
Modified: 2015-01-26 18:28 EST (History)
2 users (show)

See Also:
Fixed In Version: 3.5.0-SNAPSHOT (git-server-3.4.1-35-g04ca676)
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2015-01-26 18:28:07 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
sample TMX file (895 bytes, text/xml)
2014-05-27 20:29 EDT, Patrick Huang
no flags Details

  None (edit)
Description Patrick Huang 2014-05-27 20:28:54 EDT
Description of problem:
After importing a TMX file, click on the clear button will not have any effect.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Log in as admin and go to Translation Memory under administration
2. Create a new TM 
3. Import a tmx file (attached is a simple one) and verify the number of entries column changed from 0 to 1.
4. Click button clear on that row
5. Click Ok in the confirmation popup

Actual results:
Number of entries stays 1

Expected results:
Number of entries become 0 and delete button is enabled

Additional info:
Server log:
0:22:38,606 ERROR [org.zanata.async.AsynchronousTaskExecutor] (DefaultQuartzScheduler_Worker-8) Exception when executing an asynchronous task.: java.lang.NullPointerException
	at org.zanata.action.TranslationMemoryAction$1.call(TranslationMemoryAction.java:119) [classes:]
	at org.zanata.action.TranslationMemoryAction$1.call(TranslationMemoryAction.java:112) [classes:]
	at org.zanata.async.AsynchronousTaskExecutor$1.execute(AsynchronousTaskExecutor.java:76) [classes:]
	at org.jboss.seam.security.Identity.runAs(Identity.java:743) [jboss-seam-2.3.1.Final.jar:2.3.1.Final]
	at org.jboss.seam.security.RunAsOperation.run(RunAsOperation.java:75) [jboss-seam-2.3.1.Final.jar:2.3.1.Final]
	at org.zanata.async.AsynchronousTaskExecutor.runAsynchronously(AsynchronousTaskExecutor.java:96) [classes:]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.6.0_30]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.6.0_30]
Comment 1 Patrick Huang 2014-05-27 20:29:54 EDT
Created attachment 899805 [details]
sample TMX file
Comment 2 Patrick Huang 2014-05-27 21:17:01 EDT
Current release 3.4.1 doesn't have this bug. It's only in master
Comment 3 Patrick Huang 2014-05-29 20:37:49 EDT
Comment 4 Ding-Yi Chen 2014-05-29 21:09:01 EDT
VERIFIED with Zanata 3.5.0-SNAPSHOT (git-server-3.4.1-35-g04ca676)

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