Johannes created CMIS-985:
-----------------------------
Summary: PortCMIS
Key: CMIS-985
URL: https://issues.apache.org/jira/browse/CMIS-985
Project: Chemistry
Issue Type: Bug
Reporter: Johannes
The substring method needs a length as parameter. I found two places in
AtomPubBindings.cs where it's used wrongly. Here are my changes:
{{ //return errorContent.Substring(begin +
"<!--exception-->".Length, end); --> Changed by JS: 2016-07-02
int length = end - begin;
return errorContent.Substring(begin + "<!--exception-->".Length,
length);}}
and
{{ //return errorContent.Substring(begin + "<!--message-->".Length,
end); --> Changed by JS: 2016-07-02
int length = end - begin;
return errorContent.Substring(begin + "<!--message-->".Length,
length);}}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)