Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    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

    Scheduled Pinned Locked Moved Support
    progetpackages
    9 Posts 1 Posters 13 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ? This user is from outside of this forum
      Guest
      last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • ? This user is from outside of this forum
        Guest
        last edited by

        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

        1 Reply Last reply Reply Quote 0
        • ? This user is from outside of this forum
          Guest
          last edited by

          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.

          1 Reply Last reply Reply Quote 0
          • ? This user is from outside of this forum
            Guest
            last edited by

            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

            1 Reply Last reply Reply Quote 0
            • ? This user is from outside of this forum
              Guest
              last edited by

              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!

              1 Reply Last reply Reply Quote 0
              • ? This user is from outside of this forum
                Guest
                last edited by

                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.

                1 Reply Last reply Reply Quote 0
                • ? This user is from outside of this forum
                  Guest
                  last edited by

                  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.

                  1 Reply Last reply Reply Quote 0
                  • ? This user is from outside of this forum
                    Guest
                    last edited by

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

                    1 Reply Last reply Reply Quote 0
                    • ? This user is from outside of this forum
                      Guest
                      last edited by

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

                      1 Reply Last reply Reply Quote 0

                      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                      With your input, this post could be even better 💗

                      Register Login
                      • 1 / 1
                      • First post
                        Last post
                      Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation