Jira (PUP-5800) Filenames in recursive directories appear to be shell expanded

27 views
Skip to first unread message

Ben Ford (JIRA)

unread,
Feb 1, 2016, 5:38:04 PM2/1/16
to puppe...@googlegroups.com
Ben Ford created an issue
 
Puppet / Bug PUP-5800
Filenames in recursive directories appear to be shell expanded
Issue Type: Bug Bug
Assignee: Kylo Ginsberg
Components: Client
Created: 2016/02/01 2:37 PM
Priority: Normal Normal
Reporter: Ben Ford

When a file in a directory used as a source for a recursive file resource starts with a ~, then it's evaluated as a username. I didn't check to see if other patterns expand. This is a real edge case, except that some editors save backup files with a prepended ~.

root@ip-172-31-8-159:~ # puppet apply test.pp
Notice: Compiled catalog for puppetfactory.puppetlabs.vm in environment production in 0.03 seconds
Notice: /Stage[main]/Main/File[/tmp/test]/ensure: created
Error: Could not set 'file' on ensure: user bar.txt20160201-23101-1o0dulq doesn't exist
Error: Could not set 'file' on ensure: user bar.txt20160201-23101-1o0dulq doesn't exist
Wrapped exception:
user bar.txt20160201-23101-1o0dulq doesn't exist
Error: /Stage[main]/Main/File[/tmp/test/~bar.txt]/ensure: change from absent to file failed: Could not set 'file' on ensure: user bar.txt20160201-23101-1o0dulq doesn't exist
Notice: Applied catalog in 0.28 seconds
root@ip-172-31-8-159:~ # cat test.pp
file { '/tmp/test':
  ensure  => directory,
  recurse => true,
  source  => '/root/foo',
}
 
root@ip-172-31-8-159:~ # ls foo/
~bar.txt

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.12#64027-sha1:e3691cc)
Atlassian logo

Josh Cooper (JIRA)

unread,
Mar 1, 2016, 1:49:03 AM3/1/16
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Scrum Team: Client Platform

Henrik Lindberg (JIRA)

unread,
May 16, 2017, 8:57:02 AM5/16/17
to puppe...@googlegroups.com
Henrik Lindberg assigned an issue to Unassigned
Change By: Henrik Lindberg
Assignee: Kylo Ginsberg
This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe)
Atlassian logo

Henrik Lindberg (JIRA)

unread,
May 16, 2017, 8:57:02 AM5/16/17
to puppe...@googlegroups.com

Henrik Lindberg (JIRA)

unread,
May 16, 2017, 8:57:03 AM5/16/17
to puppe...@googlegroups.com

Josh Cooper (Jira)

unread,
Nov 11, 2021, 3:33:01 AM11/11/21
to puppe...@googlegroups.com
Josh Cooper assigned an issue to Josh Cooper
Change By: Josh Cooper
Assignee: Josh Cooper
This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97)
Atlassian logo

Josh Cooper (Jira)

unread,
Nov 11, 2021, 3:33:03 AM11/11/21
to puppe...@googlegroups.com

Josh Cooper (Jira)

unread,
Nov 19, 2021, 11:26:03 AM11/19/21
to puppe...@googlegroups.com

Josh Cooper (Jira)

unread,
Nov 19, 2021, 11:26:03 AM11/19/21
to puppe...@googlegroups.com

Josh Cooper (Jira)

unread,
Nov 19, 2021, 11:27:02 AM11/19/21
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Release Notes: Bug Fix
Release Notes Summary: Puppet can now manage files whose names start with tilde "~" characters
Template: PUP Bug Template

Josh Cooper (Jira)

unread,
Nov 19, 2021, 11:30:01 AM11/19/21
to puppe...@googlegroups.com

Parker Leach (Jira)

unread,
Dec 8, 2021, 11:34:01 AM12/8/21
to puppe...@googlegroups.com
Parker Leach updated an issue
 
Change By: Parker Leach
Labels: docs_reviewed
This message was sent by Atlassian Jira (v8.20.2#820002-sha1:829506d)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages