make AbstractNuxeoWebService not hide the cause of error in the connect method
implementation
---------------------------------------------------------------------------------------------
Key: NXP-2404
URL: http://jira.nuxeo.org/browse/NXP-2404
Project: Nuxeo Enterprise Platform
Issue Type: Bug
Affects Versions: 5.2 M1, 5.1.4
Reporter: Olivier Grisel
Assignee: Olivier Grisel
Fix For: 5.1.5, 5.2 M2
Here is the offending code:
---
a/nuxeo-platform/src/main/java/org/nuxeo/ecm/platform/ws/AbstractNuxeoWebService.java
+++
b/nuxeo-platform/src/main/java/org/nuxeo/ecm/platform/ws/AbstractNuxeoWebService.java
@@ -87,7 +87,7 @@ public abstract class AbstractNuxeoWebSe
loginContext.logout();
sid = _connect(username, password, repository);
} catch (Exception e) {
- throw new ClientException(e.getMessage());
+ throw new ClientException(e.getMessage(), e);
}
return sid;
}
Otherwise encoding errors while loading the default CSV content of directories
might prevent any WS connections without giving the sys admin any info on the
cause of the problem.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.nuxeo.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets