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

refactor: authz-http return body to reject pub/sub #8377

Merged
merged 2 commits into from Jul 1, 2022

Conversation

HJianBo
Copy link
Member

@HJianBo HJianBo commented Jul 1, 2022

No description provided.

@HJianBo HJianBo requested a review from a team July 1, 2022 08:22
apps/emqx_authz/src/emqx_authz_utils.erl Outdated Show resolved Hide resolved
@HJianBo HJianBo requested review from JimMoen and a team July 1, 2022 08:46
@HJianBo HJianBo merged commit 371d245 into emqx:master Jul 1, 2022
@HJianBo HJianBo deleted the refactor-http-authz-resp branch July 1, 2022 11:05
@@ -130,6 +132,25 @@ render_sql_params(ParamList, Values) ->
#{return => rawlist, var_trans => fun handle_sql_var/2}
).

-spec parse_http_resp_body(binary(), binary()) -> allow | deny | ignore | error.
parse_http_resp_body(<<"application/x-www-form-urlencoded", _/binary>>, Body) ->
Copy link
Member

Choose a reason for hiding this comment

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

This breaks backward compatibility?
We should also check if the body is empty, then fallback to the old behavior?
5.0.0 and 4.x

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.

None yet

4 participants