[
https://issues.apache.org/jira/browse/CMIS-985?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Florian Müller resolved CMIS-985.
---------------------------------
Resolution: Fixed
Fix Version/s: PortCMIS 0.2.0
Thanks for the report!
> PortCMIS
> --------
>
> Key: CMIS-985
> URL: https://issues.apache.org/jira/browse/CMIS-985
> Project: Chemistry
> Issue Type: Bug
> Reporter: Johannes
> Assignee: Florian Müller
> Fix For: PortCMIS 0.2.0
>
>
> The substring method needs a length as parameter. I found two places in
> AtomPubBindings.cs where it's used wrongly. Here are my changes:
> {quote}
> //return errorContent.Substring(begin + "<!--exception-->".Length,
> end); --> Changed by JS: 2016-07-02
> int length = end - begin;
> return errorContent.Substring(begin + "<!--exception-->".Length,
> length);
> {quote}
> and
> {quote}
> //return errorContent.Substring(begin + "<!--message-->".Length,
> end); --> Changed by JS: 2016-07-02
> int length = end - begin;
> return errorContent.Substring(begin + "<!--message-->".Length,
> length);
> {quote}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)