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

Construction rule for canonical URL is incomplete

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: V4.0_ERRATA02
    • Fix Version/s: V4.0_ERRATA03
    • Component/s: URL Conventions
    • Labels:
      None
    • Environment:

      [Applied]

    • Proposal:
      Hide

      For single-part keys the canonical key predicate does not contain the key property name.

      For multi-part keys the canonical key predicate lists the key properties in the order they appear in the CSDL.

      Fix JSON Schema so that there is an ordering of key properties (i.e., through an array of key/value pairs).

      Show
      For single-part keys the canonical key predicate does not contain the key property name. For multi-part keys the canonical key predicate lists the key properties in the order they appear in the CSDL. Fix JSON Schema so that there is an ordering of key properties (i.e., through an array of key/value pairs).
    • Resolution:
      Show
      https://www.oasis-open.org/committees/download.php/54713/odata-v4.0-wd08-part2-url-conventions-2014-12-12.docx

      Description

      JSON Format 4.5.7 allows omitting the odata.id if it is identical to the canonical URL of the entity.

      URL Conventions 4.3.1 defines how the canonical URL is constructed BUT does not specify how the key predicate is to be constructed canonically.

      ABNF allows "synonyms" for the key predicate

      • for a single key property the key predicate may contain or omit the key property name
      • for multiple key properties no order is required for the key properties

      As a consequence a client cannot know how to construct the canonical URL from the entity set and key properties.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: