Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cypher statements with string literals containing hash (#) are truncated when loading to the browser via Neo4j Desktop #1818

Open
martinswanson opened this issue Sep 1, 2022 · 0 comments

Comments

@martinswanson
Copy link

Description

I created a file containing a single Cypher CREATE statement that includes a property with value containing a hash (#) character. When this file is loaded into the browser using Neo4j Desktop the CREATE statement is truncated, meaning it cannot be executed without throwing an error.

If I cut and paste the statement from the file directly into the browser the statement are copied correctly and the query is executed.

Reproduce Steps

  1. Create a file called test-create-with-hash.cypher and copy it to Neo4j's project directory. File contents:
CREATE (Line_1:Line {lineId: 1, text: "#"})
;
  1. Find the file in the Desktop management tool and select "Open".

Screenshot 2022-09-01 at 16 55 27

  1. File contents are copied into the browser, but the statement is truncated at the hash (#) character.

Screenshot 2022-09-01 at 16 46 30

Expected Behavior

File contents should be copied completely to the browser, and not truncated.

Current Behavior

See above.

Can you propose a solution?

What needs to be done to address this issue? Ideally, provide a pull request with a fix.

Review how Neo4j Desktop parses source files.

Your Environment

software name version
OS macOS Catalina 10.15.7
Web browser
node.js
npm
yarn
Neo4j Browser Version 1.4.15 (1.4.15.85)
Neo4j

Additional Information

Any additional information, configuration or data that might be necessary to reproduce the issue.

For enhancements or other issues, please describe in as much detail as possible how the app should be changed and how this would benefit users/developers.

@martinswanson martinswanson changed the title Cypher statements with string literals containing hash (#) are truncated when loading via the browser Cypher statements with string literals containing hash (#) are truncated when loading to the browser via Neo4j Desktop Sep 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant