Skip to content

x-hasura- headers are not properly send in session_variables in event triggers with special characters, such as [æ, ø, å] #10734

Open
@Hsoratsa

Description

@Hsoratsa

Version Information

Server Version:
CLI Version (for CLI related issue):
v2.48.1

Environment

OSS

What is the current behaviour?

Headers are not properly send in event triggers. From jwt token its working correctly.
This is the example of how it was send in session_variables
"session_variables": {
"x-hasura-bruker-navn": "Test��",
"x-hasura-role": "admin"
},

What is the expected behaviour?

it should send correctly as:
"session_variables": {
"x-hasura-bruker-navn": "Teståå",
"x-hasura-role": "admin"
},

How to reproduce the issue?

  1. Add table, add event trigger on that table
  2. Set needed header in hasura as:Image
  3. Try to mutate any data in table.
  4. Check event trigger, session_variables are broken

Screenshots or Screencast

Image Image

Please provide any traces or logs that could help here.

Any possible solutions/workarounds you're aware of?

Keywords

event_trigger, session_variables, special, characters, headers, x-hasura

Metadata

Metadata

Assignees

No one assigned

    Labels

    k/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions