X Tutup
Skip to content

Check if groupname is empty or already exists while creating user#39532

Merged
micbar merged 1 commit intorelease-10.9.0from
enterprise/issues/4890
Nov 25, 2021
Merged

Check if groupname is empty or already exists while creating user#39532
micbar merged 1 commit intorelease-10.9.0from
enterprise/issues/4890

Conversation

@AlexAndBear
Copy link

@AlexAndBear AlexAndBear commented Nov 25, 2021

Description

Before this change, the admin could create groups with empty name or multiple
times with the same name.
This has been fixed with this change.

Related Issue

Motivation and Context

How Has This Been Tested?

  • test environment:
  • test case 1:
  • test case 2:
  • ...

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Database schema changes (next release will require increase of minor version instead of patch)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests only (no source changes)

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation ticket raised:
  • Changelog item, see TEMPLATE

@AlexAndBear AlexAndBear changed the base branch from master to release-10.9.0 November 25, 2021 12:23
@AlexAndBear AlexAndBear self-assigned this Nov 25, 2021
@owncloud owncloud deleted a comment from update-docs bot Nov 25, 2021
@AlexAndBear AlexAndBear marked this pull request as ready for review November 25, 2021 12:28
Copy link
Contributor

@phil-davis phil-davis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

works for me. I can't get "duplicate" groups. I can't add a group that is just spaces.

Note: I can add a group whose name starts with a space, like " aaa". But that is an existing long-time feature.

@AlexAndBear AlexAndBear force-pushed the enterprise/issues/4890 branch from 66c2d46 to d1311c8 Compare November 25, 2021 16:23
@AlexAndBear
Copy link
Author

Note: I can add a group whose name starts with a space, like " aaa". But that is an existing long-time feature.

This is unacceptable, thx for hint, fixed.

@sonarqubecloud
Copy link

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@AlexAndBear
Copy link
Author

@micbar unfortunately we don't have a spec file for that, can you merge this?

@micbar micbar merged commit 7ef8b89 into release-10.9.0 Nov 25, 2021
@delete-merged-branch delete-merged-branch bot deleted the enterprise/issues/4890 branch November 25, 2021 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

X Tutup