Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

Search with binary versions using retrieval=any returns wrong results #258

Open
quintesse opened this issue Feb 22, 2016 · 1 comment
Open
Milestone

Comments

@quintesse
Copy link
Contributor

Issue eclipse-archived/ceylon#5990 turns out to be the Herd returning different results than the local CMR.

Right now when you pass the binary versions for both JVM and JS artifacts the Herd will perform an AND even when retrieval=any, ie. it will only return artifacts that have the correct binary versions set for both backends. This is not according to the definition of retrieval=any.

So for example the following query should return versions 1.2.0 (valid for JVM only) and 1.2.1 (valid for both JVM and JS):

https://modules.ceylon-lang.org/api/5/complete-versions?module=ceylon.collection&version=&type=.car%2C.jar%2C-model.js%2C.js%2C.dart%2C-dartmodel.json%2Cmodule-resources%2C.src%2C-sources.jar%2Cmodule-doc%2C.scripts.zip%2Cmodule.properties%2Cmodule.xml%2Cmodule-resources%2Cmodule-doc&binaryMajor=8&binaryMinor=0&memberName=&memberSearchPackageOnly=false&memberSearchExact=false&retrieval=any&jvmBinaryMajor=8&jvmBinaryMinor=0&jsBinaryMajor=9&jsBinaryMinor=0

This happens even when the affected artifact isn't part of the requested artifact types! (So even when only looking for JVM artifacts the fact that a JS artifact exists with the wrong binary version is enough to exclude it from the results).

@FroMage
Copy link
Contributor

FroMage commented Feb 22, 2016

Good things we now have working Herd tests in the CMR :)

@FroMage FroMage modified the milestones: 1.23, 1.24 Sep 12, 2016
@FroMage FroMage modified the milestones: 1.24, 1.25 Apr 28, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants