neo4j-contrib / neo4j-apoc-procedures

Awesome Procedures On Cypher for Neo4j - codenamed "apoc"                     If you like it, please ★ above ⇧            
https://neo4j.com/labs/apoc
Apache License 2.0
1.71k stars 494 forks source link

apoc.load.json not restricted to dbms.directories.import #706

Closed Dcanzano closed 3 years ago

Dcanzano commented 6 years ago

https://github.com/neo4j-contrib/neo4j-apoc-procedures/issues/70 indicates that one can for example run

call apoc.load.json("file:////home/neo4j/neo4j-enterprise-3.3.0/bin/myfile.json") yield value return value;

and this will properly read said file. this is probably not a good idea for the file://// could represent any file on the filesystem. Similar to LOAD CSV we should probably restrict apoc.load.json to the value reported by

conf/neo4j.conf parameter of dbms.directories.import

conker84 commented 3 years ago

closed via 3558084