Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 422945

Summary: Improve error responses readability
Product: [ECD] Orion Reporter: Maciej Bendkowski <maciej.bendkowski>
Component: MarketplaceAssignee: Project Inbox <orion.server-inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: enhancement    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Maciej Bendkowski CLA 2013-12-02 08:38:54 EST
While changing to mongodb, error responses have changed and are no longer intuitive to clients. We should consider a custom error message layer in the server implementation.
Comment 1 Maciej Bendkowski CLA 2013-12-02 11:54:41 EST
Partially fixed with: http://git.eclipse.org/c/orion/org.eclipse.orion.marketplace.git/commit/?id=427ed9a493a7f80b7c353e3b7e9c8cfb9efd0bb3

Mongodb does not provide elegant error responses, thus we require an additional error decoration layer. It the commit above, I've introduced an error rescue abstraction layer, which attempts to parse mongodb responses and craft more readable and useful error messages passed to the client.

Future work required here:
1. Support a wider range of error types.
2. Do not list all possible constraint violations, only ones which occurred.
Comment 2 John Arthorne CLA 2015-05-08 11:18:28 EDT
Not planning to work on this.