[SWS-706] Jaxp13XPathTemplate should support StreamSources with only a systemId if it's a valid URL Created: 28/Apr/11  Updated: 04/May/12  Resolved: 19/May/11

Status: Closed
Project: Spring Web Services
Component/s: XML
Affects Version/s: 2.0.1
Fix Version/s: 2.0.2

Type: Improvement Priority: Minor
Reporter: Joris Kuipers Assignee: Arjen Poutsma
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: 0d
Time Spent: 1h 14m
Original Estimate: Not Specified

Attachments: File Jaxp13XPathTemplate.diff    


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.

Comment by Arjen Poutsma [ 19/May/11 ]


Comment by Arjen Poutsma [ 04/May/12 ]

Closing old issues

Generated at Wed Nov 14 21:38:47 UTC 2018 using JIRA 7.9.2#79002-sha1:3bb15b68ecd99a30eb364c4c1a393359bcad6278.