Skip to content

Jaxp13XPathTemplate should support StreamSources with only a systemId if it's a valid URL [SWS-706] #694

@gregturn

Description

@gregturn

Joris Kuipers opened SWS-706 and commented

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.


Affects: 2.0.1

Attachments:

Referenced from: commits 6cdff3e

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions