Uploaded image for project: 'Apache Jena'
  1. Apache Jena
  2. JENA-1321

Exception rewrapping in HttpQuery masks error response from the server

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Jena 3.2.0
    • Jena 3.3.0
    • ARQ
    • None
    • Client: Grails 3.2.8, Windows 7
      Server: Oracle Joseki server on Tomcat 8 (RHEL)

    Description

      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.

      Attachments

        Activity

          People

            ajs6f Adam Soroka
            rmorrise Russell Morrisey
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 20m
                20m
                Remaining:
                Remaining Estimate - 20m
                20m
                Logged:
                Time Spent - Not Specified
                Not Specified