goauthentik / goauthentik/authentik

Longer attribute value confusingly splits it into separate lines in editor-UI, but should be one single line

Open
#19,297 0 comments 0 reactions 1 assignee Claimed by @GirlBossRush View on GitHub
bug bug/confirmed
Dominant language
Python
Stars
25.6k
Forks
2k
Avg merge
1d 4h
Merged PRs (30d)
634

Description

### Describe the bug

When having a longer attribute with spaces, it looks like the UI-sided parsing does add new lines when it shouldn't:
Image

As seen above: The `distinguishedName` is shown lines 12-13, but it should only be one single line.

Checking via API, it seems to be correct. Assuming it is a UI-bug only:
```text
"distinguishedName": "CN=SA SQL ADFS Replication,OU=Service Accounts,OU=Users,OU=NETKERN,DC=netkern,DC=local"# curl -sLk 'https://localhost/api/v3/core/users/?type=internal' -H 'Accept: application/json' -H "Authorization: Bearer $TOKEN" | jq -r '.results[]' | less -i
{
"pk": 43,
"username": "sa-sql-adfs-repl",
...
"attributes": {
...
"distinguishedName": "CN=SA SQL ADFS Replication,OU=Service Accounts,OU=Users,OU=FOLDER,DC=DOMAIN,DC=local"
```

When messing around in the UI, it "behaves" rather odd and misleading. When trying to move it to same line in the UI-editor, it results in wrong line in API: (too much spaces)
```text
"distinguishedName": "CN=SA SQL ADFS Replication,OU=Service Accounts,OU=Users,OU=FOLDER,DC=DOMAIN,DC=local"
```

### How to reproduce

1. Go to Users
2. Edit any user
3. Add any attribute which is of longer size - e.g.:
```text
test: "CN=SA SQL ADFS Replication,OU=Service Accounts,OU=Users,OU=FOLDER,DC=DOMAIN,DC=local"
```
4. Save and edit user again

### Expected behavior

Being on same line, not truncated. It tends to be confusing.

### Screenshots

_No response_

### Additional context

_No response_

### Deployment Method

Docker

### Version

2025.10.3

### Relevant log output

```shell

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.