Bug 1003444 - zanata java client's subcommands do not respect -e or -X option
Summary: zanata java client's subcommands do not respect -e or -X option
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Zanata
Classification: Retired
Component: Component-zanata-client
Version: 3.0
Hardware: Unspecified
OS: Linux
unspecified
low
Target Milestone: ---
: ---
Assignee: zanata-dev-internal
QA Contact: Zanata-QA Mailling List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-09-02 03:42 UTC by Patrick Huang
Modified: 2015-07-29 03:28 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-07-29 03:28:36 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1030139 0 unspecified CLOSED zanata-cli does not respond to batch flag (-B or --batch-mode) 2021-02-22 00:41:40 UTC

Internal Links: 1030139

Description Patrick Huang 2013-09-02 03:42:14 UTC
User-Agent:       Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.63 Safari/537.31
Build Identifier: 

When using zanata-cli to pull from server and encounter an error, the output will hint:[ERROR] Use -e/--errors for full stack trace (or when reporting bugs)
And the help output will also contain these options for detail error stacktrace. But specifying -e/--errors and/or -X/--debug will give no effect and user won't see any stacktrace nor root cause of error.

Reproducible: Always

Steps to Reproduce:
1. Get a copy of zanata server without rhbz1002774. i.e. server version 3.0.2
2. Use client version 3.1.1
3. Push a plural text flow
4. Translate the plural text flow
5. On the client change the plural text flow back to singular form
6. Push again
7. On server verify the text flow in editor has now become singular and become fuzzy. Save that entry to translated.
8. Pull again with option -e or -X

Actual Results:  
Getting an error because of the inconsistent plural form but no detail cause.
[ERROR] Execution failed: Operation failed.


Expected Results:  
See the actual exception message.

maven client is fine. It's only the java client. You can get a java client from maven or build client from source and there should be a tar/zip dist under target

Comment 1 Patrick Huang 2013-09-02 04:07:14 UTC
moving the -e or -X before the subcommand will work. So this is not technically a bug. It's just not user friendly.

Comment 2 Sean Flanigan 2013-09-02 04:29:55 UTC
Well, it is a bug, because the subcommands do list -e and -X in their help messages, which implies that they should recognise them.  And if they don't recognise them, they should say so instead of failing silently.

But it is a bug with a workaround.

Comment 3 Ding-Yi Chen 2014-12-17 23:52:53 UTC
*** Bug 1030139 has been marked as a duplicate of this bug. ***

Comment 4 Zanata Migrator 2015-07-29 03:28:36 UTC
Migrated; check JIRA for bug status: http://zanata.atlassian.net/browse/ZNTA-284


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