Mistral looses the return value of a JavaScript action if it returns a JSON or an array

Bug #1498406 reported by Michal Gershenzon
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Mistral
Fix Released
High
Michal Gershenzon

Bug Description

Workflow that reproduces the problem:

---
version: '2.0'

test_js_json:
  output:
    result: <% $.javascript_task %>

  tasks:
    javascript_task:
      action: std.javascript
      input:
        context: <% $ %>
        script: |
          return { "key": "value" };

Changed in mistral:
assignee: nobody → Michal Gershenzon (michal-gershenzon)
Changed in mistral:
status: New → Triaged
importance: Undecided → High
milestone: none → liberty-rc2
milestone: liberty-rc2 → liberty-rc1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to mistral (master)

Fix proposed to branch: master
Review: https://review.openstack.org/227593

Changed in mistral:
status: Triaged → In Progress
Changed in mistral:
milestone: liberty-rc1 → liberty-rc2
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to mistral (master)

Reviewed: https://review.openstack.org/227593
Committed: https://git.openstack.org/cgit/openstack/mistral/commit/?id=6b36bdff8393834cfb9890b88fa03ab5ba3acb6e
Submitter: Jenkins
Branch: master

commit 6b36bdff8393834cfb9890b88fa03ab5ba3acb6e
Author: Michal Gershenzon <email address hidden>
Date: Thu Sep 24 23:35:29 2015 +0000

    Support JSON and arrays in JavaScript action in Mistral

    Change-Id: Idf96c720d791a421be99e8c42c1eb0d6c1dc1afb
    Closes-Bug: 1498406

Changed in mistral:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to mistral (stable/liberty)

Fix proposed to branch: stable/liberty
Review: https://review.openstack.org/233958

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to mistral (stable/liberty)

Reviewed: https://review.openstack.org/233958
Committed: https://git.openstack.org/cgit/openstack/mistral/commit/?id=d2461d10af29d926be3b516f951bcc7ed812feee
Submitter: Jenkins
Branch: stable/liberty

commit d2461d10af29d926be3b516f951bcc7ed812feee
Author: Michal Gershenzon <email address hidden>
Date: Thu Sep 24 23:35:29 2015 +0000

    Support JSON and arrays in JavaScript action in Mistral

    Change-Id: Idf96c720d791a421be99e8c42c1eb0d6c1dc1afb
    Closes-Bug: 1498406
    (cherry picked from commit 6b36bdff8393834cfb9890b88fa03ab5ba3acb6e)

tags: added: in-stable-liberty
Changed in mistral:
status: Fix Committed → Fix Released
Changed in mistral:
milestone: liberty-rc2 → liberty
Revision history for this message
Thierry Carrez (ttx) wrote : Fix included in openstack/mistral 2.0.0.0b1

This issue was fixed in the openstack/mistral 2.0.0.0b1 development milestone.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.