Bug 1002792

Summary: Unhandled exception: Uploading an invalid .pot will result in WebApplicationException
Product: [Retired] Zanata Reporter: Damian Jansen <djansen>
Component: Component-UIAssignee: Patrick Huang <pahuang>
Status: CLOSED CURRENTRELEASE QA Contact: Zanata-QA Mailling List <zanata-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.0CC: pahuang, zanata-bugs
Target Milestone: ---   
Target Release: 3.3   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: 3.3.0-SNAPSHOT (20140218-0947) Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-03-20 05:47:09 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:
Bug Depends On:    
Bug Blocks: 994362    
Description Flags
Test .pot file with duplicate msgid none

Description Damian Jansen 2013-08-30 02:53:43 UTC
Created attachment 791991 [details]
Test .pot file with duplicate msgid

Description of problem:
If the user attempts to upload a .pot that will fail, the javax.ws.rs.WebApplicationException at org.zanata.rest.service.ResourceUtils.transferFromTextFlows(ResourceUtils.java:158) [classes:] will occur.

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

How reproducible:
Easy always

Steps to Reproduce:
1. Download the attached test.pot
2. As an admin/maintainer go to a project->project version->Source documents
3. Press Upload Document and navigate to the .pot file
4. Press Upload

Actual results:
"An unexpected error has occurred. Please report this problem with details of what you were attempting."
org.zanata.rest.service.ResourceUtils.transferFromTextFlows(ResourceUtils.java:158) [classes:]

Expected results:
It should say what happened and, if at all possible, why. e.g. (Duplicate msgid detected)

Additional info:

Comment 1 Patrick Huang 2014-02-12 05:16:36 UTC

Comment 2 Damian Jansen 2014-02-19 01:53:36 UTC
Verified at 1bf60cc19d6941929f586c3e8d62390fbb41644d

Comment 3 Sean Flanigan 2014-03-20 05:47:09 UTC
Closing VERIFIED bugs for Zanata server 3.3.2.