Uploaded image for project: 'Oozie'
  1. Oozie
  2. OOZIE-2965

Consolidate workflow, bundle, coordinator, SLA validation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      Right now validating a workflow, coordinator, bundle, SLA xml against the provided schemas are happenning in different ways.

      Validation during bundle submission happens in similar way : https://github.com/apache/oozie/blob/5998c18fde1da769e91e3ef1bcca484723730c76/core/src/main/java/org/apache/oozie/command/bundle/BundleSubmitXCommand.java#L289.
      During workflow submission, validation is a bit more complex: https://github.com/apache/oozie/blob/branch-4.3/core/src/main/java/org/apache/oozie/workflow/lite/LiteWorkflowAppParser.java#L169

      It would be a better solution to have a common validation logic for job (workflow, coordinator, bundle, etc) submission and xml validation with oozie validate. We should only validate XML against the given entity's schema(s) (e.g. coording), and not against each schema. V2ValidateServlet should not (re)implement xml validation.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              asasvari Attila Sasvári
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: