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

Do not return 400 for valid /users/USERNAME/_acl/PERM calls #1242

Merged
merged 2 commits into from
May 1, 2017

Conversation

stevendanna
Copy link
Contributor

Previously, if PUT was made to update a user ACL, the request would
return 400 if the request body contained a user. This was because the
code expected an OrgId to be set. Now, we assume that requests in the
global context (no org id), can only refer to users.

An alternative approach would be to extend the implementation of the
new scoping syntax so that it works everywhere.

A number of disabled pedant tests have been re-enabled.

Signed-off-by: Steven Danna steve@chef.io

@@ -238,6 +236,14 @@ extract_full_names(ScopedNames, UnscopedNameSet) ->
%% Abstract away difference in lookups between actors, clients, users and groups.
%%
%% Returns AuthzIds, missing names and names that are judged ambiguous
%%

%% The first two function heads are to account of this being called from a global context
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Typo: "account of this" -> "account for this being"

jaymalasinha pushed a commit to chef/chef-zero that referenced this pull request Apr 27, 2017
as the user acls are not currently supported here

Related to chef/chef-server#1242

Signed-off-by: Jaymala Sinha <jsinha@chef.io>
@jaymalasinha
Copy link
Contributor

@stevendanna I added this commit to disable user acl tests for chef-zero. Paired with @marcparadise on this

jaymalasinha pushed a commit to chef/chef-zero that referenced this pull request Apr 27, 2017
as the user acls are not currently supported here

Related to chef/chef-server#1242

Signed-off-by: Jaymala Sinha <jsinha@chef.io>
stevendanna and others added 2 commits May 1, 2017 15:02
Previously, if PUT was made to update a user ACL, the request would
return 400 if the request body contained a user. This was because the
code expected an OrgId to be set. Now, we assume that requests in the
global context (no org id), can only refer to users.

An alternative approach would be to extend the implementation of the
new scoping syntax so that it works everywhere.

A number of disabled pedant tests have been re-enabled.

Signed-off-by: Steven Danna <steve@chef.io>
Signed-off-by: Jaymala Sinha <jsinha@chef.io>
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.

3 participants