afs commented on issue #2505:
URL: https://github.com/apache/jena/issues/2505#issuecomment-2142461684

   Using curl and the current latest code base
   and in shiro.ini - add
   
   ```
   /$/stats   = anon
   ```
   
   * Fuseki webapp combined jar +UI (i.e. not in tomcat)
   * `--contextPath=/ABC`
   * There is a dataset at "ds" created via the UI.
   
   `curl 'http://localhost:3030/ABC/ds'` => 200
   `curl 'http://localhost:3030/ABC/$/stats'` => 200
   `curl 'http://localhost:3030/ABC/$/stats/ds'` => 200
   `curl 'http://localhost:3030/ABC/$/stats/other'` => 404
   
   and with remote IP address:
   
   `curl 'http://192.168.1.13:3030/ABC/ds'` => 200
   `curl 'http://192.168.1.13:3030/ABC/$/stats'` => 200
   `curl 'http://192.168.1.13:3030/ABC/$/stats/ds'` => 403
   `curl 'http://192.168.1.13:3030/ABC/$/stats/other'` => 403
   
   If shiro.ini changes to: (NB `**` matches zero paths)
   
   ```
   /$/stats/**   = anon
   ```
   
   `curl 'http://192.168.1.13:3030/ABC/$/stats'` => 200
   `curl 'http://192.168.1.13:3030/ABC/$/stats/ds'` => 200
   `curl 'http://192.168.1.13:3030/ABC/$/stats/other'` => 404
   
   Notes:
   
   * `--contextPath=ABC` (no slash) messes things up. It's a bug.
   * The UI works without rebuilding.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to