Skip to content

Added permission check to the known_host file #216

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

Merged
merged 1 commit into from
Aug 22, 2016

Conversation

zhenlineo
Copy link
Contributor

to give user more information about why we failed to read/write to the known_host file

if( !knownHosts.canWrite() )
{
throw new IOException( format(
"Failed to write certificates to file %s as you have no write permissions to it. " +

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would appreciate if you could add a \n after the first sentence in these messages, just like the ones below for CertificateException.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alright

to give user more information about why we failed to read/write to the known_host file
@zhenlineo zhenlineo force-pushed the 1.0-permission-to-known-host-file branch from 44927b0 to 757ae3e Compare August 17, 2016 15:06
@pontusmelke pontusmelke merged commit 1ac0038 into neo4j:1.0 Aug 22, 2016
@zhenlineo zhenlineo deleted the 1.0-permission-to-known-host-file branch September 6, 2016 08:02
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

Successfully merging this pull request may close these issues.

3 participants