Skip to content

Switch Between Project Versions Gives HTTP 404 for all but Overview Tab #641

Closed

Description

@msymons

Current Behavior

Switching between project versions gives an HTTP 404 unless the current tab being viewed is "Overview".

Steps to Reproduce

  1. Navigate to project that has more than one version.
  2. On Overview tab, use version dropdown to switch to another version. Success.
  3. Click on any other tab. eg Components.
  4. Use version dropdown to switch to another version of project. HTTP 404.

image

Problem is that (using Components tab as example) switch should be from:

https://dependency-track.foo.bar.com/projects/xxx/components

to:

https://dependency-track.foo.bar.com/projects/yyy/components

...but is actually to:

https://dependency-track.foo.bar.com/projects/xxx/yyy

Tested on DT v4.9.1 and also on v4.10.0-SNAPSHOT

Expected Behavior

There should be no HTTP 404 errors when switching from one version of a project to another, no matter what tab is being viewed.

When switching, the tab should remain unchanged.

Dependency-Track Frontend Version

4.10.0-SNAPSHOT

Browser

Mozilla Firefox

Browser Version

119.0

Operating System

Windows

Checklist

Activity

  1. added
    defect
    and removed on Nov 5, 2023
  2. rkg-mm commented on Dec 2, 2023

    @rkg-mm
    Contributor

    I actually just found this and fixed this in another PR #658

  3. nscuro commented on Dec 2, 2023

    @nscuro
    Member

    @rkg-mm Awesome! The whole of #658 will not make it into 4.10 anymore, but a fix for this bug we can still include. Would you be willing to split it into a separate, smaller PR?

  4. rkg-mm commented on Dec 2, 2023

    @rkg-mm
    Contributor

    @nscuro done

  5. added this to the 4.10 milestone on Dec 3, 2023
  6. added a commit that references this issue on Dec 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    defect

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions