Jira (PDB-3903) PQL ~ operator matches empty strings incorrectly
Title: Message Title Nirupama Mantha updated an issue PuppetDB / PDB-3903 PQL ~ operator matches empty strings incorrectly Change By: Nirupama Mantha Priority: Normal Minor 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 (PDB-3903) PQL ~ operator matches empty strings incorrectly
Title: Message Title Daniel Parks updated an issue PuppetDB / PDB-3903 PQL ~ operator matches empty strings incorrectly Change By: Daniel Parks It looks like the {{~}} operator treats an empty string as if it were a pair of double quotes ({{""}}).Both of the following return one record:{code}inventory { certname = 'mycert' and facts.a.b = '' }inventory { certname = 'mycert' and facts.a.b ~ '^""$' }{code}The following returns no records:{code}inventory { certname = 'mycert' and facts.a.b ~ '...' }{code} To be clear, the {{mycert}} node has a fact {{a.b}} that contains an empty string. 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. F
Jira (PDB-3903) PQL ~ operator matches empty strings incorrectly
Title: Message Title Daniel Parks created an issue PuppetDB / PDB-3903 PQL ~ operator matches empty strings incorrectly Issue Type: Bug Assignee: Unassigned Created: 2018/04/10 11:12 PM Environment: PE 2018.1.0-rc14 Priority: Normal Reporter: Daniel Parks It looks like the ~ operator treats an empty string as if it were a pair of double quotes (""). Both of the following return one record: inventory { certname = 'mycert' and facts.a.b = '' } inventory { certname = 'mycert' and facts.a.b ~ '^""$' } The following returns no records: inventory { certname = 'mycert' and facts.a.b ~ '...' }