[ https://issues.apache.org/jira/browse/NIFI-1671?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15218123#comment-15218123 ]
Pierre Villard commented on NIFI-1671: -------------------------------------- [~jskora] I agree, I think this is some kind of group configuration. When running a maven build or unit tests from Eclipse, I am not using "Run as administrator" and I get this error. I just tried to run Eclipse as administrator and the result is the same. I am not a Windows expert but just had a look on group policies and file creation seems to be linked to a group "Administrateurs" rule. So it looks like what you are suggesting and that would explain what is observed. I fully agree this is really difficult to normalize this kind of things. Besides, I won't be using this laptop any more in few days... Not sure there is a need to absolutely fix something if I am the only one reporting this issue. > TestListFile: unit test failing on Windows with specific accounts > configuration > ------------------------------------------------------------------------------- > > Key: NIFI-1671 > URL: https://issues.apache.org/jira/browse/NIFI-1671 > Project: Apache NiFi > Issue Type: Bug > Components: Extensions > Affects Versions: 0.5.1 > Environment: Windows 7 Pro, Maven 3.3.9, Java 8 > Reporter: Pierre Villard > Priority: Minor > > In TestListFile, with test testAttributesSet, it fails at > assertTrue(mock1.getAttribute(ListFile.FILE_OWNER_ATTRIBUTE).contains(userName)); > If I look further: > mock1.getAttribute(ListFile.FILE_OWNER_ATTRIBUTE) is equal to > "BUILTIN\Administrateurs" > when userName = System.getProperty("user.name") is equal to "pvillard" > I believe this is something related to a very specific configuration on my > company laptop. -- This message was sent by Atlassian JIRA (v6.3.4#6332)