Jira (PDB-4199) Puppet query - Issue with contents of arrays and type

4 views
Skip to first unread message

Erik Hansen (JIRA)

unread,
Nov 28, 2018, 5:06:02 PM11/28/18
to puppe...@googlegroups.com
Erik Hansen created an issue
 
PuppetDB / Bug PDB-4199
Puppet query - Issue with contents of arrays and type
Issue Type: Bug Bug
Assignee: Unassigned
Created: 2018/11/28 2:05 PM
Labels: maintenance
Priority: Normal Normal
Reporter: Erik Hansen

There seems to be an issue with the contents of Arrays and interpreting the type when processing a query.  For instance this query worked in 2016.4.13:

curl -X POST -H 'Content-Type:application/json' http://localhost:8080/pdb/query/v4/nodes -d '{"query": ["in", ["fact", "uptime_seconds"], ["array",["20000.0","150.0", "300000"]]]}'

However in 2018.1.4 it returns an error:

"All values in array must be the same type."

The example comes from documentation here:

https://puppet.com/docs/puppetdb/6.0/api/query/v4/ast.html#array

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
Atlassian logo

Erik Hansen (JIRA)

unread,
Nov 28, 2018, 5:33:03 PM11/28/18
to puppe...@googlegroups.com

Austin Blatt (JIRA)

unread,
Jan 22, 2019, 1:20:04 PM1/22/19
to puppe...@googlegroups.com

Austin Blatt (JIRA)

unread,
Jan 22, 2019, 1:49:03 PM1/22/19
to puppe...@googlegroups.com
Austin Blatt updated an issue
Change By: Austin Blatt
Release Notes Summary: Previously PuppetDB threw the error 'All values in array must be the same type' when querying using the in operator with an array of fact values for any array that did not have just one element.

Now PuppetDB won't error on an array of fact values unless there's an actual type mismatch among the values.
Release Notes: Bug Fix

Austin Blatt (JIRA)

unread,
Feb 12, 2019, 6:36:04 PM2/12/19
to puppe...@googlegroups.com
Austin Blatt updated an issue
Change By: Austin Blatt
Fix Version/s: PDB 6.3.0
Fix Version/s: PDB 6.0.3
Fix Version/s: PDB 5.2.8

Heston Hoffman (JIRA)

unread,
Mar 20, 2019, 9:05:03 PM3/20/19
to puppe...@googlegroups.com
Heston Hoffman updated an issue
Change By: Heston Hoffman
Labels: maintenance resolved-issue-added

Austin Boyd (JIRA)

unread,
Dec 5, 2019, 11:31:05 AM12/5/19
to puppe...@googlegroups.com
Austin Boyd updated an issue
Change By: Austin Boyd
Zendesk Ticket IDs: 32892
Zendesk Ticket Count: 1

Austin Boyd (JIRA)

unread,
Dec 12, 2019, 10:42:05 AM12/12/19
to puppe...@googlegroups.com
Austin Boyd updated an issue
Change By: Austin Boyd
Zendesk Ticket IDs: 32892 ,34758
Zendesk Ticket Count: 1 2
Reply all
Reply to author
Forward
0 new messages