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

NPE for XML API calls with xpath queries

XMLWordPrintable

    • 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.

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

              Created:
              Updated:
              Resolved: