mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-12-03 10:47:06 +03:00
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.
6 lines
123 B
Python
6 lines
123 B
Python
from pydantic import BaseModel, Field
|
|
|
|
|
|
class NoticeIdBody(BaseModel):
|
|
id: str = Field(title="Notice or check row id")
|