Issue #7004 has been updated by Brice Figureau.
Nick Fagerlund wrote:
> This also affects the `resource_type` endpoint.
This affects all indirections ending with a 'e' (including the
instrumentation_probe).
Because to unpluralize the uri to find the correct indirection, we use:
<pre>
indirection.sub!(/s$|_search$|es$/, '')
</pre>
Since regexes are greedy, the last one matches. This is isn't a problem for the
general case, but as Nick pointed above it makes it impossible to write faces
that uses those indirections ending in 'e'.
The bug was introduced in:
commit:d1f1858ea52d3089fd2088994e80d6f49d7e0347
----------------------------------------
Bug #7004: REST endpoint pluralization broken for certificates, resources,
possibly others
https://projects.puppetlabs.com/issues/7004
Author: Matt Robinson
Status: Accepted
Priority: Normal
Assignee:
Category:
Target version:
Affected Puppet version:
Keywords:
Branch:
Currently certificates as a plural maps to certificat as a singular, so search
doesn't work. The certificate_search endpoint does work, but it should be easy
to fix the plurality issue.
--
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.