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

xpath queries does return nothing

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Critical Critical
    • None
    • None
    • CentOS 32bit with Hudson version 1.341

      Hudson remote xml api used with xpath query parameter returns empty results.
      For instance if you try to issue a request like this:

      http://deadlock.netbeans.org/hudson/api/xml?xpath=/hudson/job it states that the xpath query matches more than one node and tell you to use a wrapper

      but if you use the wrapper query string parameter:
      http://deadlock.netbeans.org/hudson/api/xml?xpath=/hudson/job&wrapper=jobs
      it simply returns nothing!!!

      An other example is:
      http://deadlock.netbeans.org/hudson/api/xml?xpath=/hudson/job[0]/name
      It results with the message "XPath /hudson/job[0]/name didn't match"
      but it is wrong! The node 0 exists and it has a name!

      These xpath queries work fine since 1.339 version..
      now that machines upgraded to 1.341 the xpath queries stop to work!

      It is critical issue because it stops my mobile application development.

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

              Created:
              Updated:
              Resolved: