long role names fail to sync

Created on 12 July 2024, 4 months ago

Problem/Motivation

Discourse user group names can only be 20 characters long, but Drupal role names can be longer.

If you create a Drupal role with a machine name longer than 20 characters, it won't sync.

Steps to reproduce

Create a Drupal role with a machine name longer than 20 characters.

Assign that role to a user.

Attempt to sync with Discourse.

Proposed resolution

Ideally, check all role machine names to see if truncated versions would conflict, and if not, truncate the long machine names before creating the synced version in Discourse.

Otherwise, at least provide error messages in the Drupal logs and on the Discourse SSO config pages (and maybe on the Status Report).

Thanks for this great module!

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States kristi wachter

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024