Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
forbidden error from knife supermarket unshare is now misleading #8056
With artifact yanking now able to be restricted in a Supermarket to admins only, this error message is misleading to cookbook owners who attempt to remove a cookbook or cookbook version. The Supermarket v3.1.96+ will provide an error message with the forbidden response that will be more helpful to display.
All of 'em
All of these, too.
Replication Case & Client Output
With a Supermarket configured to prevent owners from removing artifacts (the public Supermarket is now configured this way, or use a test Supermarket install):
@vagifzeynalov Can you explain more about your particular problem? The error condition as described in this issue is a Supermarket instance configured to disallow artifact removal results in an error about needing to be a maintainer instead of an error about artifact removal being disallowed. The fix for this issue is to correct the error message; users—even cookbook owners—will not be able to remove the artifact.
@robbkidd it seems like I didn't read the original description of this issue carefully. I was thinking this conversation about the problem I couldn't remove my cookbook from Supermarket. But as it turned out, it was expected behavior, and only the message itself was incorrect...