Do you have a workaround you are using at present?
Yes. I can use the working query with jq selector:
jq -r '.items | map(select(has("maven2") and (.maven2 | has("classifier") | not))) | sort_by(.lastModified) | reverse | last | .downloadUrl'
What feature or behavior is this required for?
Integration with pipelines downloading the latest SNAPSHOT version.
How could we solve this issue? (Not knowing is okay!)
Probably there's an issue with Elasticsearch index on this property?
Tell us about your Nexus Repository deployment: what version, operating system, and database are you using?
Neither of the following requests return any results:
http://nexus-host/service/rest/v1/search/assets?repository=company-snapshots&group=com.company.product&name=some-service&maven.baseVersion=2.0.5-SNAPSHOT&maven.extension=jar&maven.classifier=""
http://nexus-host/service/rest/v1/search/assets?repository=company-snapshots&group=com.company.product&name=some-service&maven.baseVersion=2.0.5-SNAPSHOT&maven.extension=jar&maven.classifier=
http://nexus-host/service/rest/v1/search/assets?repository=company-snapshots&group=com.company.product&name=some-service&maven.baseVersion=2.0.5-SNAPSHOT&maven.extension=jar&maven.classifier
Whereas the following returns results (the only difference is lack of
maven.classifier
selector)http://nexus-host/service/rest/v1/search/assets?repository=company-snapshots&group=com.company.product&name=some-service&maven.baseVersion=2.0.5-SNAPSHOTS&maven.extension=jar
Yes. I can use the working query with
jq
selector:jq -r '.items | map(select(has("maven2") and (.maven2 | has("classifier") | not))) | sort_by(.lastModified) | reverse | last | .downloadUrl'
Integration with pipelines downloading the latest SNAPSHOT version.
Probably there's an issue with Elasticsearch index on this property?
OSS 3.58.1-02
,RHEL8.10
andOrient Embedded DB