Jira (PUP-5381) Evaluating instance match with Optional[T] and NotUndef[T] fails when T is a string value

2016-08-03 Thread Sean Griffin (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Sean Griffin updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-5381 
 
 
 
  Evaluating instance match with Optional[T] and NotUndef[T] fails when T is a string value  
 
 
 
 
 
 
 
 
 

Change By:
 
 Sean Griffin 
 
 
 

QA Risk Assessment:
 
 Medium 
 
 
 

QA Status:
 
 Reviewed 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.13#64028-sha1:b7939e9) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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-5381) Evaluating instance match with Optional[T] and NotUndef[T] fails when T is a string value

2015-10-23 Thread Hailee Kenney (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Hailee Kenney commented on  PUP-5381 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Evaluating instance match with Optional[T] and NotUndef[T] fails when T is a string value  
 
 
 
 
 
 
 
 
 
 
On SHA d29f5e3f373d14c22969f141e54034540c880e8c (before the fix): 
 
 
 
 
 
 
❤ > be puppet apply -e "notice(5 =~ Optional[foo])" 
 
 
 
 
Error: Evaluation Error: Error while evaluating a '=~' _expression_, undefined method `instance?' for "foo":String  at line 1:10 on node hailees-mbp-2.corp.puppetlabs.net 
 
 
 
 
 
 
And on SHA e3195ba1cd69f81fc054f1361e8578c1fe452fe7 (after the fix): 
 
 
 
 
 
 
❤ > be puppet apply -e "notice(5 =~ Optional[foo])" 
 
 
 
 
Notice: Scope(Class[main]): false 
 
 
 
 
Notice: Compiled catalog for hailees-mbp-2.corp.puppetlabs.net in environment production in 0.03 seconds 
 
 
 
 
Notice: Applied catalog in 0.04 seconds 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Jira (PUP-5381) Evaluating instance match with Optional[T] and NotUndef[T] fails when T is a string value

2015-10-23 Thread Hailee Kenney (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Hailee Kenney assigned an issue to Hailee Kenney 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-5381 
 
 
 
  Evaluating instance match with Optional[T] and NotUndef[T] fails when T is a string value  
 
 
 
 
 
 
 
 
 

Change By:
 
 Hailee Kenney 
 
 
 

Assignee:
 
 qa Hailee Kenney 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.11#64026-sha1:78f6ec4) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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 http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-5381) Evaluating instance match with Optional[T] and NotUndef[T] fails when T is a string value

2015-10-21 Thread Steve Barlow (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Steve Barlow assigned an issue to qa 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-5381 
 
 
 
  Evaluating instance match with Optional[T] and NotUndef[T] fails when T is a string value  
 
 
 
 
 
 
 
 
 

Change By:
 
 Steve Barlow 
 
 
 

Status:
 
 Ready for  CI  Test 
 
 
 

Assignee:
 
 qa 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.11#64026-sha1:78f6ec4) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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 http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-5381) Evaluating instance match with Optional[T] and NotUndef[T] fails when T is a string value

2015-10-21 Thread Henrik Lindberg (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Henrik Lindberg commented on  PUP-5381 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Evaluating instance match with Optional[T] and NotUndef[T] fails when T is a string value  
 
 
 
 
 
 
 
 
 
 
Merged to master at: 6ef3d0c 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.11#64026-sha1:78f6ec4) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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 http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-5381) Evaluating instance match with Optional[T] and NotUndef[T] fails when T is a string value

2015-10-21 Thread Thomas Hallgren (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Thomas Hallgren assigned an issue to Thomas Hallgren 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-5381 
 
 
 
  Evaluating instance match with Optional[T] and NotUndef[T] fails when T is a string value  
 
 
 
 
 
 
 
 
 

Change By:
 
 Thomas Hallgren 
 
 
 

Assignee:
 
 Thomas Hallgren 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.11#64026-sha1:78f6ec4) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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 http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-5381) Evaluating instance match with Optional[T] and NotUndef[T] fails when T is a string value

2015-10-19 Thread Henrik Lindberg (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Henrik Lindberg updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-5381 
 
 
 
  Evaluating instance match with Optional[T] and NotUndef[T] fails when T is a string value  
 
 
 
 
 
 
 
 
 

Change By:
 
 Henrik Lindberg 
 
 
 

Scope Change Category:
 
 Found 
 
 
 

Scope Change Reason:
 
 Problem found when testing. 
 
 
 

Story Points:
 
 1 
 
 
 

Release Notes Summary:
 
 The type references Optional[T] and NotUndef[T] should have accepted a string S as a shorthand notation for Enum[S]. Instead this failed with an error which is not corrected. 
 
 
 

Sprint:
 
 Language  Triage  2015-10-28 
 
 
 

Release Notes:
 
 Bug Fix 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.11#64026-sha1:78f6ec4) 

Jira (PUP-5381) Evaluating instance match with Optional[T] and NotUndef[T] fails when T is a string value

2015-10-19 Thread Henrik Lindberg (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Henrik Lindberg commented on  PUP-5381 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Evaluating instance match with Optional[T] and NotUndef[T] fails when T is a string value  
 
 
 
 
 
 
 
 
 
 
This should work according to the language specification. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.11#64026-sha1:78f6ec4) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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 http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-5381) Evaluating instance match with Optional[T] and NotUndef[T] fails when T is a string value

2015-10-14 Thread Henrik Lindberg (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Henrik Lindberg updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-5381 
 
 
 
  Evaluating instance match with Optional[T] and NotUndef[T] fails when T is a string value  
 
 
 
 
 
 
 
 
 

Change By:
 
 Henrik Lindberg 
 
 
 

Sprint:
 
 Language Triage 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.11#64026-sha1:78f6ec4) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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 http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-5381) Evaluating instance match with Optional[T] and NotUndef[T] fails when T is a string value

2015-10-14 Thread Peter Huene (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Peter Huene updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-5381 
 
 
 
  Evaluating instance match with Optional[T] and NotUndef[T] fails when T is a string value  
 
 
 
 
 
 
 
 
 

Change By:
 
 Peter Huene 
 
 
 
 
 
 
 
 
 
 {{Optional[T]}} and {{NotUndef[T]}}, where T is a instance of a string, should behave like {{Optional[Enum[T]]}} and {{NotUndef[Enum[T]]}}, respectively.The following evaluates to false as expected:{code}notice(5 =~ Optional[Enum[foo]]){code}However, this produces an error:{code}notice(5 =~ Optional[foo]){code}Output:{code}Error: Evaluation Error: Error while evaluating a '=~' _expression_, undefined method `instance?' for "foo":String at site.pp:1:10 on node peterhu-osx{code}There may be other operations on  `  {{ Optional[string] ` }}  and  `  {{ NotUndef[string] ` }}  that result in similar exceptions. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.11#64026-sha1:78f6ec4) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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 http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-5381) Evaluating instance match with Optional[T] and NotUndef[T] fails when T is a string value

2015-10-14 Thread Peter Huene (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Peter Huene updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-5381 
 
 
 
  Evaluating instance match with Optional[T] and NotUndef[T] fails when T is a string value  
 
 
 
 
 
 
 
 
 

Change By:
 
 Peter Huene 
 
 
 
 
 
 
 
 
 
 {{Optional[T]}} and {{NotUndef[T]}}, where T is a instance of a string, should behave like {{Optional[Enum[T]]}} and {{NotUndef[Enum[T]]}}, respectively.The following evaluates to false as expected:{code}notice(5 =~ Optional[Enum[foo]]){code}However, this produces an error:{code}notice(5 =~ Optional[foo]){code}Output:{code}Error: Evaluation Error: Error while evaluating a '=~' _expression_, undefined method `instance?' for "foo":String at site.pp:1:10 on node peterhu-osx{code} There may be other operations on `Optional[string]` and `NotUndef[string]` that result in similar exceptions. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.11#64026-sha1:78f6ec4) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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 http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-5381) Evaluating instance match with Optional[T] and NotUndef[T] fails when T is a string value

2015-10-14 Thread Peter Huene (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Peter Huene created an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-5381 
 
 
 
  Evaluating instance match with Optional[T] and NotUndef[T] fails when T is a string value  
 
 
 
 
 
 
 
 
 

Issue Type:
 
  Bug 
 
 
 

Affects Versions:
 

 PUP 4.2.2 
 
 
 

Assignee:
 

 Unassigned 
 
 
 

Created:
 

 2015/10/14 2:27 PM 
 
 
 

Fix Versions:
 

 PUP 4.3.0 
 
 
 

Priority:
 
  Normal 
 
 
 

Reporter:
 
 Peter Huene 
 
 
 
 
 
 
 
 
 
 
Optional[T] and NotUndef[T], where T is a instance of a string, should behave like Optional[Enum[T]] and NotUndef[Enum[T]], respectively. 
The following evaluates to false as expected: 
 
 
 
 
 
 
notice(5 =~ Optional[Enum[foo]])
 
 
 
 
 
 
 
However, this produces an error: