Uploaded image for project: 'Opencast'
  1. MH-8546

WorkflowDefinition serialization to JSON differs in "get all" and "get by ID"

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed and reviewed
    • Affects versions: 1.3
    • Fix versions: 1.3
    • Components: Backend Software
    • Labels:
      None
    • Severity:
      Incorrectly Functioning With Workaround
    • Steps to reproduce:
      Hide
      WorkflowRestService#getWorkflowDefinitionAsJson(..) uses JAXB serialization while WorkflowRestService#getWorkflowDefinitions(..) does manual serialization. This approach is generally not desirable since changes in the WorkflowDefinition and WorkflowOperationDefinition have to be reflected; a code break will likely happen.

      Currently there are also differences in field naming, on example is in WorkflowOperationDefinition, exception-handler-workflow (JAXB) vs. exception_handler_workflow (manual in WorkflowRestService#getWorkflowDefinitionAsJson)

      A JAXB wrapper class should be used to serialize the list.
      Show
      WorkflowRestService#getWorkflowDefinitionAsJson(..) uses JAXB serialization while WorkflowRestService#getWorkflowDefinitions(..) does manual serialization. This approach is generally not desirable since changes in the WorkflowDefinition and WorkflowOperationDefinition have to be reflected; a code break will likely happen. Currently there are also differences in field naming, on example is in WorkflowOperationDefinition, exception-handler-workflow (JAXB) vs. exception_handler_workflow (manual in WorkflowRestService#getWorkflowDefinitionAsJson) A JAXB wrapper class should be used to serialize the list.
    • Tags (folksonomy):

      TestRail: Results

        Attachments

          Activity

            People

            • Assignee:
              rrolf Rüdiger Rolf
              Reporter:
              cedriessen Christoph Driessen
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                TestRail: Cases