NXRM 3.42.0-01 calling service/rest/v1/docker/proxy/{repo} returns 401

32 views
Skip to first unread message

Mariska

unread,
Oct 24, 2022, 5:58:01 AM10/24/22
to Nexus Users
Hello,
After I upgraded our instance  3.41.1-01 to 3.42.0-01 the service/rest/v1/docker/proxy/{repo} returns a 401 with admin account. When tried in the UI via the API page, it gives a "Error: Server Error".
The service/rest/v1/docker/hosted/{repo} does work.

Anyone else having this issue and knows the solution/workaround?

Kind regards, 
Mariska Hoogenboom

Mariska

unread,
Oct 24, 2022, 6:07:43 AM10/24/22
to Nexus Users, Mariska
Correction, the hosted repo's also give 401 when tried via curl.

Mariska

unread,
Oct 24, 2022, 7:51:23 AM10/24/22
to Nexus Users, Mariska

Hosted repo does work, but when I use the rest api for a proxy repository, I get:

$ curl -k -s -X GET -w "HTTP_STATUS:%{http_code}" -u "${NEXUS_ADMIN_USERNAME}:${NEXUS_ADMIN_PASSWORD}" -H "Content-Type: application/json" 'http
s://nexus.domain.our/service/rest/v1/repositories/docker/proxy/my-proxy'

ERROR: (ID aa9ec675-67fa-4371-bdcd-77105be5b26f) java.lang.ClassCastException: Cannot cast org.sonatype.nexus.common.collect.DetachingList to java.util.ArrayL
istHTTP_STATUS:500

This is quite a problem for us actually. I just tested again with 3.41.1-01 and the same call works in that version.

Hope there is a fix.

Mariska

unread,
Oct 24, 2022, 8:52:47 AM10/24/22
to Nexus Users, Mariska

It seems related to this bug: https://issues.sonatype.org/browse/NEXUS-35515
Reply all
Reply to author
Forward
0 new messages