Bug 805775

Summary: confusing error: failed to upload glossary due to wrong an API key
Product: [Retired] Zanata Reporter: Joyce Chang <jochang>
Component: UsabilityAssignee: Carlos Munoz <camunoz>
Status: CLOSED CURRENTRELEASE QA Contact: Joyce Chang <jochang>
Severity: high Docs Contact:
Priority: unspecified    
Version: 1.6-SNAPSHOTCC: camunoz, petersen, sflaniga, zanata-bugs
Target Milestone: ---   
Target Release: 1.6-beta-1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: maven client 1.6.0-alpha-3-SNAPSHOT Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-06-22 00:58:22 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Joyce Chang 2012-03-22 05:21:03 UTC
Description of problem:
when pushing glossary to Zanata with an wrong API key,it will result in build failure. The return error should specify a statement to help users by clarifying error such as  "unable to authenticate users,maybe API key is wrong".   

How reproducible:
always

Steps to Reproduce:
1.go to the folder where the glossary file(.po) is located.
2.open terminal 
3.issue command $mvn zanata:glossary-push
4.BUILD FAILURE is shown on the screen
  
Actual results:

error as below:

Failed to execute goal org.zanata:zanata-maven-plugin:1.6-SNAPSHOT:glossary-push (default-cli) on project null: Zanata mojo exception: Could not find JAXBContextFinder for media type: text/html;charset="ISO-8859-1" -> 


Expected results:

error as below:

unable to authenticate users,maybe API key is wrong

Comment 1 Carlos Munoz 2012-05-09 23:12:49 UTC
The error is specifically happening when checking the Zanata server version from the Java clients. Added a check for this specific error and a more understandable error message.

See:
https://github.com/zanata/zanata-client/commit/6ab3657bfe84711d7a84f065b017be570709f26b

Comment 2 Joyce Chang 2012-05-10 03:59:58 UTC
verified with maven client 1.6.0-alpha-3-SNAPSHOT