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

/api/xml?xpath=...&wrapper=... works unexpectedly if result node list size <=1

XMLWordPrintable

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

      If the result has >=2 elements, you get <wrapper>...results...</wrapper> as you
      expect. But if it has 1 element, you get that element with no wrapper. And if it
      has no elements, you get an (HTML!) error page. While this may be pleasant for
      interactive experimentation, it makes writing a WS client harder.

            jglick Jesse Glick
            jglick Jesse Glick
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: