Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
gregturn opened this issue Apr 28, 2011 · 2 comments
Assignees
Milestone

Comments

@gregturn
Copy link
Member

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

@gregturn
Copy link
Member Author

Arjen Poutsma commented

Fixed.

@gregturn
Copy link
Member Author

gregturn commented May 4, 2012

Arjen Poutsma commented

Closing old issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants