Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-2404

make AbstractNuxeoWebService not hide the cause of error in the connect method implementation

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.1.4, 5.2 M1
    • Fix Version/s: 5.1.5, 5.2 M2
    • Component/s: None

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              ogrisel Olivier Grisel
              Reporter:
              ogrisel Olivier Grisel
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1 hour
                1h
                Remaining:
                Remaining Estimate - 1 hour
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified