Files
frigate/frigate/api/defs/request/notice_body.py
T
Josh HawkinsandGitHub 0cb1e7bbfb send notice ids in the request body (#25142)
Notice ids went into the URL path, and nginx decodes the path, merges slashes, and resolves dot segments before proxying. A detector named zmq:tcp://host:5555 came through as tcp:/host, so its notice 404'd and couldn't be acknowledged or muted. The same happened to failed_login notices for usernames containing // or /../. Acknowledge, mute, and unhide now take the id in a JSON body at /notices/acknowledge, /notices/mute, and /notices/unhide.
2026-12-02 08:28:38 -07:00

6 lines
123 B
Python

from pydantic import BaseModel, Field
class NoticeIdBody(BaseModel):
id: str = Field(title="Notice or check row id")