Uploaded image for project: 'OASIS OSLC Lifecycle Integration Core (OSLC Core) TC'
  1. OASIS OSLC Lifecycle Integration Core (OSLC Core) TC
  2. OSLCCORE-178

Treatment of unknown properties needs to be reviewed and clarified

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: Core
    • Labels:
      None
    • Proposal:
      Hide

      An OSLC Service SHOULD preserve property values that are not part of the resource definition or Resource Shape known by the server (unknown property values). An OSLC Service MUST return a 4xx status code if it decides not to persist any of the unknown property values (in accordance with the LDP specification §4.2.4.4).

      An OSLC Client MUST preserve any unknown property values between requests to the OSLC Services for all HTTP verbs except PATCH (in accordance with the LDP specification §4.3.1.11).

      Show
      An OSLC Service SHOULD preserve property values that are not part of the resource definition or Resource Shape known by the server (unknown property values). An OSLC Service MUST return a 4xx status code if it decides not to persist any of the unknown property values (in accordance with the LDP specification §4.2.4.4). An OSLC Client MUST preserve any unknown property values between requests to the OSLC Services for all HTTP verbs except PATCH (in accordance with the LDP specification §4.3.1.11).

      Description

      OSLC Core 2.0 provides clear guidance on client and server treatment of unknown properties. 

      I can't find any statement about unknown properties in OSLC Core 3.0, but the old, and outdated changes-from-v2 supporting document says: "Unknown properties and content MUST NOT be ignored by servers or clients" and references LDP.

      LDP says:

      4.2.4.4 If an otherwise valid HTTP PUT request is received that contains properties the server chooses not to persist, e.g. unknown content, LDP servers must respond with an appropriate 4xx range status code ??[RFC7231. LDP servers should provide a corresponding response body containing information about which properties could not be persisted. The format of the 4xx response body is not constrained by LDP. LDP servers expose these application-specific constraints as described in section 4.2.1 General.

      We should discuss this and see what the intent should be and if there is any need to clarify in OSLC Core 3.0.

        Attachments

          Activity

            People

            • Assignee:
              berezovskyi Andrii Berezovskyi
              Reporter:
              jamsden James Amsden
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: