Skip to content

[Clients] Jinja expressions relying on multiple attributes not rendered properly when one of them is removed #1

@Boris-INSA

Description

@Boris-INSA

This bug only affects clients that contain Jinja expressions that rely on multiple attributes from the server.

Example client configuration whose maildisplayname attribute is composed based on the values of displayname and primaryaffiliation:

hermes-client:
  # (...)
  datamodel:
    Users:
      # (...)
      attrsmapping:
        # (...)
        maildisplayname: "{{ (displayname ~ ' (STUDENT)') if (primaryaffiliation|default('')) == 'student' else displayname }}"
        # (...)

This bug occurs only in modified events: maildisplaynamewill be generated correctly unless primaryaffiliation is deleted, in which case it will be deleted as well instead of just having the value of displayname.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions