tpluscode
(Tomasz Pluskiewicz)
September 19, 2022, 11:24am
1
Due to misconfiguration of my code, I accidentally executed a SPARQL Update on a query endpoint.
In v7, I would receive and appropriate error:
Cannot execute update query on read endpoint
In the latest version, the error is different and quite confusing:
com.complexible.stardog.plan.eval.ExecutionException: Process ID clash
pavel
(Pavel Klinov)
September 19, 2022, 12:29pm
2
Thanks. That's definitely a bad error message. Any chance you can provide a minimal example (like with curl or something)? I couldn't immediately reproduce using a GET request to /{db}/query
.
Best,
Pavel
tpluscode
(Tomasz Pluskiewicz)
September 19, 2022, 1:25pm
3
Sure. Had to dig up the details. The app does a form-encoded POST
curl --request POST \
--url http://stardog/view-builder/query \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data 'update=PREFIX schema: <http://schema.org/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX hydra: <http://www.w3.org/ns/hydra/core#>
DROP SILENT GRAPH <https://view-builder.lndo.site/view/example3>; INSERT DATA {
GRAPH <https://view-builder.lndo.site/view/example3> {
<https://view-builder.lndo.site/view/example3> rdf:type <https://cube.link/view/View> . }
}'
pavel
(Pavel Klinov)
September 21, 2022, 7:23am
4
Thanks! Sorry, forgot to acknowledge that we have reproduced it. Will push a fix to the next release.
Best,
Pavel