Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deleting a DatabaseUser results into a validation failed on password #37

Closed
mbardelmeijer opened this issue Jan 5, 2023 · 1 comment · Fixed by #38
Closed

Deleting a DatabaseUser results into a validation failed on password #37

mbardelmeijer opened this issue Jan 5, 2023 · 1 comment · Fixed by #38
Assignees

Comments

@mbardelmeijer
Copy link
Contributor

Goal

I'm trying to delete a database user object. I'm getting the following exception when trying to delete it. It seems that the null factor for the database user password field isn't handled correctly.

Additional information

Cyberfusion\ClusterApi\Exceptions\ValidationException: The validation failed: `length_max: 255 failed on NULL, pattern: ^[ -~]+$ failed on NULL` in vendor/cyberfusion/cluster-api-client/src/Exceptions/ValidationException.php:11

#0 /vendor/cyberfusion/cluster-api-client/src/Support/Validator.php(210): Cyberfusion\ClusterApi\Exceptions\ValidationException::validationFailed()
#1 /vendor/cyberfusion/cluster-api-client/src/Models/DatabaseUser.php(68): Cyberfusion\ClusterApi\Support\Validator->validate()
#2 /vendor/cyberfusion/cluster-api-client/src/Models/DatabaseUser.php(143): Cyberfusion\ClusterApi\Models\DatabaseUser->setPassword()
#3 /vendor/cyberfusion/cluster-api-client/src/Endpoints/DatabaseUsers.php(64): Cyberfusion\ClusterApi\Models\DatabaseUser->fromArray()
#4 /vendor/cyberfusion/cluster-api-client/src/Endpoints/DatabaseUsers.php(166): Cyberfusion\ClusterApi\Endpoints\DatabaseUsers->get()

@dvdheiden
Copy link
Collaborator

dvdheiden commented Jan 5, 2023

Thank you for reporting this issue. I really need to make some time to solve: #7 but will fix this case ASAP.

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 a pull request may close this issue.

2 participants