I’m having trouble tracking down what’s wrong with https://github.com/edelight/chef-mongodb/issues/118 because the user is receiving a 400 response from a search query. It pissed me off, so I entered http://tickets.opscode.com/browse/CHEF-4228.
But I wonder what the ideal solution to debugging frustrating search queries is. Should we just return the fully interpolated string of the search query in the error? Should we perform some validation client-side? Should chef-server provide a secondary error message? Is the status quo sufficient?