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

Define maximum length of namespace names and simple identifiers

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: V4.0_WD01
    • Fix Version/s: V4.0_WD01
    • Component/s: CSDL XML
    • Labels:
      None
    • Environment:

      [Proposed]

      Description

      Currently the prose specification defines no limit for namespace names, and the CSDL schema definition limits them to 512 characters.
      Both the prose spec and the schema limit simple identifiers to 479 characters.

      Apparently the C# compiler accepts only 511 characters for both variable names and namespace names, so 512 is too long for namespaces, and 479 is oddly short for a simple identifier.

      JavaScript on the other hand has no limit for variable names.

        Attachments

          Activity

          ralfhandl Ralf Handl created issue -
          ralfhandl Ralf Handl made changes -
          Field Original Value New Value
          Proposal Remove the length restriction because we don't want to accommodate all programming languages anyway (ABAP's limit is thirty :-) Restrict length of SimpleIdentifier to 30 and QualifiedName to 300 (or 309 to account for the dots :-)
          ralfhandl Ralf Handl made changes -
          Proposal Restrict length of SimpleIdentifier to 30 and QualifiedName to 300 (or 309 to account for the dots :-) Restrict length of SimpleIdentifier to 50 and QualifiedName to 500 (who bids 100 and 1000? :-)
          ralfhandl Ralf Handl made changes -
          Proposal Restrict length of SimpleIdentifier to 50 and QualifiedName to 500 (who bids 100 and 1000? :-) Restrict length of SimpleIdentifier to 128 and QualifiedName to 511

          Accepted: https://www.oasis-open.org/committees/download.php/48411/odata-meeting-27_on-20130228-minutes.html#odata-236
          Status New [ 10000 ] Open [ 1 ]
          ralfhandl Ralf Handl made changes -
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Resolved [ 5 ]
          ralfhandl Ralf Handl made changes -
          Assignee Ralf Handl [ ralfhandl ]
          handl Ralf Handl made changes -
          Reporter Ralf Handl [ ralfhandl ] Ralf Handl [ handl ]
          handl Ralf Handl made changes -
          Assignee Ralf Handl [ ralfhandl ] Ralf Handl [ handl ]

            People

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

              Dates

              • Created:
                Updated:
                Resolved: