Skip to content

Login redirect from a resource page goes back to "job" URL that doesn't exist #2176

Closed

Description

@dsharp-pivotal

If I'm on a resource page https://example.com/teams/main/pipelines/<pipeline>/resources/<resource> and clicking something (like turning off a resource version) redirects to login, after logging in, the redirect goes to https://example.com/teams/main/pipelines/<pipeline>/jobs/<resource>? instead of back to the resource page.

This can be reproduced by logging out in a different tab.

  • Concourse version: 3.9.2
  • Deployment type (BOSH/Docker/binary): BOSH
  • Infrastructure/IaaS: GCP
  • Browser (if applicable): Chrome
  • Did this used to work?: not sure.

Activity

  1. added a commit that references this issue on Apr 24, 2018
  2. mhuangpivotal commented on Apr 24, 2018

    @mhuangpivotal
    Contributor

    @dsharp-pivotal We couldn't repro the issue, but we did find a bug that would've resulted in the behaviour you described. The fix should be in the next release (after v3.11.0).

  3. dsharp-pivotal commented on Apr 24, 2018

    @dsharp-pivotal
    Author

    @mhuangpivotal Cool, thanks.

    I'm surprised you couldn't repro. Here's some more details in case you want to try again:

    1. Log in (via GitHub)
    2. Navigate to a resource on a pipeline that requires login.
    3. In a second tab, log out
    4. When you click back to the resource tab page, it will redirect to login. (I noted that the redirect url parameter has the correct "resources" URL)
    5. Click "login with GitHub"
    6. 404 (b/c it has "jobs" instead of "resources" in the URL)
  4. added this to the v3.12.0 milestone on Apr 25, 2018
  5. dsharp-pivotal commented on May 1, 2018

    @dsharp-pivotal
    Author

    Yup, one of our deployments got upgraded to v3.12.0 today, and I can't reproduce it there. Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions