Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-33949

Jenkins 2.0 JSON API returns empty array elements in build "actions" array

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Component/s: core
    • Labels:
    • Environment:
      Jenkins WAR: org.jenkins-ci.main:jenkins-war:2.0-beta-1
      Platform: Debian wheezy
    • Similar Issues:

      Description

      API responses for builds return include "actions" arrays, which are now containing both objects and arrays as elements. Prior to 2.0 this was not the case. E.g:

      {
      "actions" : [
      {

      },
      [

      ],
      {
      "causes" : [

      { "shortDescription" : "Started by upstream project \"authy_master\" build number 120", "upstreamBuild" : 120, "upstreamProject" : "authy_master", "upstreamUrl" : "job/authy_master/" }

      ]
      },
      {

      },
      ...

      Note the second element there is an empty array. Is this WAD? Returning JSON in such a format makes response parsing much more difficult.

        Attachments

          Activity

          Hide
          zoetermeer James Swaine added a comment -

          I created this issue 5 days ago and nobody has responded; upgrading to 'major'.

          Show
          zoetermeer James Swaine added a comment - I created this issue 5 days ago and nobody has responded; upgrading to 'major'.
          Hide
          oleg_nenashev Oleg Nenashev added a comment -

          Uhm, cannot reproduce it.
          But looks suspicious

          Show
          oleg_nenashev Oleg Nenashev added a comment - Uhm, cannot reproduce it. But looks suspicious

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            zoetermeer James Swaine
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: