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

Serialization of update requests isn't legal syntax

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Jena 2.11.0
    • Component/s: ARQ
    • Labels:
      None

      Description

      Running the following code:
      String updateString = "INSERT {} WHERE

      { ?x ?p [ ?a ?b ] }

      ";
      UpdateRequest update = UpdateFactory.create(updateString);

      UpdateProcessor up = UpdateExecutionFactory.createRemote(update,
      "http://localhost:3131/ds/update");
      up.execute();

      Causes the Fuseki server to throw this error: 400 Encountered " "?" "? ""
      This is caused by the client generating incorrect SPARQL with an extra ? (as viewed from the Fuseki log): INSERT { } WHERE

      { ?x ?p ??0 . ??0 ?a ?b }

      This bug may be similar to JENA-378.

        Attachments

          Activity

            People

            • Assignee:
              andy Andy Seaborne
              Reporter:
              ezs Elli Schwarz
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: