【发布时间】:2013-05-31 17:35:34
【问题描述】:
当尝试使用 cleandb 扩展名(对于 neo4j 1.8)清除 neo4j (1.8.2) 时,它会失败:
[path] ? curl -v -X DELETE 'http://localhost:7475/db/cleandb/12sE$lkj3%'
* About to connect() to localhost port 7475 (#0)
* Trying 127.0.0.1...
* Connected to localhost (127.0.0.1) port 7475 (#0)
> DELETE /db/cleandb/12sE$lkj3% HTTP/1.1
> User-Agent: curl/7.29.0
> Host: localhost:7475
> Accept: */*
>
< HTTP/1.1 500 Internal Server Error
< Content-Length: 0
< Server: Jetty(6.1.25)
<
* Connection #0 to host localhost left intact
显然,我不仅得到 500 错误代码,而且数据库也没有被清除。
当然,插件的访问URL和“secret-key”设置为curl请求中使用的:
org.neo4j.server.thirdparty_jaxrs_classes=org.neo4j.server.extension.test.delete=/db/cleandb
org.neo4j.server.thirdparty.delete.key=12sE$lkj3%
我会方便地添加 cleandb 标签,但我缺少 1500 声望。
有什么想法吗?提前致谢!
编辑 (我使用 cleandb 的原因是在 neo4django 中设置单元测试)。 /编辑
【问题讨论】:
标签: neo4j neo4django