Project

General

Profile

« Previous | Next » 

Revision 1825

Fixed the sessionId handling code to now properly return the sessionId
in the login response message. Updated junit tests to test this issue.

View differences:

MetacatClient.java
93 93
            HttpMessage.setCookie(null);
94 94
            throw new MetacatAuthException(response);
95 95
        } else {
96
            int start = response.indexOf("<sessionId>");
96
            int start = response.indexOf("<sessionId>") + 11;
97 97
            int end = response.indexOf("</sessionId>");
98 98
            if ((start != -1) && (end != -1)) {
99 99
                sessionId = response.substring(start,end);

Also available in: Unified diff