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

0 просмотров
Перейти к первому непрочитанному сообщению

Henrik Lindberg (JIRA)

не прочитано,
13 нояб. 2017 г., 03:44:0413.11.2017
– 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)

не прочитано,
13 нояб. 2017 г., 03:44:0413.11.2017
– 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)

не прочитано,
13 нояб. 2017 г., 03:44:0713.11.2017
– puppe...@googlegroups.com

Henrik Lindberg (JIRA)

не прочитано,
13 нояб. 2017 г., 06:56:0213.11.2017
– puppe...@googlegroups.com

Martijn Pepping (JIRA)

не прочитано,
13 нояб. 2017 г., 10:25:0413.11.2017
– 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)

не прочитано,
9 янв. 2018 г., 11:52:0309.01.2018
– 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)

не прочитано,
29 сент. 2020 г., 15:43:0429.09.2020
– 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)

не прочитано,
22 окт. 2020 г., 03:12:0422.10.2020
– puppe...@googlegroups.com

Claire Cadman (Jira)

не прочитано,
22 окт. 2020 г., 03:13:0322.10.2020
– puppe...@googlegroups.com

Josh Cooper (Jira)

не прочитано,
14 июн. 2021 г., 15:49:0114.06.2021
– 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)

не прочитано,
14 июн. 2021 г., 15:49:0314.06.2021
– 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)

не прочитано,
24 июн. 2021 г., 06:42:0224.06.2021
– puppe...@googlegroups.com

Josh Cooper (Jira)

не прочитано,
1 июл. 2021 г., 04:18:0101.07.2021
– puppe...@googlegroups.com

Josh Cooper (Jira)

не прочитано,
15 июл. 2021 г., 14:19:0215.07.2021
– 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)

не прочитано,
20 июл. 2021 г., 09:25:0220.07.2021
– puppe...@googlegroups.com
Ответить всем
Отправить сообщение автору
Переслать
0 новых сообщений