Skip to content

User data is incorrectly erased in Keycloak Admin UI #22900

Closed

Description

@adrianog3

Before reporting an issue

Area

admin/ui

Describe the bug

In the Attributes tab present in the user edition page, when adding new attributes, going to the Details tab and clicking on the Save button, the newly added attributes are deleted from the server.

The same behavior happens following the reverse way.

Version

22.0.1

Expected behavior

  1. When editing the Attributes tab, the data from the Details tab must not be removed
  2. When editing the Details tab, the data from the Attributes tab must not be removed

Actual behavior

  1. When editing the Details tab, the data from the Attributes tab is removed
  2. When editing the Attributes tab, the data from the Details tab is removed

How to Reproduce?

  1. Open user edit page
  2. Add data in the Attributes tab
  3. Click on Save button
  4. Select Details tab
  5. Click on Save button
  6. Go to Attributes tab again and press F5
  7. You will notice that all attributes have been deleted from the server
  8. The same behavior happens when we edit the Details tab, go to the Attributes tab and click on Save button, the basic data of user (e.g. firstName) will be removed

Anything else?

I recorded a video reproducing the problem: https://drive.google.com/file/d/1suxD52w4ogDGkHrryATE0EKRHkPV6Opw/view?usp=sharing

Activity

  1. added
    kind/bug
    on Sep 1, 2023
  2. ghost added
    area/admin/ui
    on Sep 1, 2023
  3. kaustubh-rh commented on Sep 2, 2023

    @kaustubh-rh
    Contributor

    Hi @jonkoops @mposolda , the issue is reproducible , can I take this one ?

  4. jonkoops commented on Sep 2, 2023

    @jonkoops
    Contributor

    Sure, go right ahead and take this. I recently started making some change to this code under #22851, which may or may not fix this issue.

  5. jonkoops commented on Sep 2, 2023

    @jonkoops
    Contributor

    Before starting work on a fix, let me know if this issue is reproducible, so I can add the correct labels.

  6. kaustubh-rh commented on Sep 2, 2023

    @kaustubh-rh
    Contributor

    Hi @jonkoops , I just tested it , the PR #22851 fixes the issue as the issue is not reproducible.

  7. jonkoops commented on Sep 3, 2023

    @jonkoops
    Contributor

    Thanks for testing that @kaustubh-rh, I'll link this issue so it will be closed automatically when the PR is merged.

  8. added this to the 22.0.2 milestone on Sep 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area/admin/uikind/bug

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions