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

Items reported twice via ItemGroup /api on JDK 8 (and JDK 7u80+)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • core

      Exported API reports all jobs twice. It only seem to affect jobs scoped to jenkins.

      $JENKINS_URL/api/xml:

      <hudson>
        <assignedLabel/>
        <mode>NORMAL</mode>
        <nodeDescription>the master Jenkins node</nodeDescription>
        <nodeName/>
        <numExecutors>2</numExecutors>
        <job>
          <name>bash</name>
          <url>http://localhost:8080/job/bash/</url>
          <color>blue</color>
        </job>
        <job>
          <name>bash</name>
          <url>http://localhost:8080/job/bash/</url>
          <color>blue</color>
        </job>
        <overallLoad/>
        <primaryView>
          <name>All</name>
          <url>http://localhost:8080/</url>
        </primaryView>
        <quietingDown>false</quietingDown>
        <slaveAgentPort>0</slaveAgentPort>
        <unlabeledLoad/>
        <useCrumbs>false</useCrumbs>
        <useSecurity>false</useSecurity>
        <view>
        <name>All</name>
        <url>http://localhost:8080/</url>
        </view>
      </hudson>
      

      It works correctly when jenkins is build with java 7 and run on either 7 or 8. Though it is present when build with java 8 (and run on either 7 or 8). This is reproduced by hudson.model.ApiTest.wrappedMultipleItems. Tested on OpenJDK 1.7.0_75 and OpenJDK 1.8.0_31.

            Unassigned Unassigned
            olivergondza Oliver Gondža
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: