Jira (FACT-1900) The system32 fact can be confused by an empty directory

1 view
Skip to first unread message

Charlie Sharpsteen (JIRA)

unread,
Dec 21, 2018, 6:46:03 PM12/21/18
to puppe...@googlegroups.com
Charlie Sharpsteen created an issue
 
Facter / Bug FACT-1900
The system32 fact can be confused by an empty directory
Issue Type: Bug Bug
Assignee: Unassigned
Created: 2018/12/21 3:45 PM
Priority: Minor Minor
Reporter: Charlie Sharpsteen

Facter has a system32 fact that returns the path to the Windows system directory and accounts for whether a 32-bit process is running on a 64-bit system. The implementation of this fact checks for the existence of the "virtual" C:/Windows/sysnative directory and can be fooled if a user creates that as a real directory.

Reproduction case

  • Install Puppet 5.5.8 64-bit on a 64-bit Windows node.
  • Run facter system32 and observe the output.
  • Create the C:/Windows/sysnative directory.
  • Run facter system32 again.

Outcome

Once the sysnative directory is created, facter returns it as the Windows system directory:

PS C:\Users\Administrator> facter system32
C:\Windows\system32
PS C:\Users\Administrator> New-Item -Path C:/Windows/sysnative -ItemType directory
 
 
    Directory: C:\Windows
 
 
Mode                LastWriteTime         Length Name
----                -------------         ------ ----
d-----       12/21/2018  11:44 PM                sysnative
 
 
PS C:\Users\Administrator> facter system32
C:\Windows\sysnative

Expected outcome

Facter only returns C:/Windows/sysnative for system32 if it is running as a 32-bit process on a 64-bit system.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
Atlassian logo

Geoff Nichols (JIRA)

unread,
Jan 2, 2019, 2:41:03 PM1/2/19
to puppe...@googlegroups.com

Eric Thompson (JIRA)

unread,
Jan 2, 2019, 4:35:02 PM1/2/19
to puppe...@googlegroups.com
Eric Thompson commented on Bug FACT-1900
 
Re: The system32 fact can be confused by an empty directory

if we know when this will ship, approx, it'd be great if someone could set a fix version.

our new process for tickets related to (closed) support escalations is to ensure there is a "Fix Version" set so the related tickets don't languish in backlogs.

In particular to this issue, we expect many more customers to use the agent module for upgrades as their deployments EOL.

Branan Riley (JIRA)

unread,
Jan 2, 2019, 5:54:03 PM1/2/19
to puppe...@googlegroups.com

Branan Riley (JIRA)

unread,
Jan 2, 2019, 5:54:03 PM1/2/19
to puppe...@googlegroups.com
Branan Riley updated an issue
Change By: Branan Riley
Sprint: Platform OS Kanban

Branan Riley (JIRA)

unread,
Jan 2, 2019, 5:54:03 PM1/2/19
to puppe...@googlegroups.com

Branan Riley (JIRA)

unread,
Jan 8, 2019, 2:24:03 PM1/8/19
to puppe...@googlegroups.com

Kenn Hussey (JIRA)

unread,
Jan 8, 2019, 4:02:03 PM1/8/19
to puppe...@googlegroups.com
Kenn Hussey commented on Bug FACT-1900
 
Re: The system32 fact can be confused by an empty directory

Branan Riley does this imply a 3.12.3 as well (in which case the ticket also needs that fix version)?

Please add release notes for this issue if needed, thanks!

Branan Riley (JIRA)

unread,
Jan 11, 2019, 11:14:05 AM1/11/19
to puppe...@googlegroups.com

Branan Riley (JIRA)

unread,
Jan 16, 2019, 5:56:03 PM1/16/19
to puppe...@googlegroups.com

Branan Riley (JIRA)

unread,
Jan 16, 2019, 5:57:03 PM1/16/19
to puppe...@googlegroups.com
Branan Riley updated an issue
Change By: Branan Riley
Release Notes Summary: Facter now correctly returns the path to system32 on 64-bit systems when a user has manually created the "sysnative" folder.

Jean Bond (JIRA)

unread,
Jan 22, 2019, 5:01:03 PM1/22/19
to puppe...@googlegroups.com
Jean Bond updated an issue
Change By: Jean Bond
Labels: resolved-issue-added

Austin Boyd (JIRA)

unread,
Dec 5, 2019, 6:38:05 AM12/5/19
to puppe...@googlegroups.com
Austin Boyd updated an issue
Change By: Austin Boyd
Zendesk Ticket IDs: 34897
Zendesk Ticket Count: 1
Reply all
Reply to author
Forward
0 new messages