Menu

#195 JOC Yade configuration validator wrongly expects LocalTarget inside MoveSourceFragmentRef

1.13
open-accepted
nobody
None
5
2021-07-18
2021-07-18
Brendon
No

Our Yade configuration files were created in the XML Editor, 4.0. We are importing them into the JOC to have them editable in the configuration section of the Cockpit.

On importing our XML configuration file it raises a validation error: Invalid content was found starting with element 'LocalSource'. It expects "LocalTarget" but this is wrong since the parent element is "MoveSourceFragmentRef.

The MoveSourceFragmentRef element is described here: https://www.sos-berlin.com/schema/yade/YADE_configuration_v1.12/YADE_configuration_v1_12_xsd_Element_MoveSourceFragmentRef.html

It clearly shows <localsource> as an expected child-element.</localsource>

We are using v 1.13.9 and validating against the in-built version 1.12 of the Yade schema.

1 Attachments

Discussion

  • Andreas

    Andreas - 2021-07-18
    • status: open --> open-accepted
     
  • Andreas

    Andreas - 2021-07-18

    Hi Brendon,

    thank you, we are aware of this issue that is available with our change management system:



    This issue is due to a bug in the XSD schema. The fix will become available with maintenance release 1.13.10. In between please apply the workaround to download the updated schema as indicated with the issue.

    Best regards
    Andreas

     
    • Brendon

      Brendon - 2021-07-18

      Thanks for the prompt response and I confirm that manually copying the corrected XSD file onto our server fixes the issue and allows the files to be correctly validated.

      BUT if I try to manually edit the configuration in the JOC by adding a child element to the MoveSourceFragmentRef then it still offers LocalTarget as the child element.

       
      • Brendon

        Brendon - 2021-07-18

        The ReadableFragmentRefType appears to have the correct choice elements so I may just be that the JOC needs to be restarted or in some other way have a buffer flushed?

        <xs:complexType name="ReadableFragmentRefType">
            <xs:choice>
                <xs:element ref="FTPFragmentRef"/>
                <xs:element ref="FTPSFragmentRef"/>
                <xs:element ref="HTTPFragmentRef"/>
                <xs:element ref="HTTPSFragmentRef"/>
                <xs:element ref="LocalSource"/>
                <xs:element ref="SFTPFragmentRef"/>
                <xs:element ref="SMBFragmentRef"/>
                <xs:element ref="WebDAVFragmentRef"/>
            </xs:choice>
        </xs:complexType>
        
         
  • Andreas

    Andreas - 2021-07-18

    Hi Brendon,

    if the problem persists with JOC Cockpit then please verify to copy the updated schema to the correct location. Then restart JOC Cockpit.

    Best regards
    Andreas

     
    • Brendon

      Brendon - 2021-07-18

      It's OK. I just had to swap out of the configuration editor for YADE into Inventory and back to YADE. That was enough to refresh the page elements and the MoveSourceFragmentRef now has the correct options when adding a child.

      All good now, thanks.

       

Log in to post a comment.