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

Fix: DNS cluster expected return code instead of string #3706

Merged
merged 6 commits into from
Jun 21, 2023

Conversation

jaapmarcus
Copy link
Member

DNS cluster syncing / set up requires always an numeric code in return.

return $answer

In the past by default the text was shown if an error code was generated if the users tries to connect with an incorrect password/key or ip is not allowed

@jaapmarcus jaapmarcus marked this pull request as draft June 21, 2023 09:40
@jaapmarcus jaapmarcus marked this pull request as ready for review June 21, 2023 12:31
@jaapmarcus
Copy link
Member Author

Closes: #3707

@jaapmarcus jaapmarcus linked an issue Jun 21, 2023 that may be closed by this pull request
@@ -50,6 +51,7 @@ function exit_code_to_http_code(int $exit_code, int $default = 400): int {
case E_UNSUSPENDED:
case E_FORBIDEN:
case E_FORBIDDEN:
case E_API_DISABLED:
return 401;
Copy link
Member

Choose a reason for hiding this comment

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

alignment of return should be checked.

Copy link
Member Author

Choose a reason for hiding this comment

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

Screenshot 2023-06-21 at 14 46 46

Looks fine and consistent to me...

@ScIT-Raphael ScIT-Raphael merged commit 118158a into main Jun 21, 2023
6 checks passed
@ScIT-Raphael ScIT-Raphael deleted the fix/improve-api branch June 21, 2023 12:50
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.

[Bug] Unable to sync text records containig "
2 participants