Uploaded image for project: 'JS - JobScheduler'
  1. JS - JobScheduler
  2. JS-647

XML commands which are sent via URL are changed, so that only one XML element is supported

    XMLWordPrintable

Details

    Description

      If an XML command is sent via the Job Scheduler URL (i.e. "http://scheduler:4444/<show_state/>") then it works.
      But it works too, if the last slash ('/') is omitted even though the XML command is not well-formed (i.e. "http://scheduler:4444/<show_state>") because the Job Scheduler adds the missing slash.
      The Job Scheduler adds always a missing slash in the last tag even though the XML command is well-formed (i.e. "http://scheduler:4444/<show_state></show_state>").
      In this case the following error is thrown:

      <spooler>
      <answer time="2011-03-18 11:59:39.796">
      <ERROR time="2011-03-18 11:59:39" code="XML-ERROR" text="XML-ERROR [:1: validity error : Validation failed: no DTD found !<show_state></show_state/> ^ :1: parser error : expected '>'<show_state></show_state/> ^ :1: parser error : Extra content at the end of the document<show_state></show_state/> ^]"/>
      </answer>
      </spooler>

      The error message of the XML parser is correct because "<show_state></show_state/>" is parsed unfortunately.
      The Job Scheduler should not change the XML command.

      Attachments

        Activity

          People

            ss Stefan Schädlich (Inactive)
            oh Oliver Haufe
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: