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

Man page errata #14791

Open
2 tasks done
PenelopeFudd opened this issue Oct 22, 2024 · 1 comment
Open
2 tasks done

Man page errata #14791

PenelopeFudd opened this issue Oct 22, 2024 · 1 comment

Comments

@PenelopeFudd
Copy link

  • Program: dnsdist
  • Issue type: Bug report

Short description

The documentation for HTTPStatusAction() lists the options for ERCodeAction(), the preceding function on the page.

Environment

  • Operating system: n/a
  • Software version: n/a
  • Software source: n/a

Steps to reproduce

  1. n/a

Expected behaviour

n/a

Actual behaviour

n/a

Other information

n/a

@rgacogne rgacogne added this to the dnsdist-2.0.0 milestone Oct 22, 2024
@rgacogne rgacogne self-assigned this Oct 22, 2024
@rgacogne
Copy link
Member

This seems a bit trickier than I initially expected. The documentation is not wrong: the action actually takes the documented values and tries to apply to them to DNS payload. But it does not really make sense because 1/ it applies it to the query payload, while the HTTP response body is not stored there, and 2/ because even for a 200 response where we can expect the response to be a DNS payload IF the content-type is set to application/dns-message, I don't see why the caller would want this since they are already supplying the payload, and thus can set the flags they want anyway.
So I think the best course of action would be to stop doing anything with these options and deprecate them in the documentation. We cannot remove them from the code right away, however, because it would potentially break existing configurations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants