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

      When you have multiple jobs set up, the URL ".../api/xml" returns the full list
      of jobs along with the views. Under XPath, I should be able to filter this by
      the following xpath "//job[*]". However, viewing the URL
      ".../api/xml?xpath=//job[*]" only returns the first job that matched, not all
      jobs that matched.

          [JENKINS-1141] API XPath not returning full results

          We can't return a forest because it won't be parsable. In 1.167 I made it an
          error for XPath to match multiple nodes, and introduce another query parameter
          'wrapper' so that you can specify the XML element node Hudson will use as the
          root element.

          Kohsuke Kawaguchi added a comment - We can't return a forest because it won't be parsable. In 1.167 I made it an error for XPath to match multiple nodes, and introduce another query parameter 'wrapper' so that you can specify the XML element node Hudson will use as the root element.

            kohsuke Kohsuke Kawaguchi
            davyboyhayes davyboyhayes
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: