Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Unsupported URI scheme #7888

Closed
pocmo opened this issue Jul 28, 2020 · 5 comments
Closed

Unsupported URI scheme #7888

pocmo opened this issue Jul 28, 2020 · 5 comments
Assignees
Labels
<icons> Components: ui-icons, browser-icons
Milestone

Comments

@pocmo
Copy link
Contributor

pocmo commented Jul 28, 2020

java.lang.IllegalArgumentException: Unsupported URI scheme
    at org.mozilla.geckoview.GeckoWebExecutor.fetch(GeckoWebExecutor.java:12)
    at mozilla.components.browser.engine.gecko.fetch.GeckoViewFetchClient.fetch(GeckoViewFetchClient.kt:45)
    at mozilla.components.browser.icons.loader.HttpIconLoader.load(HttpIconLoader.kt:13)
    at mozilla.components.browser.icons.BrowserIcons.access$loadIconInternal(BrowserIcons.kt:13)
    at mozilla.components.browser.icons.BrowserIcons$loadIcon$1.invokeSuspend(BrowserIcons.kt:3)
    at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:3)
    at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:21)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
    at java.lang.Thread.run(Thread.java:818)

Looks like we should check the icon URLs first.

┆Issue is synchronized with this Jira Task

@pocmo pocmo added <icons> Components: ui-icons, browser-icons R79 labels Jul 28, 2020
@pocmo
Copy link
Contributor Author

pocmo commented Jul 28, 2020

@Amejia481
Copy link
Contributor

I think we already have a check, maybe the condition is not getting met

@pocmo
Copy link
Contributor Author

pocmo commented Jul 28, 2020

I guess there can be literally anything://hello.world in the markup and we'd pass that to GeckoView.

@Amejia481
Copy link
Contributor

👍

@data-sync-user data-sync-user changed the title Unsupported URI scheme FNX3-22869 ⁃ Unsupported URI scheme Aug 5, 2020
@st3fan st3fan changed the title FNX3-22869 ⁃ Unsupported URI scheme Unsupported URI scheme Aug 5, 2020
@Amejia481
Copy link
Contributor

@pocmo I'm bit confused as we are validating that the scheme should http or https on shouldDownload

Source

    private fun shouldDownload(resource: IconRequest.Resource): Boolean {
        return resource.url.toUri().isHttpOrHttps && !failureCache.hasFailedRecently(resource.url)
    }

@pocmo pocmo removed the R79 label Sep 2, 2020
@csadilek csadilek self-assigned this Dec 17, 2020
@csadilek csadilek added this to 🏃‍♀️ In Progress in A-C: Android Components Sprint Planning Dec 17, 2020
@csadilek csadilek added this to the 71.0.0 milestone Dec 17, 2020
csadilek added a commit to csadilek/android-components that referenced this issue Dec 17, 2020
csadilek added a commit to csadilek/android-components that referenced this issue Dec 17, 2020
csadilek added a commit to csadilek/android-components that referenced this issue Dec 17, 2020
@mergify mergify bot closed this as completed in 5703337 Dec 18, 2020
A-C: Android Components Sprint Planning automation moved this from 🏃‍♀️ In Progress to 🏁 Done Dec 18, 2020
csadilek added a commit to csadilek/android-components that referenced this issue Feb 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
<icons> Components: ui-icons, browser-icons
Projects
No open projects
Development

No branches or pull requests

3 participants