[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    

 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.



 Comments   
Comment by Arjen Poutsma [ 19/May/11 ]

Fixed.

Comment by Arjen Poutsma [ 04/May/12 ]

Closing old issues

Generated at Mon Dec 11 09:26:51 UTC 2017 using JIRA 6.4.14#64029-sha1:ae256fe0fbb912241490ff1cecfb323ea0905ca5.