[
https://issues.apache.org/jira/browse/CB-9255?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14603239#comment-14603239
]
ASF GitHub Bot commented on CB-9255:
------------------------------------
Github user cjpearson commented on the pull request:
https://github.com/apache/cordova-android/pull/186#issuecomment-115784095
The file transfer plugin uses this method to ensure that a url uses http or
https. We would get INVALID_URL_ERR whenever a user entered a url with a
capital h in Http. We've worked around this by lowercasing the scheme
automatically, but this seems like something that could cause issues again.
> getUriType is case sensitive
> ----------------------------
>
> Key: CB-9255
> URL: https://issues.apache.org/jira/browse/CB-9255
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android
> Affects Versions: 4.0.0
> Reporter: Connor Pearson
>
> The getUriType method is case sensitive. This causes it to return
> URI_TYPE_UNKNOWN if the URI contains a capital letter in its scheme. (e.g.
> Http and HTTP return URI_TYPE_UNKNOWN instead of URI_TYPE_HTTP)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]