## The problem
The chocolatey_package resource failed to install a package when a version was specified, because Chef lowercased the package name before querying the source. With a case-sensitive Artifactory Chocolatey repo, the lowercased name did not match, so the install failed. Without a version the case-insensitive search worked, which made the failure confusing.
## The fix
Chef's behavior is technically correct; the bug was in JFrog Artifactory, which did case-insensitive search without a version but case-sensitive lookup with one. Upgrade Artifactory to 6.1.0 or later, where the issue was fixed upstream, and the same chocolatey_package resource with a version works. Several reporters confirmed the Artifactory upgrade resolved it.