[
https://issues.apache.org/jira/browse/JENA-2055?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17288091#comment-17288091
]
info parlepeuple commented on JENA-2055:
----------------------------------------
Thanks for your comment!
I am new to Jena... I didn't know exactly where to put the catch. ActionExecLib
looks like the perfect place.
Please find attached a new patch that reflects your suggestion. I tested it
with my setup and it works as expected. I even get the detail exception message
;)
Looking forward to have this in next release.
> handle properly the denied access generated by jena-permission security
> evaluator
> ---------------------------------------------------------------------------------
>
> Key: JENA-2055
> URL: https://issues.apache.org/jira/browse/JENA-2055
> Project: Apache Jena
> Issue Type: Bug
> Components: Fuseki
> Affects Versions: Jena 3.17.0
> Environment: jena-fuseki 3.17.0
> openjdk version "1.8.0_275"
> Reporter: info parlepeuple
> Priority: Major
> Labels: fuseki2, permission
> Attachments:
> 0001-handle-properly-the-denied-access-generated-by-jena-.patch,
> 0001-handle-properly-the-denied-access-generated-by-jena.patch
>
>
> When the dataset is secured with [jena
> permission|https://jena.apache.org/documentation/permissions/] , and some
> access is denied, an exception is thrown from the SecuredGraph.
> This exception is not catched in SPARQLQueryProcessor, which results in a 500
> error returned to the HTTP client.
> exception OperationDeniedException should return a 403, not a 500.
>
> attached is the patch !
>
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)