On 4/25/2017 12:10 PM, bay chae wrote: > https://stackoverflow.com/questions/43618000/solr-standalone-basicauth-org-noggit-jsonparserparseexception > > <https://stackoverflow.com/questions/43618000/solr-standalone-basicauth-org-noggit-jsonparserparseexception> > > Hi I am following guides on security.json in > https://cwiki.apache.org/confluence/display/solr/Rule-Based+Authorization+Plugin > > <https://cwiki.apache.org/confluence/display/solr/Rule-Based+Authorization+Plugin>. > > But when solr starts up I am getting: > > Caused by: org.noggit.JSONParser$ParseException: Expected ',' or '}': > char=",position=312 BEFORE='ssions":[{"name":"security-edit", > "role":"admin"}] "' AFTER='user-role":{"solr":"admin"} }}
Looks like the JSON on that documentation page is incorrect, and has been wrong for a very long time. It doesn't validate when run through a JSON validator. If I add a comma at the end of line 10 (just before "user-role"), then it validates. I do not know whether this is the correct fix, but I think it probably is. Before I update the documentation, I would like somebody who's familiar with this file to tell me whether I've got the right fix. Thanks, Shawn