OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

odata message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: [OASIS Issue Tracker] Created: (ODATA-440) Specify response for function or action that returns a single null value


Specify response for function or action that returns a single null value
------------------------------------------------------------------------

                 Key: ODATA-440
                 URL: http://tools.oasis-open.org/issues/browse/ODATA-440
             Project: OASIS Open Data Protocol (OData) TC
          Issue Type: Bug
    Affects Versions: V4.0_CSD01
         Environment: [Proposed]
            Reporter: Ralf Handl
             Fix For: V4.0_CSD02


With ODATA-412 we decided that a null value has no "stand-alone" representation and instead requests to resource that has the null value return 404 Not Found.

We did not consider actions and functions that return a single value.

For functions it would be somewhat surprising if they would return 404 No Content if the result for a value combination is null. Especially if the function is composable and composing another function that takes this null value and produces a result from it would respond with 200 OK:

GET ~/Foo(1) --> 404 Not Found
GET ~/Foo(1)/Bar(2) --> 200 OK

Also we already define that actions that do not declare a return type respond with 204 OK, and having "sometimes no result" work differently from "always no result" seems odd.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://tools.oasis-open.org/issues/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]