{"action":"created","issue":{"url":"https://api.github.com/repos/neo4j/neo4j/issues/11429","repository_url":"https://api.github.com/repos/neo4j/neo4j","labels_url":"https://api.github.com/repos/neo4j/neo4j/issues/11429/labels{/name}","comments_url":"https://api.github.com/repos/neo4j/neo4j/issues/11429/comments","events_url":"https://api.github.com/repos/neo4j/neo4j/issues/11429/events","html_url":"https://github.com/neo4j/neo4j/issues/11429","id":309760414,"node_id":"MDU6SXNzdWUzMDk3NjA0MTQ=","number":11429,"title":"Windows platform- Database failed to create: Error: Could not change password","user":{"login":"incansvl","id":28898330,"node_id":"MDQ6VXNlcjI4ODk4MzMw","avatar_url":"https://avatars3.githubusercontent.com/u/28898330?v=4","gravatar_id":"","url":"https://api.github.com/users/incansvl","html_url":"https://github.com/incansvl","followers_url":"https://api.github.com/users/incansvl/followers","following_url":"https://api.github.com/users/incansvl/following{/other_user}","gists_url":"https://api.github.com/users/incansvl/gists{/gist_id}","starred_url":"https://api.github.com/users/incansvl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/incansvl/subscriptions","organizations_url":"https://api.github.com/users/incansvl/orgs","repos_url":"https://api.github.com/users/incansvl/repos","events_url":"https://api.github.com/users/incansvl/events{/privacy}","received_events_url":"https://api.github.com/users/incansvl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-03-29T13:44:47Z","updated_at":"2018-07-27T04:08:41Z","closed_at":null,"author_association":"NONE","body":"- Neo4j version: Tested in Neo4J desktop 10.0.18 and 10.0.19 (engine 3.3.4)\r\n- Operating system: Windows 10 64 bit\r\n- API/Driver: N/a\r\n\r\n**Issue Outline**\r\nAlthough Neo4J Desktop installs and runs, attempting to create a database fails with the error-\r\n\r\n_Database failed to create: Error: Could not change password_\r\n\r\nI have tried various database names and passwords to prove that is not simply (say) a database name that maps to an invalid Windows pathname. I have also tried installing Neo4J for personal use (single user) or shared use (in the C;\\Program Files folder).\r\n\r\nThis issue has been described in the Neo4J Stackoverflow forums by another user, so I am not the only user seeing this problem.\r\n\r\nI have reason to believe the problem is caused by incorrect handling of file paths in Neo4J Desktop on Windows, (see below for details).\r\n\r\n### Steps to reproduce\r\n1. Download the installer **_neo4j-desktop-offline-1.0.19-setup.exe_**\r\n2. Install Neo4J with default settings\r\n3. Run Neo4J desktop\r\n4. Select the default **_My Project_** project \r\n5. Select the **_New Graph->Local Graph_** option\r\n6. Use the database name **_Database_** (default) and password **_password_**.\r\n\r\n### Expected behavior\r\nNew graph should be created\r\n\r\n### Actual behavior\r\nError occurs-\r\n\r\n_Database failed to create: Error: Could not change password_\r\n\r\n###Investigation\r\nLooking at the Neo4J log file (stored at \"C:\\Users\\myname.CORP\\.Neo4jDesktop\\log.log\" in my case) I can see the error-\r\n\r\n```\r\n[2018-03-29 11:20:04:0542] [info] Executing 'C:\\Users\\myname.CORP\\.Neo4jDesktop\\neo4jDatabases\\database-c2c04041-5a81-43fe-a004-56b1c47f4c1c\\installation-3.3.4\\bin\\neo4j-admin.bat' [ 'set-initial-password', 'password' ]\r\n[2018-03-29 11:20:08:0511] [error] Neo4jAdmin: Invoke-Neo4jAdmin : An object at the specified path C:\\Users\\MYNA~1.COR does not exist.\r\nAt line:1 char:163\r\n+ ... agement.psd1'; Exit (Invoke-Neo4jAdmin set-initial-password password)\r\n+                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n```\r\n\r\nThe **_neo4j-admin.bat_** script does actually exist at the pathname specified, but Neo4J isn't finding it.\r\n\r\nMy suspicions are (these are guesses)-\r\n\r\n1. Neo4J hasn't been tested on a windows setup where some elements of the pathnames to either the Neo4J installation itself, or the user's personal folder (the equivalent of _~username_ for Windows) contain \"long\" filenames.\r\n\r\nIn our case our corporate machines are set up with personal folders that look like- `c:\\users\\myname.CORP`\r\n\r\n2. Neo4J is falling foul of Windows \"filename mangling\" where long filenames are converted to the old DOS \"8.3\" format.\r\n\r\n3. Neo4J is checking for the existence of the **_neo4j-admin.bat_** script using an incorrectly mangled pathname (maybe by truncating the pathname at a space) and therefore saying the script cannot be found.\r\n\r\nUnfortunately the error reported at the Neo4J desktop is not  very informative.\r\n\r\n**UPDATE**\r\nI was able to get a new virtual machine provisioned to test Neo4J on. On the new machine my user profile directory was a \"normal\" (short) style name. Neo4J desktop WAS able to start and set up a new database in this environment. So to be clear:\r\n\r\n```\r\nUser Profile Folder (example)           Result\r\n-------------------------------        -------\r\nC:\\users\\myname                        Neo4J Desktop works ok\r\nc:\\users\\myname.domain                 Neo4J fails- Database failed to create: Error: Could not change password\r\n```"},"comment":{"url":"https://api.github.com/repos/neo4j/neo4j/issues/comments/408305620","html_url":"https://github.com/neo4j/neo4j/issues/11429#issuecomment-408305620","issue_url":"https://api.github.com/repos/neo4j/neo4j/issues/11429","id":408305620,"node_id":"MDEyOklzc3VlQ29tbWVudDQwODMwNTYyMA==","user":{"login":"geronimus","id":12959360,"node_id":"MDQ6VXNlcjEyOTU5MzYw","avatar_url":"https://avatars0.githubusercontent.com/u/12959360?v=4","gravatar_id":"","url":"https://api.github.com/users/geronimus","html_url":"https://github.com/geronimus","followers_url":"https://api.github.com/users/geronimus/followers","following_url":"https://api.github.com/users/geronimus/following{/other_user}","gists_url":"https://api.github.com/users/geronimus/gists{/gist_id}","starred_url":"https://api.github.com/users/geronimus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geronimus/subscriptions","organizations_url":"https://api.github.com/users/geronimus/orgs","repos_url":"https://api.github.com/users/geronimus/repos","events_url":"https://api.github.com/users/geronimus/events{/privacy}","received_events_url":"https://api.github.com/users/geronimus/received_events","type":"User","site_admin":false},"created_at":"2018-07-27T04:08:41Z","updated_at":"2018-07-27T04:08:41Z","author_association":"NONE","body":"I experienced this issue. The log was as follows:\r\n```\r\n\\installation-3.4.1\\bin\\neo4j-admin.bat' [ 'set-initial-password', '***' ]\r\n[2018-07-27 00:00:03:0282] [error] Neo4jAdmin: Missing closing '}' in statement block or type definition.\r\n\r\n[2018-07-27 00:00:03:0282] [error] Neo4jAdmin:     + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException\r\n\r\n[2018-07-27 00:00:03:0283] [error] Neo4jAdmin:     + FullyQualifiedErrorId : MissingEndCurlyBrace\r\n```\r\nThere was a curly brace character in my password. Removing it cleared the error.\r\n\r\nI think someone should look into this as it indicates there might be a vulnerability to statement injection attacks somewhere deep in the app."}}
{"actor":{"display_login":"geronimus"}}