Bug 805775 - confusing error: failed to upload glossary due to wrong an API key
Summary: confusing error: failed to upload glossary due to wrong an API key
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Zanata
Classification: Retired
Component: Usability
Version: 1.6-SNAPSHOT
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 1.6-beta-1
Assignee: Carlos Munoz
QA Contact: Joyce Chang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-03-22 05:21 UTC by Joyce Chang
Modified: 2013-03-04 03:19 UTC (History)
4 users (show)

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
Embargoed:


Attachments (Terms of Use)

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


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