This problem brought to you courtesy of the IRC channel.

On this page of the reference guide:

https://lucene.apache.org/solr/guide/6_6/rule-based-authorization-plugin.html

There is this curl command:

curl --user solr:SolrRocks -H 'Content-type:application/json' -d '{
  "set-permission": {"name": "update, "role":"dev"},
  "set-permission": {"name": "read, "role":"guest"},
}' http://localhost:8983/solr/admin/authorization

This command doesn't work.  Solr complains about the JSON, and pasting
the JSON into a validator web page, I have confirmed that it fails
validation.

I can't figure out how this JSON *should* be formatted, or I would just
fix the documentation.  Hopefully somebody knows what should go here.

Thanks,
Shawn

Reply via email to