Skip to content

XSD Optional Elements #8

Description

@kinglevel

XSD Bug: Optional elements required by GDTF-Share

Affected elements

The following elements are declared minOccurs="0" (optional) in gdtf.xsd
but are required by the GDTF-Share upload server (gdtf-share.com):

Element XSD line XSD declaration GDTF-Share behavior
Wheels 80 minOccurs="0" Server 500 if missing
PhysicalDescriptions 86 minOccurs="0" Server 500 if missing
FTPresets 118 minOccurs="0" Server 500 if missing
Protocols 119 minOccurs="0" Server 500 if missing

Symptoms

A GDTF file that passes XSD validation will cause an HTTP 500 (Internal
Server Error) on upload to GDTF-Share if any of these elements are omitted.
The upload wizard reads the file and proceeds through the categorization
steps normally, then hangs on the final "Uploading, please wait..." spinner
with an XHR-Error: Internal Server Error in the browser console.

Workaround

Always emit these elements, even when empty:

<Wheels />
<PhysicalDescriptions>
  <ColorSpace Mode="sRGB" Name="" />
  <AdditionalColorSpaces />
  <Gamuts />
  <Filters />
  <Emitters />
  <DMXProfiles />
  <CRIs />
  <Connectors />
  <Properties />
</PhysicalDescriptions>
<FTPresets />
<Protocols />

Resolution

Either the XSD should be updated to minOccurs="1" for these elements, or
the GDTF-Share server should handle their absence gracefully.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions