• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • other
    • None
    • Platform: All, OS: All

      XML API calls with xpath queries like
      /job/jobname/api/xml?xpath=/*/nextBuildNumber/text()

      fail with
      Caused by: java.lang.NullPointerException
      at hudson.model.Api.doXml(Api.java:79)

      Without xpath query, XML API calls work.
      The error only occurs with 1.273, on 1.272 XML API with xpath is fine.

          [JENKINS-2828] NPE for XML API calls with xpath queries

          Alan Harder added a comment -

          r14413 | kohsuke | 2009-01-12 18:59:10 -0700 (Mon, 12 Jan 2009) | 4 lines
          Changed paths:
          M /trunk/hudson/main/core/src/main/java/hudson/model/Api.java
          A /trunk/hudson/main/test/src/test/java/hudson/model/ApiTest.java
          M /trunk/www/changelog.html

          XML API caused NPE when xpath=... is specified.
          (<a href="https://hudson.dev.java.net/issues/show_bug.cgi?id=2828">issue
          2828</a>)

          Fixed in 1.274.

          Alan Harder added a comment - r14413 | kohsuke | 2009-01-12 18:59:10 -0700 (Mon, 12 Jan 2009) | 4 lines Changed paths: M /trunk/hudson/main/core/src/main/java/hudson/model/Api.java A /trunk/hudson/main/test/src/test/java/hudson/model/ApiTest.java M /trunk/www/changelog.html XML API caused NPE when xpath=... is specified. (<a href="https://hudson.dev.java.net/issues/show_bug.cgi?id=2828">issue 2828</a>) Fixed in 1.274.

            Unassigned Unassigned
            aakara aakara
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: