Closed
Bug 1275370
Opened 9 years ago
Closed 9 years ago
make it harder to return <updates><addons></addons></updates> from balrog
Categories
(Release Engineering Graveyard :: Applications: Balrog (backend), defect)
Release Engineering Graveyard
Applications: Balrog (backend)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: bhearsum, Assigned: vjoshi)
References
Details
According to rhelmer, <updates><addons></addons></updates> instructions Firefox to disable _all_ system addons. Right now, an "empty" GMP blob (which SystemAddons uses) returns this response. We should probably return <updates></updates> for these cases instead, and only return the former if some special attribute is set in the blob.
Comment 1•9 years ago
|
||
Is this a regression from the GMP multifile landing ?
Reporter | ||
Comment 2•9 years ago
|
||
(In reply to Nick Thomas [:nthomas] from comment #1)
> Is this a regression from the GMP multifile landing ?
Even though we don't use multifile for System Addons yet, it looks like it probably is. We used to check for inner contents before adding the <addons> bit, per https://github.com/mozilla/balrog/commit/93a6d3d5f30d9db4ccccb441e958953b6eb77c5e#diff-646fe03b04415266d51566958c0a2ed5L1.
Good catch!
Reporter | ||
Comment 3•9 years ago
|
||
Varun is working on this in https://github.com/mozilla/balrog/pull/95
Assignee: nobody → varunj.1011
See Also: → https://github.com/mozilla/balrog/pull/95
Reporter | ||
Comment 4•9 years ago
|
||
(In reply to Ben Hearsum (:bhearsum) from comment #0)
> According to rhelmer, <updates><addons></addons></updates> instructions
> Firefox to disable _all_ system addons. Right now, an "empty" GMP blob
> (which SystemAddons uses) returns this response. We should probably return
> <updates></updates> for these cases instead, and only return the former if
> some special attribute is set in the blob.
Varun pointed out that this is not what http://gecko.readthedocs.io/en/latest/toolkit/mozapps/extensions/addon-manager/SystemAddons.html says. According to it, <updates></updates> disables everything, and <updates><addons></addons></addons> does nothing. Can you clarify, Rob? I'm guessing that I got things mixed up when I first filed this bug.
Flags: needinfo?(rhelmer)
Comment 5•9 years ago
|
||
(In reply to Ben Hearsum (:bhearsum) from comment #4)
> (In reply to Ben Hearsum (:bhearsum) from comment #0)
> > According to rhelmer, <updates><addons></addons></updates> instructions
> > Firefox to disable _all_ system addons. Right now, an "empty" GMP blob
> > (which SystemAddons uses) returns this response. We should probably return
> > <updates></updates> for these cases instead, and only return the former if
> > some special attribute is set in the blob.
>
> Varun pointed out that this is not what
> http://gecko.readthedocs.io/en/latest/toolkit/mozapps/extensions/addon-
> manager/SystemAddons.html says. According to it, <updates></updates>
> disables everything, and <updates><addons></addons></addons> does nothing.
> Can you clarify, Rob? I'm guessing that I got things mixed up when I first
> filed this bug.
Hm, can you point me to where in the doc it says this? I see in http://gecko.readthedocs.io/en/latest/toolkit/mozapps/extensions/addon-manager/SystemAddons.html#disable-all-system-add-ons
```
A response from AUS with an empty add-on set will disable all system add-ons:
<updates>
<addons></addons>
</updates>
```
In the Rollout section http://gecko.readthedocs.io/en/latest/toolkit/mozapps/extensions/addon-manager/SystemAddons.html#rollout there's an example of the empty response:
```
<updates></updates>
With the empty response, Firefox will not make any changes.
```
Flags: needinfo?(rhelmer)
Reporter | ||
Comment 6•9 years ago
|
||
(In reply to Robert Helmer [:rhelmer] from comment #5)
> (In reply to Ben Hearsum (:bhearsum) from comment #4)
> > (In reply to Ben Hearsum (:bhearsum) from comment #0)
> > > According to rhelmer, <updates><addons></addons></updates> instructions
> > > Firefox to disable _all_ system addons. Right now, an "empty" GMP blob
> > > (which SystemAddons uses) returns this response. We should probably return
> > > <updates></updates> for these cases instead, and only return the former if
> > > some special attribute is set in the blob.
> >
> > Varun pointed out that this is not what
> > http://gecko.readthedocs.io/en/latest/toolkit/mozapps/extensions/addon-
> > manager/SystemAddons.html says. According to it, <updates></updates>
> > disables everything, and <updates><addons></addons></addons> does nothing.
> > Can you clarify, Rob? I'm guessing that I got things mixed up when I first
> > filed this bug.
>
> Hm, can you point me to where in the doc it says this? I see in
> http://gecko.readthedocs.io/en/latest/toolkit/mozapps/extensions/addon-
> manager/SystemAddons.html#disable-all-system-add-ons
>
> ```
> A response from AUS with an empty add-on set will disable all system add-ons:
>
> <updates>
> <addons></addons>
> </updates>
>
> ```
>
> In the Rollout section
> http://gecko.readthedocs.io/en/latest/toolkit/mozapps/extensions/addon-
> manager/SystemAddons.html#rollout there's an example of the empty response:
>
>
> ```
> <updates></updates>
>
> With the empty response, Firefox will not make any changes.
> ```
I think we talked about this on IRC yesterday, and discovered that the "Update Behavior" section doesn't match the examples (http://gecko.readthedocs.io/en/latest/toolkit/mozapps/extensions/addon-manager/SystemAddons.html#update-behavior). It says: "If the <addons> tag is missing in the response, disable all system add-ons, including both the update and default sets."
Comment 7•9 years ago
|
||
Commit pushed to master at https://github.com/mozilla/balrog
https://github.com/mozilla/balrog/commit/504dedf87722476246b4b6186cc7167b4468b8af
bug 1275370: Added blob for SystemAddons and fixed response for no updates (#95). r=bhearsum
Reporter | ||
Comment 8•9 years ago
|
||
This is working fine in stage. It should go to production later this week or early next.
Reporter | ||
Comment 9•9 years ago
|
||
This is in production, and I've asked that new System Addon releases use this blob instead of the GMP one.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Updated•5 years ago
|
Product: Release Engineering → Release Engineering Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•