Closed Bug 1894301 Opened 21 days ago Closed 20 days ago

Backup manifest schema violation warning emitted when not signed in

Categories

(Firefox :: Profile Backup, defect, P3)

defect

Tracking

()

RESOLVED FIXED
127 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox125 --- unaffected
firefox126 --- unaffected
firefox127 --- fixed

People

(Reporter: mconley, Assigned: mconley)

References

(Regression)

Details

(Keywords: regression, Whiteboard: [fidefe-device-migration])

Attachments

(1 file)

STR:

  1. Don't be signed into a Mozilla account
  2. Visit chrome://browser/content/backup/debug.html
  3. Click "Create backup"
  4. Open the Browser Console

ER:

Perhaps some logging, but no errors.

AR:

This error is displayed:

BackupService: Backup manifest does not conform to schema: 
Object { version: 1, meta: {…}, resources: {…} }
 
Object { "$schema": "https://json-schema.org/draft/2019-09/schema", "$id": "file:///BackupManifest.schema.json", title: "BackupManifest", description: "A schema for the backup-manifest.json file for profile backups created by the BackupService", type: "object", properties: {…}, required: (3) […] }
 
Object { valid: false, parsedValue: undefined, error: JsonSchemaValidatorError }
BackupService.sys.mjs:283:25

This is because of some properties set to undefined in the meta object when not signed into an account.

Whiteboard: [fidefe-device-migration]
Assignee: nobody → mconley
Status: NEW → ASSIGNED

Set release status flags based on info from the regressing bug 1892304

Pushed by mconley@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/262c96e73c70
Avoid schema violation before writing backup manifest when not signed into an account. r=backup-reviewers,kpatenio
Status: ASSIGNED → RESOLVED
Closed: 20 days ago
Resolution: --- → FIXED
Target Milestone: --- → 127 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: