Hi, I've hit an issue with Nexus and NuGet.
I have multiple repositories:
nuget-dotnet-firstparty
nuget-dotnet-thirdparty
nuget-dotnet-generated
etc
and a group repository called:
nuget-dotnetwhich brings all of the above together.
This is all on the server "
DepServer".
When I try to do a "nuget restore" when the client has access to nuget-dotnet (the group repository) only I get the following:
WARNING: Error downloading 'MyPackage.1.2.3' from 'https://DepServer:8443/repository/nuget-dotnet-firstparty/MyPackage/1.2.3'.
The HTTP request to 'GET https://DepServer:8443/repository/nuget-dotnet-firstparty/MyPackage/1.2.3' has timed out after 100000ms
Now, the client has no references to "
nuget-dotnet-firstparty", and so no security access set up for it. But it shouldn't need it, because it has access to the group.
I couldn't work out why it was that it was having this issue, so I went looking through the information on the server via the nuget protocol. What I found was:
https://DepServer:8443/repository/nuget-dotnet/points to
https://DepServer:8443/repository/nuget-dotnet/PackagesEach entry has a link with a title of
V2FeedPackage an an href of "
Packages(Id='MyPackage',Version='1.2.3')"
Following one of those URLs shows that a line with - content type="
application/zip" and a src of "
https://DepServer:8443/repository/nuget-dotnet-firstparty/MyPackage/1.2.3"
However, as the client has no access to the "nuget-dotnet-firstparty" repository, only to the group repository, that's when the error occurs.
Is this a bug in the Nexus implementation of the nuget protocol? Or have I misunderstood something? I thought the whole point of a group was that I wouldn't need to give access to every repo, just the group one.
(I'm using OSS 3.6.0-02 - I can't see a bugfix for this issue in the release notes, or I'd have upgraded already.)
Thanks for any help you can provide!
Andy