Bug 1002792 - Unhandled exception: Uploading an invalid .pot will result in WebApplicationException
Summary: Unhandled exception: Uploading an invalid .pot will result in WebApplicationE...
Alias: None
Product: Zanata
Classification: Retired
Component: Component-UI
Version: 3.0
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
: 3.3
Assignee: Patrick Huang
QA Contact: Zanata-QA Mailling List
Depends On:
Blocks: 994362
TreeView+ depends on / blocked
Reported: 2013-08-30 02:53 UTC by Damian Jansen
Modified: 2014-03-20 05:47 UTC (History)
2 users (show)

Fixed In Version: 3.3.0-SNAPSHOT (20140218-0947)
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2014-03-20 05:47:09 UTC

Attachments (Terms of Use)
Test .pot file with duplicate msgid (232 bytes, application/vnd.ms-powerpoint)
2013-08-30 02:53 UTC, Damian Jansen
no flags Details

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.

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