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!

    ProGet: silent fail when uploading conflicting package version

    Scheduled Pinned Locked Moved Support
    15 Posts 2 Posters 37 Views 1 Watching
    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.
    • MaxCasconeM Offline
      MaxCascone @rhessinger
      last edited by

      @rhessinger thanks - i actually want it to overwrite. I'm just not getting an error when it looks like it's not doing that, based on the date of the package upload.

      1 Reply Last reply Reply Quote 0
      • rhessingerR Offline
        rhessinger inedo-engineer
        last edited by

        Hi @mcascone_8142,

        What version of ProGet are you running? When I tested it in 5.3.6, I noticed the Published Date on the metadata tab changed to today.

        Thanks,
        Rich

        Products Engineer, Inedo

        MaxCasconeM 1 Reply Last reply Reply Quote 0
        • MaxCasconeM Offline
          MaxCascone @rhessinger
          last edited by

          @rhessinger i'm getting back to testing this now. I'm still on 5.3.0 (build 126), and i believe the api user has all the perms it needs, and it's still not overwriting.
          I tested the latest version locally, and it does overwrite. So something on my production server isn't right, or the older version acts differently.

          1 Reply Last reply Reply Quote 0
          • rhessingerR Offline
            rhessinger inedo-engineer
            last edited by

            Hi @mcascone_8142,

            It is possible that this was fixed with another issue between 5.3.0 and 5.3.7. I would recommend updating 5.3.7 and testing it again. If it still happens, it would have to be a difference in tasks or how the user is configured that the API is impersonating. You could try to not impersonate a user for that API Key. The API would then run as an administrator.

            Thanks,
            Rich

            Products Engineer, Inedo

            1 Reply Last reply Reply Quote 0
            • MaxCasconeM Offline
              MaxCascone
              last edited by MaxCascone

              Ok, i've got the latest version 5.3.7 on local and production, and i'm still seeing no change in the "published" date when i upload a package with an existing version number. However, in the Event Log, I do see several "Package Modified" events for that package, so it looks like the request is coming in and something is happening. Is it because I am testing this with the same exact upload package each time, so the hash is the same, so it's determining it's exactly the same package, so it doesn't update the metadata? If i change the package with a new/changed file, should it update the metadata? I'll update when i test.

              UPDATE: I added a test file to the uploaded package without changing the version. My observation is that the new package is uploaded. However there's no indication that the overwrite happened. The Event Log is the only clue, that it was Updated.

              I think what i would like to see is that history of the package in the package's history page, and a Last Updated date being added to the Metadata tab. And the full history of updates etc should be in the package's History tab.

              But at least i think i've proven that updated packages with conflicting versions are uploaded - there's just very little evidence of the overwrite happening. If there's anything else I'm missing, please let me know.
              thanks!

              1 Reply Last reply Reply Quote 0
              • rhessingerR Offline
                rhessinger inedo-engineer
                last edited by

                Hi @mcascone,

                Can you please tell me what feed type you are using? Could you also include an example of the API request you are using? When I add the package manually from the UI, I noticed that the published date does change. If this is not happening with the API call, then I will need to create an internal ticket with steps to recreate it.

                Thanks,
                Rich

                Products Engineer, Inedo

                MaxCasconeM 1 Reply Last reply Reply Quote 0
                • MaxCasconeM Offline
                  MaxCascone @rhessinger
                  last edited by

                  @rhessinger Hi, I'm sorry i didn't see your reply come in sooner.

                  I am using a Universal Package feed.

                  I'm uploading with the Jenkins extension, which i believe just wraps the API, but I'm not sure.

                  It's a very simple call, it won't show much, but this is it:

                    uploadProgetPackage artifacts:   env.artifact,
                                        feedName:    env.feedName,
                                        groupName:   env.groupName,
                                        packageName: env.appName,
                                        version:     env.tag 
                  

                  thanks
                  max

                  1 Reply Last reply Reply Quote 0
                  • rhessingerR Offline
                    rhessinger inedo-engineer
                    last edited by

                    Hello @mcascone,

                    Thanks for sending this over to me. So there looks to be an issue with the universal feed not updating the published date when overwriting a package. I happened to test 3 other feed types and it worked fine. I have created an internal ticket to fix this and I will update you as soon as it is scheduled for release.

                    Thanks,
                    Rich

                    Products Engineer, Inedo

                    MaxCasconeM 1 Reply Last reply Reply Quote 0
                    • MaxCasconeM Offline
                      MaxCascone @rhessinger
                      last edited by

                      @rhessinger Thank you!!

                      1 Reply Last reply Reply Quote 0
                      • rhessingerR Offline
                        rhessinger inedo-engineer
                        last edited by

                        Hi @mcascone ,

                        We have fixed the issue and the published date will now update when the package is overwritten. This will be released in ProGet 5.3.9 which is due out this Friday Augst 14, 2020.

                        Thanks,
                        Rich

                        Products Engineer, Inedo

                        1 Reply Last reply Reply Quote 1
                        • MaxCasconeM Offline
                          MaxCascone
                          last edited by

                          Fantastic, looking forward to it! Sorry for the work, but i'm happy to contribute in some small way as well!

                          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