chemistry-dev mailing list archives

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

     [ https://issues.apache.org/jira/browse/CMIS-985?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Johannes updated CMIS-985:
--------------------------
    Description: 
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}

  was:
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);}}


> 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:
> {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)

Mime
View raw message