Calling `ClassLoader#getResource` with leading slash doesn't work; strip

Issue #144 resolved
Ravinder Singh created an issue

stacktrace.txt:

Calling `ClassLoader#getResource` with leading slash doesn't work; strip

com.intellij.diagnostic.PluginException: /html/oauth/success.html [Plugin: com.atlassian.bitbucket.references]
    at com.intellij.ide.plugins.cl.PluginClassLoader.doFindResource(PluginClassLoader.java:533)
    at com.intellij.ide.plugins.cl.PluginClassLoader.getResourceAsStream(PluginClassLoader.java:503)
    at com.atlassian.bitbucket.linky.rest.cloud.config.HttpServer.replyWith(OAuth3LOCallbackService.kt:152)
    at com.atlassian.bitbucket.linky.rest.cloud.config.HttpServer.serve(OAuth3LOCallbackService.kt:144)
    at fi.iki.elonen.NanoHTTPD$HTTPSession.execute(NanoHTTPD.java:945)
    at fi.iki.elonen.NanoHTTPD$ClientHandler.run(NanoHTTPD.java:192)
    at java.base/java.lang.Thread.run(Thread.java:833)

induced.txt:

Following exceptions happened soon after this one, most probably they are induced.


2022-10-26T17:39:56.230
Calling `ClassLoader#getResource` with leading slash doesn't work; strip
com.intellij.diagnostic.PluginException: /html/oauth/not_found.html [Plugin: com.atlassian.bitbucket.references]
    at com.intellij.ide.plugins.cl.PluginClassLoader.doFindResource(PluginClassLoader.java:533)
    at com.intellij.ide.plugins.cl.PluginClassLoader.getResourceAsStream(PluginClassLoader.java:503)
    at com.atlassian.bitbucket.linky.rest.cloud.config.HttpServer.replyWith(OAuth3LOCallbackService.kt:152)
    at com.atlassian.bitbucket.linky.rest.cloud.config.HttpServer.serve(OAuth3LOCallbackService.kt:101)
    at fi.iki.elonen.NanoHTTPD$HTTPSession.execute(NanoHTTPD.java:945)
    at fi.iki.elonen.NanoHTTPD$ClientHandler.run(NanoHTTPD.java:192)
    at java.base/java.lang.Thread.run(Thread.java:833)

Comments (2)

  1. Log in to comment