You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Ishan Bhatt (JIRA)" <ji...@apache.org> on 2018/07/10 04:46:00 UTC
[jira] [Resolved] (AMBARI-23399) PasswordUtilsTest fails if running
as 'root'
[ https://issues.apache.org/jira/browse/AMBARI-23399?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ishan Bhatt resolved AMBARI-23399.
----------------------------------
Resolution: Fixed
> PasswordUtilsTest fails if running as 'root'
> --------------------------------------------
>
> Key: AMBARI-23399
> URL: https://issues.apache.org/jira/browse/AMBARI-23399
> Project: Ambari
> Issue Type: Bug
> Components: ambari-server
> Affects Versions: 2.7.0
> Reporter: Sandor Molnar
> Assignee: Sandor Molnar
> Priority: Major
> Labels: pull-request-available
> Fix For: 2.7.0
>
> Time Spent: 2h 50m
> Remaining Estimate: 0h
>
> If org.apache.ambari.server.utils.PasswordUtilsTest.shouldReadDefaultPasswordIfPasswordPropertyIsPasswordFilePathButItIsNotReadable() is running by _root_ user the File.setReadable does not work -> the build will fail.
> We should consider using
> java.nio.file.attribute.PosixFilePermissions
> I'll disable this use case until it's fixed.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)