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!

    User gets 500 error if you delete a logged in user

    Scheduled Pinned Locked Moved Support
    4 Posts 3 Posters 16 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.
    • P Offline
      pg_user_8607
      last edited by pg_user_8607

      Hey there,

      I noticed what looks like an unhandled edge case around deleted users with active sessions.

      I started a fresh instance using:

      podman run -d --name=proget --restart=unless-stopped -p 80:80 proget.inedo.com/productimages/inedo/proget:latest
      

      Then I:

      1. Created a user test:test
      2. Logged in as test:test in an incognito browser session
      3. Deleted the user from the original admin session
      4. Refreshed the page in the incognito session

      Instead of being redirected to the login page, I get an HTTP 500 error.

      I would have expected the session to be invalidated and the user to be redirected back to the login page since the account no longer exists.

      stevedennisS 1 Reply Last reply Reply Quote 0
      • stevedennisS Offline
        stevedennis inedo-engineer @pg_user_8607
        last edited by

        Hello,

        Thanks for reporting this; this behavior is by design.

        ProGet uses authentication tickets (i.e. encrypted cookies). If the username on a valid ticket cannot be located in the user directory, then a "user not found" error will occur, as it did here.

        This errant behavior is generally desired for troubleshooting cases where users are intermittently not available from a user directory. Otherwise it's very difficult to troubleshoot, since it will just appear as a random log-out.

        Thanks,
        Steve

        1 Reply Last reply Reply Quote 0
        • P Offline
          pg_user_8607
          last edited by

          This post is deleted!
          apxltdA 1 Reply Last reply Reply Quote 0
          • apxltdA Offline
            apxltd inedo-engineer @pg_user_8607
            last edited by

            This post is deleted!
            1 Reply Last reply Reply Quote 1

            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