You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "Alexander Dutton (Updated) (JIRA)" <ji...@apache.org> on 2011/11/10 15:39:51 UTC

[jira] [Updated] (JENA-158) QueryCancelledException not being caught in Fuseki

     [ https://issues.apache.org/jira/browse/JENA-158?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexander Dutton updated JENA-158:
----------------------------------

    Attachment: jena-158.diff

Improves Fuseki to return a 503 with a friendlier error message on timeout.

NB. My CCLA is pending sign-off from the PTB at OUCS. The license grant is conditional on my CCLA getting the go-ahead.
                
> QueryCancelledException not being caught in Fuseki
> --------------------------------------------------
>
>                 Key: JENA-158
>                 URL: https://issues.apache.org/jira/browse/JENA-158
>             Project: Jena
>          Issue Type: Improvement
>          Components: Fuseki
>            Reporter: Alexander Dutton
>            Priority: Minor
>         Attachments: jena-158.diff
>
>
> [This is a reformulation of http://mail-archives.apache.org/mod_mbox/incubator-jena-dev/201111.mbox/%3C4EBAA0A3.8%40oucs.ox.ac.uk%3E and following messages]
> When a query times out the client currently receives the following, which doesn't explain much:
> > Error 500: Server Error
> This is the result of a QueryCancelledException being caught at line 107 of SPARQL_ServletBase, which has the comment "This should not happen"
> It'd be good if this were explicitly caught and a more user-friendly error message provided.
> I don't know what HTTP status code should be provided; the SPARQL spec says 500, but that upsets me (and Hugh Glaser)¹. Andy points out that it should be a 5xx status code². I've started a thread on ietf-http-wg asking for something along the lines of a "Request Too Onerous" status code.³
> ¹ http://lists.w3.org/Archives/Public/public-lod/2011Apr/0259.html
> ² http://lists.w3.org/Archives/Public/public-lod/2011Apr/0268.html
> ³ http://lists.w3.org/Archives/Public/ietf-http-wg/2011OctDec/0188.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira