Skip to content

UTF-8 Actions Header #737

Closed
Closed
@cfouche3005

Description

@cfouche3005

🐞 Describe the bug

Ntfy server seem to block every POST request with an UTF-8 character ( à ) inside the Actions Header (for the label) but when I had an an UTF-8 character inside the Title Header or the body, it is processed normally and give the correct output or an unknow character due to bad UTF-8 processing (not a bug, I think)

💻 Components impacted

Ntfy Server

💡 Screenshots and/or logs

ntfy server log:

2023/05/20 18:02:55 DEBUG Connection closed with HTTP 400 (ntfy error 40018) (error=invalid request: actions invalid; invalid utf-8 string, error_code=40018, http_method=POST, http_path=/Netbird, http_status=400, tag=http, topic=Netbird, topic_last_access=2023-05-20T18:02:44.21Z, topic_subscribers=1, user_id=u_Iyy0BJTPUR, user_name=cfouche, visitor_auth_limiter_limit=0.016666666666666666, visitor_auth_limiter_tokens=30, visitor_emails=0, visitor_emails_limit=24, visitor_emails_remaining=24, visitor_id=ip:REDACTED, visitor_ip=REDACTED, visitor_messages=0, visitor_messages_limit=17280, visitor_messages_remaining=17280, visitor_request_limiter_limit=0.2, visitor_request_limiter_tokens=59.000016648, visitor_seen=2023-05-20T18:02:55.92Z)

image

Actions Header : http, "Mettre à jour", "https://REDACTED/webhook/netbird-update", method=GET, headers.AUTH=REDACTED

🔮 Additional context

I can't use the JSON method because I need the Icon parameter and it isn't supported

Metadata

Metadata

Assignees

No one assigned

    Labels

    🪲 bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions