[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: [OASIS Issue Tracker] (ODATA-781) substring: what to return if the start index is outside the first argument string, or the desired length exceeds the remaining string length
[ https://issues.oasis-open.org/browse/ODATA-781?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ralf Handl updated ODATA-781:
-----------------------------
Proposal:
-Empty string should be returned for an index larger than the length of the string.
-Length too long should be allowed and return as many characters up to the specified length.
-The behavior for a negative index is undefined.
-A negative length is a bad request.
Because negative index is undefined, interoperable clients should not use negative indexes.
In 4.01, negative indexes mean count from the end, see ODATA-901
was:
-Empty string should be returned for an index larger than the length of the string.
-Length too long should be allowed and return as many characters up to the specified length.
-The behavior for a negative index is undefined.
-A negative length is a bad request.
Because negative index is undefined, interoperable clients should not use negative indexes.
In 4.01, negative indexes mean count from the end.
> substring: what to return if the start index is outside the first argument string, or the desired length exceeds the remaining string length
> --------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: ODATA-781
> URL: https://issues.oasis-open.org/browse/ODATA-781
> Project: OASIS Open Data Protocol (OData) TC
> Issue Type: Improvement
> Components: OData URL Conventions
> Affects Versions: V4.0_ERRATA02
> Environment: [Proposed]
> Reporter: Ralf Handl
> Assignee: Ralf Handl
> Fix For: V4.0_ERRATA03
>
>
> This could be a "bad request" returning no results at all, or it could evaluate to null, which may just lead to excluding the offending instance from the result.
> Or a mix of both: negative start index is "bad request", start index or desired length beyond the end of the first argument is "null".
--
This message was sent by Atlassian JIRA
(v6.2.2#6258)
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]