[ 
https://issues.apache.org/jira/browse/JENA-1321?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15967651#comment-15967651
 ] 

ASF GitHub Bot commented on JENA-1321:
--------------------------------------

GitHub user rmorrise opened a pull request:

    https://github.com/apache/jena/pull/240

    JENA-1321: Improved error handling so response body is not masked.

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/rmorrise/jena master

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/jena/pull/240.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #240
    
----
commit a717486d7728dd1b9636838f6bab3731264e2afe
Author: rmorrise <[email protected]>
Date:   2017-04-13T14:29:37Z

    JENA-1321: Improved error handling so response body is not masked.

----


> Exception rewrapping in HttpQuery masks error response from the server
> ----------------------------------------------------------------------
>
>                 Key: JENA-1321
>                 URL: https://issues.apache.org/jira/browse/JENA-1321
>             Project: Apache Jena
>          Issue Type: Improvement
>          Components: ARQ
>    Affects Versions: Jena 3.2.0
>         Environment: Client: Grails 3.2.8, Windows 7
> Server: Oracle Joseki server on Tomcat 8 (RHEL)
>            Reporter: Russell Morrisey
>   Original Estimate: 20m
>  Remaining Estimate: 20m
>
> When the SPARQL server responds to a request with an error (e.g. 500 error), 
> the Tomcat error response body provides detailed information about what went 
> wrong. This response information is included in the underyling HttpException, 
> but is being masked by faulty error handling code in 
> org.apache.jena.sparql.engine.http.HttpQuery.
> The rewrap() method should specify httpEx as the root cause of the exception, 
> not httpEx.getCause(). This will ensure that the response body information is 
> preserved.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to