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

Organizations starting with "bookshelf" are unusable #694

Closed
stevendanna opened this issue Jan 15, 2016 · 2 comments
Closed

Organizations starting with "bookshelf" are unusable #694

stevendanna opened this issue Jan 15, 2016 · 2 comments

Comments

@stevendanna
Copy link
Contributor

If you try to create an organization named "bookshelf" or "bookshelf-test" or "bookshelfANYTHING", the organization will be largely unusable. For example, you won't be able to associate users to it:

root@api:/tmp# chef-server-ctl org-user-add bookshelf-test uploader -a
ERROR: Method Not Allowed
Response: <html><head><title>405 Method Not Allowed</title></head><body><h1>Method Not Allowed</h1>Method Not Allowed<p><hr><address>mochiweb+webmachine web server</address></body></html>

The root cause is a bad nginx rule that routes all the traffic to the bookshelf service rather than nginx:

    # bookshelf
    location ~ "/bookshelf/{0,1}.*$" {
      proxy_pass http://bookshelf;
    }
@ameir
Copy link
Contributor

ameir commented Feb 21, 2017

Per our discussion over the mailing list, this also impacts cookbooks whose names match the bookshelf or bucket name:
https://discourse.chef.io/t/issues-with-new-chef-server-and-s3-bookshelf/10462

It sounds like it'd also affect creating an organization that matches an S3 bucket name, when not using the built-in bookshelf.

For the S3 case, simply removing that block should fix it.

ameir added a commit to ameir/chef-server that referenced this issue Feb 21, 2017
Issue described in chef#694.

Signed-off-by: Ameir Abdeldayem <[email protected]>
@stevendanna
Copy link
Contributor Author

This is fixed and should be available in the next release.

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

No branches or pull requests

2 participants