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

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

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

          [JENKINS-3267] /api/xml?xpath=...&wrapper=... works unexpectedly if result node list size <=1

          Jesse Glick created issue -
          SCM/JIRA link daemon made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Andrew Bayer made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 133340 ] New: JNJira + In-Review [ 202091 ]

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

              Created:
              Updated:
              Resolved: