使用密码投影的过程中不允许写入或令牌创建操作
Write or token create operations are not allowed in procedure using cypher projection
当使用评估的内部查询 (cypher projection) 调用将创建节点或边缘的过程时,将向管理员用户抛出禁止错误。可以 运行 过程外的查询。
可能是配置问题?
我正在尝试 运行 使用 GraphAware 的时间树过程和 Neo4j 的 LabelPropagation 进行查询。但是我已经能够使用更简单的查询来获得禁止的错误。我正在使用 Neo4j 桌面。我试过给管理员所有可能的角色。
例如
call apoc.cypher.run("create (n:Test) return n",{}) yield value return *
或者另一个例子:
CALL algo.labelPropagation.stream(
'CALL ga.timetree.events.range({start: 1480896000000, end: 1520294400000}) YIELD node RETURN id(node) AS id',
'MATCH (c1:Case)-[r:NARROWER_THAN]->(c2:Case) RETURN id(c1) AS source, id(c2) as target, r.score AS weight',
{ graph:'cypher'}
)YIELD nodeId, label
with label as lpa, collect(nodeId) as ids, count(nodeId) as c
where c > 2
return lpa, c, ids
order by c desc
这些是第一个和第二个示例的错误:
Neo.ClientError.Security.Forbidden: Token create operations are not allowed for user 'neo4j' with roles [admin,architect,editor,publisher,reader] restricted to READ.
Neo.ClientError.Security.Forbidden: Write operations are not allowed for user 'neo4j' with roles [admin,architect,editor,publisher,reader] restricted to READ.
过程apoc.cypher.run
只能执行读取查询。 Creating/updating/deleting 个节点不可用。
当使用评估的内部查询 (cypher projection) 调用将创建节点或边缘的过程时,将向管理员用户抛出禁止错误。可以 运行 过程外的查询。
可能是配置问题?
我正在尝试 运行 使用 GraphAware 的时间树过程和 Neo4j 的 LabelPropagation 进行查询。但是我已经能够使用更简单的查询来获得禁止的错误。我正在使用 Neo4j 桌面。我试过给管理员所有可能的角色。
例如
call apoc.cypher.run("create (n:Test) return n",{}) yield value return *
或者另一个例子:
CALL algo.labelPropagation.stream(
'CALL ga.timetree.events.range({start: 1480896000000, end: 1520294400000}) YIELD node RETURN id(node) AS id',
'MATCH (c1:Case)-[r:NARROWER_THAN]->(c2:Case) RETURN id(c1) AS source, id(c2) as target, r.score AS weight',
{ graph:'cypher'}
)YIELD nodeId, label
with label as lpa, collect(nodeId) as ids, count(nodeId) as c
where c > 2
return lpa, c, ids
order by c desc
这些是第一个和第二个示例的错误:
Neo.ClientError.Security.Forbidden: Token create operations are not allowed for user 'neo4j' with roles [admin,architect,editor,publisher,reader] restricted to READ.
Neo.ClientError.Security.Forbidden: Write operations are not allowed for user 'neo4j' with roles [admin,architect,editor,publisher,reader] restricted to READ.
过程apoc.cypher.run
只能执行读取查询。 Creating/updating/deleting 个节点不可用。