Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

Problem with Update-Package -reinstall



  • It seems that Proget server has a problem dealing with Update-Package command with a -reinstall command parameter.

    Nuget client will send something like Get /nuget/Default/Packages(Id='My.Package',Version='1.0.0.0')/Id HTTP/1.1 but Proget's answer will be "HTTP/1.1 400 Invalid request URL." As a result, Nuget client reports "Skipped reinstalling package 'My.Package.1.0.0.0' in project 'TestProject' because the package does not exist in the package source."

    Please confirm if this is not supported by Proget yet. And if not yet, please support it. Thanks.



  • Hi Karl,

    Apologies for the delay, but this should already work in ProGet v2.1.4, I believe it was fixed as part of PG-125: http://inedo.com/proget/release-notes



  • Hi Tod,

    Thanks for your reply but I am already using 2.1.3. I post the question after upgrading to 2.1.3.

    Could you make sure this is working by simply try upgrade-package Some.Package.Name -reinstall on your proget server? I think it is very easy to reproduce.



  • Sorry for the type of my last reply. Should be :

    Thanks for your reply but I am already using 2.1.4. I post the question after upgrading to 2.1.4.

    Thanks,
    Karl



  • Looks like I misread your initial problem report and 2.1.4 fixed the issue only for package restore/nuget.exe (the package manager console seems to send a slightly different query).

    Both issues are fixed in 2.2.1, which is available for download now.

    Thanks for the report!



  • I am running the latest version, that is 2.2.4, but this issue seems still to be broken.
    nuget client sends the following request:

    GET /nuget/Default/Packages(Id='NUnit',Version='2.6.3')

    Bu proget replies with the following:

    PackagesODataHandler: Invalid request URL. (/nuget/Default/Packages(Id%3D'NUnit'%2CVersion%3D'2.6.3') did not match ^/nuget/(?<1>[^/]+)/Packages(?<2>(((?<3>[^=]+)=(?<4>('[^']')|[^,)]),?)*))?(/(?<5>((?<!%24)^$)+)?)?(?<6>($|%24)count)?$)

    It stops us using proget for nuget restore feature.



  • We were able to reproduce this on a machine with .NET 4.5.1 (the default on Server 2012 R2), is that installed on the machine that hosts your ProGet instance?

    If that is the case, then v2.2.5 should resolve your issue.



  • Yes, this is the exact installation we have right now. Will be waiting for 2.2.5 release.
    Thank you for quick response.



  • I just noticed you actually have already released 2.2.5
    I confirm that it does resolve our issue.
    Great support, thank you!



Inedo Website HomeSupport HomeCode of ConductForums GuideDocumentation