chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Johannes (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CMIS-985) PortCMIS
Date Sat, 02 Jul 2016 09:14:11 GMT
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)

Mime
View raw message