Uploaded image for project: 'OASIS Open Data Protocol (OData) TC'
  1. OASIS Open Data Protocol (OData) TC
  2. ODATA-688

DELETE requests to raw property values, media resources, and stream properties

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: V4.0_OS
    • Fix Version/s: V4.0_ERRATA01
    • Component/s: Protocol
    • Labels:
      None
    • Environment:

      [Applied]

    • Proposal:
      Hide

      Delete on the raw property value sets a nullable property to null and results in an error for non-nullable properties.

      Delete on a stream property sets it to "empty", resulting in 204 No Content. This is in sync with the behavior for GET StructuralProperty/$value if the structural property is null

      Delete on the media resource deletes the media resource. It could also implicitly delete the media entity. AtomPub seems to allow both, see http://tools.ietf.org/html/rfc5023#section-9.4:

      9.4. Deleting Resources with DELETE
      To delete a Member Resource, a client sends a DELETE request to its
      Member URI, as specified in [RFC2616]. The deletion of a Media Link
      Entry SHOULD result in the deletion of the corresponding Media
      Resource.

      Member Resource == media resource
      Member URI == read/edit-media link
      Media Link Entry == media entity

      Show
      Delete on the raw property value sets a nullable property to null and results in an error for non-nullable properties. Delete on a stream property sets it to "empty", resulting in 204 No Content. This is in sync with the behavior for GET StructuralProperty/$value if the structural property is null Delete on the media resource deletes the media resource. It could also implicitly delete the media entity. AtomPub seems to allow both, see http://tools.ietf.org/html/rfc5023#section-9.4: 9.4. Deleting Resources with DELETE To delete a Member Resource, a client sends a DELETE request to its Member URI, as specified in [RFC2616] . The deletion of a Media Link Entry SHOULD result in the deletion of the corresponding Media Resource. Member Resource == media resource Member URI == read/edit-media link Media Link Entry == media entity

      Description

      We don't specify the meaning of DELETE requests to raw property values (PropertyName/$value), stream properties, and media resources.

        Attachments

          Activity

            People

            • Assignee:
              handl Ralf Handl
              Reporter:
              handl Ralf Handl
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: