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

Allow Service XML Parsing error to cancel the query on a per query basis

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • ARQ 2.9.0
    • ARQ 2.9.1
    • ARQ
    • All

    Description

      Currently an XML parsing error may occur on a hasNext() call on a Sparql service query. The result is that the entire query (not just the service call) fails.

      The goal of this improvement is to capture the XML parsing error and return false for the hasNext(). The result being that data errors will be silently ignored. This should be done on a per endpoint basis. Perhaps as an onParseErrorCancel flag.

      I think there is an interplay of several flags in this request:

      1) SILENT service parameter. If silent is true should this also be true by default? (I think not, but perhaps a system setting to make that the case)
      2) cancelAllowDrain. If the error occurs should the cancel flag be raised? (I think not, but again perhaps a per service call flag to enable this)
      3) JENA-93 discusses changing cancelAllowDrain to be a per endpoint setting. If that is the case it may apply here as well.

      Attachments

        1. JENA-236-1.txt
          2 kB
          Claude Warren

        Activity

          People

            rvesse Rob Vesse
            claude Claude Warren
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: