Uploaded image for project: 'Spring Web Services'
  1. Spring Web Services
  2. SWS-706

Jaxp13XPathTemplate should support StreamSources with only a systemId if it's a valid URL

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.1
    • Fix Version/s: 2.0.2
    • Component/s: XML
    • Labels:
      None

      Description

      I ran into this while working with Spring Integration: that supports a File-based payload to be unmarshalled which results in a StreamSource with neither a Reader nor an InputStream, which means the Jaxp13XPathTemplate cannot be used with that Source. It's easy enough to try to read from the systemId if it's a valid URL, which it is in this case.
      I've patched the template and tested that this indeed does the trick. It would be great if this patch could be added to the next release, since I'll otherwise have to ship training material with the patched version.

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open In Progress In Progress
        20d 14h 25m 1 Arjen Poutsma 19/May/11 2:13 AM
        In Progress In Progress Resolved Resolved
        1h 15m 1 Arjen Poutsma 19/May/11 3:28 AM
        Resolved Resolved Closed Closed
        351d 3h 35m 1 Arjen Poutsma 04/May/12 7:03 AM

          People

          • Assignee:
            arjen.poutsma Arjen Poutsma
            Reporter:
            jkuipers Joris Kuipers
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - Not Specified
              Not Specified
              Remaining:
              Remaining Estimate - 0d
              0d
              Logged:
              Time Spent - 1h 14m
              1h 14m