Jira (PUP-8728) A parameter that does not pass type validation can cause catalog compilation failure if used in the default expression of another parameter
Title: Message Title Molly Waggett updated an issue Puppet / PUP-8728 A parameter that does not pass type validation can cause catalog compilation failure if used in the default _expression_ of another parameter Change By: Molly Waggett Team: Froyo Phoenix Add Comment This message was sent by Atlassian Jira (v8.20.2#820002-sha1:829506d) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.250685.1526337144000.21464.164800301%40Atlassian.JIRA.
Jira (PUP-8728) A parameter that does not pass type validation can cause catalog compilation failure if used in the default expression of another parameter
Title: Message Title Molly Waggett updated an issue Puppet / PUP-8728 A parameter that does not pass type validation can cause catalog compilation failure if used in the default _expression_ of another parameter Change By: Molly Waggett Labels: final_triage Add Comment This message was sent by Atlassian Jira (v8.20.2#820002-sha1:829506d) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.250685.1526337144000.21465.164800350%40Atlassian.JIRA.
Jira (PUP-8728) A parameter that does not pass type validation can cause catalog compilation failure if used in the default expression of another parameter
Title: Message Title David McTavish updated an issue Puppet / PUP-8728 A parameter that does not pass type validation can cause catalog compilation failure if used in the default _expression_ of another parameter Change By: David McTavish Labels: final_triage Add Comment This message was sent by Atlassian Jira (v8.20.2#820002-sha1:829506d) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.250685.1526337144000.19951.1642035420226%40Atlassian.JIRA.
Jira (PUP-8728) A parameter that does not pass type validation can cause catalog compilation failure if used in the default expression of another parameter
Title: Message Title Kris Bosland commented on PUP-8728 Re: A parameter that does not pass type validation can cause catalog compilation failure if used in the default _expression_ of another parameter This test case is a little simplified with some explanation comments: function check_for_num_or_nan( Variant[String, Integer] $num, ) >> Integer { if $num =~ /NaN/ { #This fails if $num is an Integer #if $num =~ String { #This would pass if $num is an Integer 100 } else { $num } } class my_class ( #Integer[64] means an integer in the range [64,64], so this must be 64.
Jira (PUP-8728) A parameter that does not pass type validation can cause catalog compilation failure if used in the default expression of another parameter
Title: Message Title Henrik Lindberg updated an issue Puppet / PUP-8728 A parameter that does not pass type validation can cause catalog compilation failure if used in the default _expression_ of another parameter Change By: Henrik Lindberg Fix Version/s: PUP 6.0.1 Fix Version/s: PUP 6.y Add Comment This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-8728) A parameter that does not pass type validation can cause catalog compilation failure if used in the default expression of another parameter
Title: Message Title Kenn Hussey updated an issue Puppet / PUP-8728 A parameter that does not pass type validation can cause catalog compilation failure if used in the default _expression_ of another parameter Change By: Kenn Hussey Flagged: Impediment Add Comment This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-8728) A parameter that does not pass type validation can cause catalog compilation failure if used in the default expression of another parameter
Title: Message Title Henrik Lindberg updated an issue Puppet / PUP-8728 A parameter that does not pass type validation can cause catalog compilation failure if used in the default _expression_ of another parameter Change By: Henrik Lindberg Fix Version/s: PUP 6.0.0 Fix Version/s: PUP 6.0.1 Add Comment This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-8728) A parameter that does not pass type validation can cause catalog compilation failure if used in the default expression of another parameter
Title: Message Title Kenn Hussey updated an issue Puppet / PUP-8728 A parameter that does not pass type validation can cause catalog compilation failure if used in the default _expression_ of another parameter Change By: Kenn Hussey Flagged: Impediment Add Comment This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-8728) A parameter that does not pass type validation can cause catalog compilation failure if used in the default expression of another parameter
Title: Message Title Rob Braden updated an issue Puppet / PUP-8728 A parameter that does not pass type validation can cause catalog compilation failure if used in the default _expression_ of another parameter Change By: Rob Braden Sub-team: Language Add Comment This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-8728) A parameter that does not pass type validation can cause catalog compilation failure if used in the default expression of another parameter
Title: Message Title Rob Braden assigned an issue to Unassigned Puppet / PUP-8728 A parameter that does not pass type validation can cause catalog compilation failure if used in the default _expression_ of another parameter Change By: Rob Braden Assignee: Thomas Hallgren Add Comment This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-8728) A parameter that does not pass type validation can cause catalog compilation failure if used in the default expression of another parameter
Title: Message Title Kenn Hussey updated an issue Puppet / PUP-8728 A parameter that does not pass type validation can cause catalog compilation failure if used in the default _expression_ of another parameter Change By: Kenn Hussey Team: Platform Core Add Comment This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-8728) A parameter that does not pass type validation can cause catalog compilation failure if used in the default expression of another parameter
Title: Message Title Henrik Lindberg assigned an issue to Thomas Hallgren Puppet / PUP-8728 A parameter that does not pass type validation can cause catalog compilation failure if used in the default _expression_ of another parameter Change By: Henrik Lindberg Assignee: Thomas Hallgren Add Comment This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-8728) A parameter that does not pass type validation can cause catalog compilation failure if used in the default expression of another parameter
Title: Message Title Henrik Lindberg commented on PUP-8728 Re: A parameter that does not pass type validation can cause catalog compilation failure if used in the default _expression_ of another parameter I targeted Puppet 6.0.0 for this since there is a small chance that it may break someone's code. Add Comment This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-8728) A parameter that does not pass type validation can cause catalog compilation failure if used in the default expression of another parameter
Title: Message Title Henrik Lindberg updated an issue Puppet / PUP-8728 A parameter that does not pass type validation can cause catalog compilation failure if used in the default _expression_ of another parameter Change By: Henrik Lindberg Fix Version/s: PUP 6.0.0 Add Comment This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-8728) A parameter that does not pass type validation can cause catalog compilation failure if used in the default expression of another parameter
Title: Message Title Henrik Lindberg commented on PUP-8728 Re: A parameter that does not pass type validation can cause catalog compilation failure if used in the default _expression_ of another parameter Thomas Hallgren Any thoughts on multiple dispatch? What if we introduced that in the puppet language? How would that work, say you have a first parameter Integer[10] $x, String $y = foo($x), and a second Integer[20] $x, Integer $y = foo($y) - here you cannot assert $x until you have established that it is the second signature that is going to be used (because the default _expression_ returned an Integer). We would get around that problem by specifying that values returned by default value expressions are not involved in the selection of signature - which I think is quite reasonable. Add Comment This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-8728) A parameter that does not pass type validation can cause catalog compilation failure if used in the default expression of another parameter
Title: Message Title Thomas Hallgren commented on PUP-8728 Re: A parameter that does not pass type validation can cause catalog compilation failure if used in the default _expression_ of another parameter I would have assumed that this already happened but apparently all parameter values are first calculated and then type checked. That's clearly a bug. $test should never be able to hold the value of 63. The fix is probably trivial. The code needs to check each individual parameter instead of checking the full Tuple at the end (probably means that APL assignments must be checked individually as well). Add Comment This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-8728) A parameter that does not pass type validation can cause catalog compilation failure if used in the default expression of another parameter
Title: Message Title Henrik Lindberg commented on PUP-8728 Re: A parameter that does not pass type validation can cause catalog compilation failure if used in the default _expression_ of another parameter It would be nice if arguments were validated before they get used in a default value _expression_. Ping Thomas Hallgren - do you think this is difficult to achieve? For puppet functions it should work since they are single dispatch, but I imagine this being very difficult for multiple dispatch 4.x functions (where on the other hand, you would need to do the default value evaluation inside the body of a function method. Add Comment This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-8728) A parameter that does not pass type validation can cause catalog compilation failure if used in the default expression of another parameter
Title: Message Title Nick Walker created an issue Puppet / PUP-8728 A parameter that does not pass type validation can cause catalog compilation failure if used in the default _expression_ of another parameter Issue Type: Bug Assignee: Unassigned Created: 2018/05/14 3:32 PM Priority: Normal Reporter: Nick Walker The Problem Given the below code I would expect to get an error message back indicating that the test parameter didn't pass type validation but it instead causes failure in the function used in the parameter below. function puppet_enterprise::calculate_log_temp_files( Variant[String, Integer] $work_mem, ) >> Integer { #work_mem is specified in kB if no memory unit is provided if $work_mem =~ /\A(\d+)(kB|MB|GB|TB)\Z/ {
Jira (PUP-8728) A parameter that does not pass type validation can cause catalog compilation failure if used in the default expression of another parameter
Title: Message Title Nick Walker commented on PUP-8728 Re: A parameter that does not pass type validation can cause catalog compilation failure if used in the default _expression_ of another parameter Henrik Lindberg as we discussed in hipchat. Add Comment This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.