Issue #14378 has been updated by Andrew Parker. Status changed from Unreviewed to Needs More Information
Could you give me some more info on what would constitute "reasonably complex"? I don't know much about pathx, but I would guess that this comes down to if it looks like anything other than a simple path (letters, numbers and slashes). I can try to do this, but I think we would be better off if you had time to figure out a fix and submit a pull request. ---------------------------------------- Bug #14378: Expressions in Augeas context cause optimisation matching error https://projects.puppetlabs.com/issues/14378#change-62874 Author: Dominic Cleal Status: Needs More Information Priority: Normal Assignee: Category: augeas Target version: 3.X Affected Puppet version: development Keywords: augeas error Branch: When an augeas resource has a context given that contains a complex path expression, this causes the optimisation added in #7285 to break as it doesn't escape quotes. An example that I hit it on: augeas { 'sudowheel': context => "/files/etc/sudoers/spec[user = '%wheel' and host_group/host = 'ALL']", changes => [ "set user %wheel", "set host_group/host ALL", "set host_group/command ALL", "set host_group/command/runas_user root", ], } Generates: err: /Stage[main]//Augeas[sudowheel]: Could not evaluate: unknown error - Matching path expression '/augeas/load/*['/etc/sudoers/spec[user = '%wheel' and host_group/host = 'ALL']/' !~ glob(incl) + regexp('/.*')]' failed Either the optimisation should be disabled with anything reasonably complex (probably best), or it'd have to escape any problematic characters (would need to check the pathx parser to see what it understands). -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
