Revision 1825
Added by Matt Jones almost 21 years ago
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
Fixed the sessionId handling code to now properly return the sessionId
in the login response message. Updated junit tests to test this issue.