[
https://issues.apache.org/jira/browse/AMBARI-23399?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated AMBARI-23399:
------------------------------------
Labels: pull-request-available (was: )
> 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
>
>
> 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)