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

URI resolution chokes on URI scheme not supported by JVM #66



Copy link

@argv-minus-one argv-minus-one commented Nov 2, 2012

I am using Calabash with a custom URIResolver that resolves URIs of the site scheme (e.g. site:/pages/index.html).

Unfortunately, Calabash's XProcURIResolver tries to construct a from the URI, and since the running JVM doesn't have a handler for the site scheme, this fails, even though the custom URIResolver would translate it into something usable.

This is a patch for that problem. Now, the MalformedURLException is caught and ignored, and the unaltered input URI used if a could not be constructed. I'm not familiar with the jar URI use case your code there is meant to address, but I'm hoping this change won't break that use case.

…ld not be required to be valid even before URI resolution.
Copy link

@ndw ndw commented Jan 29, 2013

I think this is fixed for 1.0.6.

@ndw ndw closed this Jan 29, 2013
ndw added a commit that referenced this pull request Jan 29, 2013
ndw added a commit that referenced this pull request Jan 29, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.