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

HMS-2694 fix: exclude disabled domains from host-conf #18

Merged

Conversation

frasertweedale
Copy link
Contributor

@frasertweedale frasertweedale commented Oct 11, 2023

A domain with auto_enrollment_enabled = FALSE should not be
returned in a host-conf response. Iterate the returned records (no
longer limited to 2) and exclude disabled domains.

Also improve the HTTP response status for some expected ways
host-conf can fail.

  • No matching domains (500 -> 404)
  • Multiple matching domains (500 -> 409)

Also remove a seemingly obsolete comment.

@frasertweedale frasertweedale requested a review from tiran October 11, 2023 06:29
A domain with `auto_enrollment_enabled = FALSE` should not be
returned in a host-conf response.  Iterate the returned records (no
longer limited to 2) and exclude disabled domains.

Also improve the HTTP response status for some expected ways
host-conf can fail.

- No matching domains (500 -> 404)
- Multiple matching domains (500 -> 409)

Also remove a seemingly obsolete comment.
@frasertweedale frasertweedale marked this pull request as ready for review October 11, 2023 12:27
@frasertweedale frasertweedale requested a review from tiran October 11, 2023 12:27
@frasertweedale frasertweedale force-pushed the hostconf-exclude-disabled-domains branch from 4f28d6d to cf59f88 Compare October 11, 2023 12:28
@tiran tiran merged commit 3577fd4 into podengo-project:main Oct 17, 2023
1 check passed
@frasertweedale frasertweedale deleted the hostconf-exclude-disabled-domains branch October 17, 2023 06:26
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.

2 participants