memgraph/tests
Tonko Sabolcec 59bc9d8989 Fix label/edge/property name escaping in DUMP DATABASE
Summary:
This diff fixes the issue for label name (and edge type/property)
with spaces and special characters to avoid possible OpenCypher injections.
Consider an example where label name is 'hello :world'. `DUMP DATABASE`
used to return query which creates a node (u:hello :world) - i.e. node
that contains two labels 'hello' and 'world'. This fix escapes names to
create the following node with exactly one label as expected:
```
(u:`hello :world`)
```

Reviewers: mferencevic

Reviewed By: mferencevic

Subscribers: pullbot

Differential Revision: https://phabricator.memgraph.io/D2774
2020-05-21 14:46:51 +02:00
..
benchmark Improve property store performance 2020-05-05 10:55:00 +02:00
concurrent Implement concurrent tests for storage indices 2020-04-01 10:43:05 +02:00
drivers Rename Bolt flags 2019-12-09 11:24:09 +01:00
feature_benchmark Temporarily disable HA build and tests 2020-01-13 17:04:27 +01:00
integration Fix label/edge/property name escaping in DUMP DATABASE 2020-05-21 14:46:51 +02:00
macro_benchmark Remove leftover implementation required by the old storage 2020-03-02 12:45:18 +01:00
manual Remove leftover implementation required by the old storage 2020-03-02 12:45:18 +01:00
property_based Migrate property_based tests to storage v2 2020-01-13 13:09:57 +01:00
public_benchmark Rename Bolt flags 2019-12-09 11:24:09 +01:00
qa Make memgraph with storage v2 the main binary 2019-12-06 10:51:16 +01:00
stress Add community to Apollo build 2020-02-17 13:27:20 +01:00
unit Fix label/edge/property name escaping in DUMP DATABASE 2020-05-21 14:46:51 +02:00
.clang-tidy Add .clang-tidy for tests and update the config 2019-10-31 16:07:09 +01:00
apollo_runs.py Convert mgp_value to 'mgp' Python types, not '_mgp' ones 2020-03-06 11:23:08 +01:00
apollo_runs.yaml Add community to Apollo build 2020-02-17 13:27:20 +01:00
client-stress.sh Migrate command line args to gflgs in tests 2017-07-06 13:54:12 +02:00
CMakeLists.txt Remove global include directories in CMake 2020-02-03 13:18:30 +01:00