question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot install add-on if it supports multiple platforms

See original GitHub issue

Describe the problem and steps to reproduce it:

What happened?

You may or may not get the correct add-on file for your platform when you click the install button.

What did you expect to happen?

Depending on what platform you’re on (Linux, Windows, Mac OS X) you should always get the right add-on file during installation.

Anything else we should know?

Here are some real world cases that might trigger this issue:

  • There are a lot of legacy add-ons with multiple platform files
  • A webextension add-on that requires native messaging to talk to a desktop application might want to say it only supports Mac and Windows but not Linux. This add-on would have multiple files and would trigger this bug. I think 1Password is an example of this but they seem to self-host their add-on.
  • When a developer is submitting their add-on they may choose to deselect the ‘all platforms’ box for whatever reason and select the other platform boxes explicitly. This would also trigger the bug.
  • An extension may contain an Android version and a desktop version but I can’t think of any real reason why you’d do that.

You can take a look at the API representation of the example add-on with:

curl https://addons-dev.allizom.org/api/v3/addons/addon/ratopuse-weasp-vulturkal/

This is what the files array looks like:

  "files" : [
         {
            "is_restart_required" : false,
            "id" : 253517,
            "size" : 4162,
            "is_webextension" : true,
            "permissions" : [],
            "platform" : "linux",
            "created" : "2017-08-24T14:47:04Z",
            "status" : "public",
            "hash" : "sha256:638e8aa4fc91e58cb003f163b1e129b362aa991a0460bcf9101daff7f8a4b653",
            "url" : "https://addons-dev.allizom.org/firefox/downloads/file/253517/ratopuse_weasp_vulturkal-1.0-an+fx-linux.xpi?src="
         },
         {
            "is_restart_required" : false,
            "id" : 253518,
            "is_webextension" : true,
            "size" : 4161,
            "platform" : "mac",
            "permissions" : [],
            "status" : "public",
            "created" : "2017-08-24T14:48:26Z",
            "url" : "https://addons-dev.allizom.org/firefox/downloads/file/253518/ratopuse_weasp_vulturkal-1.0-an+fx-mac.xpi?src=",
            "hash" : "sha256:2755819195584b4e7693ea5d08493b476fb9318b0f2e6560d29e5877cb64dfd5"
         },
         {
            "size" : 4162,
            "is_webextension" : true,
            "id" : 253519,
            "is_restart_required" : false,
            "hash" : "sha256:749b0183848611335c7ff10ce0a2aa25cddcaf07b7bd565ba046769252de8db5",
            "url" : "https://addons-dev.allizom.org/firefox/downloads/file/253519/ratopuse_weasp_vulturkal-1.0-an+fx-windows.xpi?src=",
            "created" : "2017-08-24T14:48:26Z",
            "status" : "public",
            "permissions" : [],
            "platform" : "windows"
         },
         {
            "platform" : "android",
            "permissions" : [],
            "status" : "public",
            "created" : "2017-08-24T14:48:41Z",
            "url" : "https://addons-dev.allizom.org/firefox/downloads/file/253520/ratopuse_weasp_vulturkal-1.0-an+fx-android.xpi?src=",
            "hash" : "sha256:f7aba3eeadafbf2203972595f2cb10777a6d9967bcd76ba9aaa5142be0df4b68",
            "is_restart_required" : false,
            "id" : 253520,
            "size" : 4162,
            "is_webextension" : true
         }
      ]

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
kumar303commented, Oct 20, 2017

I added support for as many mainstream Linux/Unix flavors as I could think of. I did not add support for historical OSes like RISC, etc.

1reaction
kumar303commented, Oct 19, 2017

Thanks for the user agent strings. I can reproduce this and I am working on a fix.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to install AddOn using FileNet Content Engine ... - IBM
Problem. During the creation of the initial object store, the Object Store wizard was unable to install the 5.1.0 Base Content Engine ...
Read more >
Cannot install add-ons because of connection error
xpi's cannot be installed directly either. I got a message saying this add-on appears to be corrupt. I duckduckwent this issue and tried...
Read more >
View, manage, and install add-ins for Microsoft 365 programs
Explore your options and settings when you install add-ins. ... commands and new features to Microsoft 365 programs that help increase your productivity....
Read more >
SAP Issue - I get error "Continue working without this Add-on ...
This issue can be caused by registering 64-bit add-ons on a 32-bit client. Even if one add-on is not developed for the correct...
Read more >
Install an add-on in a distributed Splunk Enterprise deployment
Unless noted, add-ons are supported on indexer clusters, whether single-site or multi-site. If the add-on defines configurations for modular ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found