Skip to content

Attachment modification events are rejected with 422 #1184

@leplatrem

Description

@leplatrem

JBI responds with 422 on attachment modification event

{
  "bug": {
    "alias": "",
    "assigned_to": "john@doe.com",
    "assigned_to_detail": {
      "id": 546716,
      "login": "john@doe.com",
      "real_name": "John Doe"
    },
    "attachment": {
      "content_type": "text/x-phabricator-request",
      "creation_time": "2025-08-25T13:36:03",
      "description": "Bug 1984876 - Fix HostIgnoreByProxy with empty input. r=stransky,mccr8",
      "file_name": "phabricator-D262377-url.txt",
      "flags": [
        {
          "id": 2302739,
          "name": "approval-mozilla-beta",
          "value": "?"
        }
      ],
      "id": 9509215,
      "is_obsolete": false,
      "is_patch": false,
      "is_private": false,
      "last_change_time": "2025-08-25T13:36:03"
    },
    "cf_a11y_review_project_flag": "---",
    "cf_accessibility_severity": "---",
    "cf_cab_review": "",
    "cf_crash_signature": "[@ mozilla::detail::nsTStringRepr<T>::First | HostIgnoredByProxy]",
    "cf_fx_iteration": "",
    "cf_fx_points": "",
    "cf_has_str": "",
    "cf_last_resolved": "2025-08-26T10:12:27",
    "cf_performance_impact": "---",
    "cf_qa_whiteboard": "",
    "cf_rank": "",
    "cf_size_estimate": "---",
    "cf_status_firefox142": "unaffected",
    "cf_status_firefox143": "affected",
    "cf_status_firefox144": "fixed",
    "cf_status_firefox_esr115": "unaffected",
    "cf_status_firefox_esr128": "unaffected",
    "cf_status_firefox_esr140": "unaffected",
    "cf_status_thunderbird_esr115": "---",
    "cf_status_thunderbird_esr128": "---",
    "cf_status_thunderbird_esr140": "---",
    "cf_tracking_firefox142": "---",
    "cf_tracking_firefox143": "+",
    "cf_tracking_firefox144": "+",
    "cf_tracking_firefox_esr115": "---",
    "cf_tracking_firefox_esr128": "---",
    "cf_tracking_firefox_esr140": "---",
    "cf_tracking_firefox_relnote": "---",
    "cf_tracking_thunderbird_esr115": "---",
    "cf_tracking_thunderbird_esr128": "---",
    "cf_tracking_thunderbird_esr140": "---",
    "cf_user_story": "",
    "cf_webcompat_priority": "---",
    "cf_webcompat_score": "---",
    "classification": "Components",
    "component": "Networking",
    "creation_time": "2025-08-24T00:40:52",
    "creator": "release-mgmt-account-bot@mozilla.tld",
    "creator_detail": {
      "id": 575867,
      "login": "release-mgmt-account-bot@mozilla.tld",
      "real_name": "BugBot [:suhaib / :marco/ :calixte]"
    },
    "flags": [],
    "id": 1984876,
    "is_private": false,
    "keywords": [
      "crash",
      "regression"
    ],
    "last_change_time": "2025-08-26T13:48:59",
    "operating_system": "Linux",
    "platform": "Other",
    "priority": "P2",
    "product": "Core",
    "qa_contact": "",
    "resolution": "FIXED",
    "see_also": [],
    "severity": "S3",
    "status": "RESOLVED",
    "summary": "Crash in [@ mozilla::detail::nsTStringRepr<T>::First | HostIgnoredByProxy]",
    "target_milestone": "144 Branch",
    "type": "defect",
    "url": "",
    "version": "unspecified",
    "whiteboard": "[necko-triaged]"
  },
  "event": {
    "action": "modify",
    "changes": [
      {
        "added": "?",
        "field": "flag.approval-mozilla-beta",
        "removed": ""
      }
    ],
    "routing_key": "attachment.modify:flag.approval-mozilla-beta",
    "target": "attachment",
    "time": "2025-08-26T13:48:59",
    "user": {
      "id": 546716,
      "login": "john@doe.com",
      "real_name": "John Doe"
    }
  },
  "webhook_id": 102,
  "webhook_name": "JBI-PROD-Any-Any-Attachments"
}
[
    {
        'input': {'id': 2302739, 'name': 'approval-mozilla-beta', 'value': '?'},
        'loc': ('body', 'bug', 'attachment', 'flags', 0, 'type_id'),
        'msg': 'Field required',
        'type': 'missing'
    },
    {
        'input': {'id': 2302739, 'name': 'approval-mozilla-beta', 'value': '?'},
        'loc': ('body', 'bug', 'attachment', 'flags', 0, 'creation_date'),
        'msg': 'Field required',
        'type': 'missing'
    },
    {
        'input': {'id': 2302739, 'name': 'approval-mozilla-beta', 'value': '?'},
        'loc': ('body', 'bug', 'attachment', 'flags', 0, 'modification_date'),
        'msg': 'Field required',
        'type': 'missing'
    },
    {
        'input': {'id': 2302739, 'name': 'approval-mozilla-beta', 'value': '?'},
        'loc': ('body', 'bug', 'attachment', 'flags', 0, 'status'),
        'msg': 'Field required',
        'type': 'missing'
    },
    {
        'input': {'id': 2302739, 'name': 'approval-mozilla-beta', 'value': '?'},
        'loc': ('body', 'bug', 'attachment', 'flags', 0, 'setter'),
        'msg': 'Field required',
        'type': 'missing'
    }
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions