Jira (PUP-8123) Document that Upper case in filenames for autoloaded things like classes does not work

0 views
Skip to first unread message

Henrik Lindberg (JIRA)

unread,
Nov 13, 2017, 3:44:04 AM11/13/17
to puppe...@googlegroups.com
Henrik Lindberg updated an issue
 
Puppet / Bug PUP-8123
Document that Upper case in filenames for autoloaded things like classes does not work
Change By: Henrik Lindberg
Component/s: DOCS
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.0.2#70111-sha1:88534db)
Atlassian logo

Henrik Lindberg (JIRA)

unread,
Nov 13, 2017, 3:44:04 AM11/13/17
to puppe...@googlegroups.com
Henrik Lindberg updated an issue
Change By: Henrik Lindberg
Summary:
Document that Upper case in filenames for autoloaded  things like  classes does not work

Henrik Lindberg (JIRA)

unread,
Nov 13, 2017, 3:44:07 AM11/13/17
to puppe...@googlegroups.com

Henrik Lindberg (JIRA)

unread,
Nov 13, 2017, 6:56:02 AM11/13/17
to puppe...@googlegroups.com

Martijn Pepping (JIRA)

unread,
Nov 13, 2017, 10:25:04 AM11/13/17
to puppe...@googlegroups.com

As a side note; mixedcase class/file-names worked OK up until puppet 4.7. It seems to got broken somewhere between 4.8 and 4.10.

Owen Rodabaugh (JIRA)

unread,
Jan 9, 2018, 11:52:03 AM1/9/18
to puppe...@googlegroups.com
Owen Rodabaugh updated an issue
 
Change By: Owen Rodabaugh
CS Priority: Normal
CS Impact: This is confusing. If we get this documented we'll have something that helps user understand the casing requirements.
CS Severity: 3 - Serious
CS Business Value: 3 - $$$$
CS Frequency: 1 - 1-5% of Customers

Josh Cooper (Jira)

unread,
Sep 29, 2020, 3:43:04 PM9/29/20
to puppe...@googlegroups.com
Josh Cooper assigned an issue to Claire Cadman
Change By: Josh Cooper
Assignee: Claire Cadman
This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)
Atlassian logo

Claire Cadman (Jira)

unread,
Oct 22, 2020, 3:12:04 AM10/22/20
to puppe...@googlegroups.com

Claire Cadman (Jira)

unread,
Oct 22, 2020, 3:13:03 AM10/22/20
to puppe...@googlegroups.com

Josh Cooper (Jira)

unread,
Jun 14, 2021, 3:49:01 PM6/14/21
to puppe...@googlegroups.com
Josh Cooper assigned an issue to Claire Cadman
Change By: Josh Cooper
Assignee: Claire Cadman
This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97)
Atlassian logo

Josh Cooper (Jira)

unread,
Jun 14, 2021, 3:49:03 PM6/14/21
to puppe...@googlegroups.com
Josh Cooper commented on Improvement PUP-8123
 
Re: Document that Upper case in filenames for autoloaded things like classes does not work

Claire Cadman could you add a note to https://puppet.com/docs/puppet/7/lang_reserved.html#lang_acceptable_char-classes-and-defined-resource-type-names that specifies the filename for a class MUST be lowercase. So this works:

# cat /etc/puppetlabs/code/environments/production/manifests/site.pp 
include upperCase
# cat /etc/puppetlabs/code/environments/production/modules/uppercase/manifests/init.pp 
class upperCase {
  notify { 'uppercase': }
}

But renaming the module directory to mixed case won't (even though the class name is mixed case):

# mv /etc/puppetlabs/code/environments/production/modules/uppercase/ /etc/puppetlabs/code/environments/production/modules/upperCase
# puppet agent -t
...
Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Function Call, Could not find class ::uppercase

Claire Cadman (Jira)

unread,
Jun 24, 2021, 6:42:02 AM6/24/21
to puppe...@googlegroups.com

Josh Cooper (Jira)

unread,
Jul 1, 2021, 4:18:01 AM7/1/21
to puppe...@googlegroups.com

Josh Cooper (Jira)

unread,
Jul 15, 2021, 2:19:02 PM7/15/21
to puppe...@googlegroups.com
Josh Cooper commented on Improvement PUP-8123
 
Re: Document that Upper case in filenames for autoloaded things like classes does not work

Or is the filename different from the namespace?

Yep exactly. The "Classes and defined resource types" section is good as is. It's just that when puppet attempts to load a file for an entity (class, function, etc), it transforms the entity's name to lowercase (as described here) and searches for a matching file. So in other words, puppet requires the full path to be lowercase even if the class, etc name is mixed/camel case.

Claire Cadman (Jira)

unread,
Jul 20, 2021, 9:25:02 AM7/20/21
to puppe...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages