Closed Bug 1502188 Opened 6 years ago Closed 6 years ago

policies.json being removed on Browser updates

Categories

(Firefox :: Enterprise Policies, defect)

defect
Not set
normal

Tracking

()

RESOLVED WONTFIX
Tracking Status
firefox-esr60 --- wontfix
firefox63 --- wontfix
firefox64 --- wontfix
firefox65 --- wontfix

People

(Reporter: Felipe, Unassigned, NeedInfo)

References

Details

Attachments

(1 file)

There have been some reports [1][2] that the policies.json file (in the distribution folder) has been removed after a Firefox update.

IIRC files in the distribution folder are not supposed to be removed during updates.

I haven't confirmed the reports. Emil, could you try to reproduce this issue?



[1] https://mail.mozilla.org/pipermail/enterprise/2018-October/000370.html
[2] https://support.mozilla.org/en-US/questions/1237979
Flags: needinfo?(emil.ghitta)
You're right, the updater should definitely be leaving the entire distribution directory alone. It would be very helpful if we could get an update log file from an affected user immediately following a problematic update.
(In reply to Matt Howell [:mhowell] from comment #1)
> You're right, the updater should definitely be leaving the entire
> distribution directory alone. It would be very helpful if we could get an
> update log file from an affected user immediately following a problematic
> update.

Where's that file located? I can ask in the mailing list to see if the user is able to get it
It depends on the OS, the quickest way to find it is probably to enable the browser console and run Services.dirsvc.get("UpdRootD", Ci.nsIFile).reveal(), then open the "updates" directory. That should show you a last-update.log (for the most recent update) and a backup-update.log (for the update before that).
Hi Victor, can you take a look at comment 3 here to find the update logs?

I think the path is probably %USER%\AppData\Local\Mozilla\Updates
Flags: needinfo?(victor.t.hoang)
Attached image update.gif
I have managed to reproduce this issue with the help of this report ->https://support.mozilla.org/en-US/questions/1237979 (I'm not sure how Victor updated Fx in https://mail.mozilla.org/pipermail/enterprise/2018-October/000370.html but I didn't manage to reproduce this while upgrading Firefox manually).

Indeed, It seems that the "distribution" folder is deleted after upgrading Firefox via the setup.exe. It seems that the "distribution" folder is explicitly deleted after the upgrade (I tried placing the policies.json in a manually created "test" folder but after the upgrade, the folder is kept).

Matt, will a log file help you for this scenario? If yes, is there a way to generate a log file for this upgrade?
Flags: needinfo?(emil.ghitta) → needinfo?(mhowell)
Status: UNCONFIRMED → NEW
Ever confirmed: true
The installer *is* supposed to delete the distribution directory, that's expected and intended. Avoiding that behavior requires setting the RemoveDistributionDir option [0] when running the installer; if the users who are reporting this issue are using the installer to deliver updates instead of the built-in updater, then that's likely to be the needed fix.

[0] https://firefox-source-docs.mozilla.org/browser/installer/windows/installer/FullConfig.html
Flags: needinfo?(mhowell)
This is working as designed.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: