Cannot see avatar pictures from self hosted Bitbucket

Issue #330 new
Henrik Raitasola created an issue

Hi

We have self hosted Bitbucket and some of the avatar pictures are hosted on Gravatar and some directly to the self hosted Bitbucket. We have problem that only gravatar pictures are shown. I have done debugging and the url is correct in both case in this.pr.data.author.avatarUrl in file pullRequestNode.ts but I think the problem is that our self hosted install uses https but it does not have certificate.

When I check this link https://code.visualstudio.com/api/extension-guides/webview#content-security-policy it confirms that Vscode only shows remote images with https. So how it is possible to see avatar pictures on self hosted Bitbucket without ssl cert? Can it be some how whitelisted and we can see from the same link as above?

Comments (8)

  1. Nick Rundquist

    @Henrik Raitasola , when you say your install doesn’t have a certificate do you mean you’re using a self signed certificate?

  2. Nick Rundquist

    Also, as test, could you try opening one of the failing avatar URLs in an Incognito / Private browser window and let me know what loads?

  3. Henrik Raitasola reporter

    @Nick Rundquist I logged the avatar urls that the plugin tries to load and then copy pasted some of the urls to Chrome in Incognito mode and it loads the images correctly. And of course one thing to note is that it shows “Not secure” at the start of the url bar because of the self signed certificate.

    So if I understand correctly is that the plugin is not using the self signed certificate correctly even though in the setup you have to specify the location of the self signed cert so the plugin has access to that

  4. Log in to comment