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

API XPath not returning full results

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: other
    • Labels:
      None
    • Environment:
      Platform: All, OS: Windows XP
    • Similar Issues:

      Description

      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.

        Attachments

          Activity

          Hide
          kohsuke 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.

          Show
          kohsuke 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.

            People

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

              Dates

              Created:
              Updated:
              Resolved: