You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "Ian Dickinson (JIRA)" <ji...@apache.org> on 2014/07/03 12:30:25 UTC

[jira] [Updated] (JENA-737) Deleting a dataset has stopped working

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

Ian Dickinson updated JENA-737:
-------------------------------

    Description: 
Deleting a dataset using the HTTP DELETE verb isn't working (or I've got it wrong). I think the following sequence used to work in Fuseki2, but now is returning a 400 error:

{noformat}
$ curl http://localhost:3030/$/datasets/foo
{ 
  "ds.name" : "/foo" ,
  "ds.services" : [ 
      { 
        "srv.description" : "Graph Store Protocol (Read)" ,
        "srv.endpoints" : [ "get" ] ,
        "srv.type" : "GSP_R"
      } ,
      { 
        "srv.description" : "HTTP Quads" ,
        "srv.endpoints" : [ "" ] ,
        "srv.type" : "Quads"
      } ,
      { 
        "srv.description" : "Graph Store Protocol" ,
        "srv.endpoints" : [ "data" ] ,
        "srv.type" : "GSP"
      } ,
      { 
        "srv.description" : "SPARQL Update" ,
        "srv.endpoints" : [ "update" ] ,
        "srv.type" : "Update"
      } ,
      { 
        "srv.description" : "SPARQL Query" ,
        "srv.endpoints" : [ 
            "sparql" ,
            "query"
          ] ,
        "srv.type" : "Query"
      } ,
      { 
        "srv.description" : "File Upload" ,
        "srv.endpoints" : [ "upload" ] ,
        "srv.type" : "Upload"
      }
    ] ,
  "ds.state" : true
}

[~/workspace/jena-fuseki2] 
ian@ian-desktop $ curl -XDELETE -v http://localhost:3030/$/datasets/foo
* Hostname was NOT found in DNS cache
*   Trying 127.0.0.1...
* Connected to localhost (127.0.0.1) port 3030 (#0)
> DELETE /$/datasets/foo HTTP/1.1
> User-Agent: curl/7.35.0
> Host: localhost:3030
> Accept: */*
> 
< HTTP/1.1 400 Failed to find dataset for '/foo'
< Fuseki-Request-ID: 224
< Access-Control-Allow-Origin: *
* Server Fuseki (2.0.0.M2-SNAPSHOT) is not blacklisted
< Server: Fuseki (2.0.0.M2-SNAPSHOT)
< Content-Length: 0
< 
* Connection #0 to host localhost left intact
{noformat}

  was:
Deleting a dataset using the HTTP DELETE verb isn't working (or I've got it wrong). I think the following sequence used to work in Fuseki2, but now is returning a 400 error:

{code}
$ curl http://localhost:3030/$/datasets/foo
{ 
  "ds.name" : "/foo" ,
  "ds.services" : [ 
      { 
        "srv.description" : "Graph Store Protocol (Read)" ,
        "srv.endpoints" : [ "get" ] ,
        "srv.type" : "GSP_R"
      } ,
      { 
        "srv.description" : "HTTP Quads" ,
        "srv.endpoints" : [ "" ] ,
        "srv.type" : "Quads"
      } ,
      { 
        "srv.description" : "Graph Store Protocol" ,
        "srv.endpoints" : [ "data" ] ,
        "srv.type" : "GSP"
      } ,
      { 
        "srv.description" : "SPARQL Update" ,
        "srv.endpoints" : [ "update" ] ,
        "srv.type" : "Update"
      } ,
      { 
        "srv.description" : "SPARQL Query" ,
        "srv.endpoints" : [ 
            "sparql" ,
            "query"
          ] ,
        "srv.type" : "Query"
      } ,
      { 
        "srv.description" : "File Upload" ,
        "srv.endpoints" : [ "upload" ] ,
        "srv.type" : "Upload"
      }
    ] ,
  "ds.state" : true
}

[~/workspace/jena-fuseki2] 
ian@ian-desktop $ curl -XDELETE -v http://localhost:3030/$/datasets/foo
* Hostname was NOT found in DNS cache
*   Trying 127.0.0.1...
* Connected to localhost (127.0.0.1) port 3030 (#0)
> DELETE /$/datasets/foo HTTP/1.1
> User-Agent: curl/7.35.0
> Host: localhost:3030
> Accept: */*
> 
< HTTP/1.1 400 Failed to find dataset for '/foo'
< Fuseki-Request-ID: 224
< Access-Control-Allow-Origin: *
* Server Fuseki (2.0.0.M2-SNAPSHOT) is not blacklisted
< Server: Fuseki (2.0.0.M2-SNAPSHOT)
< Content-Length: 0
< 
* Connection #0 to host localhost left intact
{code}


> Deleting a dataset has stopped working
> --------------------------------------
>
>                 Key: JENA-737
>                 URL: https://issues.apache.org/jira/browse/JENA-737
>             Project: Apache Jena
>          Issue Type: Bug
>          Components: Fuseki
>            Reporter: Ian Dickinson
>            Priority: Minor
>              Labels: fuseki2
>
> Deleting a dataset using the HTTP DELETE verb isn't working (or I've got it wrong). I think the following sequence used to work in Fuseki2, but now is returning a 400 error:
> {noformat}
> $ curl http://localhost:3030/$/datasets/foo
> { 
>   "ds.name" : "/foo" ,
>   "ds.services" : [ 
>       { 
>         "srv.description" : "Graph Store Protocol (Read)" ,
>         "srv.endpoints" : [ "get" ] ,
>         "srv.type" : "GSP_R"
>       } ,
>       { 
>         "srv.description" : "HTTP Quads" ,
>         "srv.endpoints" : [ "" ] ,
>         "srv.type" : "Quads"
>       } ,
>       { 
>         "srv.description" : "Graph Store Protocol" ,
>         "srv.endpoints" : [ "data" ] ,
>         "srv.type" : "GSP"
>       } ,
>       { 
>         "srv.description" : "SPARQL Update" ,
>         "srv.endpoints" : [ "update" ] ,
>         "srv.type" : "Update"
>       } ,
>       { 
>         "srv.description" : "SPARQL Query" ,
>         "srv.endpoints" : [ 
>             "sparql" ,
>             "query"
>           ] ,
>         "srv.type" : "Query"
>       } ,
>       { 
>         "srv.description" : "File Upload" ,
>         "srv.endpoints" : [ "upload" ] ,
>         "srv.type" : "Upload"
>       }
>     ] ,
>   "ds.state" : true
> }
> [~/workspace/jena-fuseki2] 
> ian@ian-desktop $ curl -XDELETE -v http://localhost:3030/$/datasets/foo
> * Hostname was NOT found in DNS cache
> *   Trying 127.0.0.1...
> * Connected to localhost (127.0.0.1) port 3030 (#0)
> > DELETE /$/datasets/foo HTTP/1.1
> > User-Agent: curl/7.35.0
> > Host: localhost:3030
> > Accept: */*
> > 
> < HTTP/1.1 400 Failed to find dataset for '/foo'
> < Fuseki-Request-ID: 224
> < Access-Control-Allow-Origin: *
> * Server Fuseki (2.0.0.M2-SNAPSHOT) is not blacklisted
> < Server: Fuseki (2.0.0.M2-SNAPSHOT)
> < Content-Length: 0
> < 
> * Connection #0 to host localhost left intact
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.2#6252)