This issue has been created
There are 3 updates.
 
 
XWiki Platform / cid:jira-generated-image-avatar-5d0c1cc8-6a72-4a42-a35e-6c88aa777be5 XWIKI-24114 Open

Username with forbidden symbols notification frequency setting reverts to default after saving

 
View issue   ·   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-5c442525-321f-408f-853a-f92e954521e9 Nikita Petrenko created this issue on 11/Mar/26 14:28
 
Summary: Username with forbidden symbols notification frequency setting reverts to default after saving
Issue Type: cid:jira-generated-image-avatar-5d0c1cc8-6a72-4a42-a35e-6c88aa777be5 Bug
Affects Versions: 17.10.4
Assignee: Unassigned
Components: Notifications
Created: 11/Mar/26 14:28
Environment: Demo XWiki 17.10.4 Jetty/HSQLDB, Ubuntu 24.04.4
Priority: cid:jira-generated-image-static-major-554207ea-af42-436e-8439-6fac9405b056 Major
Reporter: Nikita Petrenko
Description:

Prerequisites

Created programmatically user with username that includes not allowed symbols. For this you can use snippet

I used fullname XWiki.test.-.user.com, and in XWiki User Directory this is listed with username com

Steps to reproduce

  1. Log in as an administrator.
  2. Open the profile page of a created user.
  3. Change any notification preference (for example, set Email frequency to Weekly).
  4. Click Save and observe the success message “Saved”.
  5. Refresh the user profile page.

Actual Result

The Email frequency value is reverted to the default setting (Daily) after the page refresh.

Expected Result

The Email frequency should remain set to the saved value (Weekly) after refreshing the page.

 
 

3 updates

 
cid:jira-generated-image-avatar-5c442525-321f-408f-853a-f92e954521e9 Changes by Nikita Petrenko on 11/Mar/26 14:30
 
Description: h3.Prerequisites

Created programmatically user with username that includes not allowed symbols. For this you can use [snippet|https://snippets.xwiki.org/xwiki/bin/view/Extension/Create%20User/]

I used fullname {{
{} XWiki.test.-.user.com { }} } , and in XWiki User Directory this is listed with username {{com}}

h3.Steps to reproduce

# Log in as an administrator.
# Open the profile page of a created user.
# Change any notification preference (for example, set Email frequency to Weekly).
#
Click Save and observe Observe the success message “Saved”.   [^changed email frequency.png]
# Refresh the user profile page.

h3.Actual Result

The Email frequency value is reverted to the default setting (Daily) after the page refresh.
  [^preferences after refrshing user profile page.png]

h3.Expected Result

The Email frequency should remain set to the saved value (Weekly) after refreshing the page.
Attachment: preferences after refrshing user profile page.png
Attachment: changed email frequency.png