Bug 768246

Summary: RFE: Maven client should display readable error messages
Product: [Retired] Zanata Reporter: Sean Flanigan <sflaniga>
Component: Component-Logic, Component-Maven, UsabilityAssignee: Michelle Kim <mkim>
Status: CLOSED UPSTREAM QA Contact: Zanata-QA Mailling List <zanata-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 1.5-SNAPSHOTCC: mkim, zanata-bugs
Target Milestone: ---Keywords: screened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-07-29 03:35:13 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 Sean Flanigan 2011-12-16 06:29:53 UTC
Seam/RESTEasy seems to generate some error responses in the form of HTML error pages.  These are virtually unreadable when printed to the console as a single line.  

1. We should look at overriding this behaviour on the server, so that our REST services return plain text, XML or JSON when handling exceptions.

2. In addition, the Maven client could look at the response type for its REST requests.  If they come back with an HTML content type, we should strip out the HTML tags and try to produce more readable error messages in Maven's log output.

Comment 1 Runa Bhattacharjee 2012-11-26 18:13:54 UTC
This sounds helpful. Have we seen any recent/critical user requests coming in for this feature?

Thanks

Comment 2 Sean Flanigan 2012-11-27 00:11:36 UTC
No users have specifically requested it, but I've seen a number of bug reports with these HTML error messages in them.  And sometimes there isn't even a bug: once you decipher the error message it becomes apparent.

Comment 4 Damian Jansen 2015-07-14 00:20:13 UTC
Reassigned to PM

Comment 5 Zanata Migrator 2015-07-29 03:35:13 UTC
Migrated; check JIRA for bug status: http://zanata.atlassian.net/browse/ZNTA-334