Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dtrack-API with contextpath not accessible #170

Closed
Zohhak opened this issue May 12, 2023 · 0 comments
Closed

Dtrack-API with contextpath not accessible #170

Zohhak opened this issue May 12, 2023 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@Zohhak
Copy link

Zohhak commented May 12, 2023

Describe the bug

When the Dependency-Track-API is deployed behind a proxy with an added contextpath, the current master version of the depdency-track-plugin is unable to access it. Its already not working when testing the connection on the "configure jenkins"-site.
Examples:
configured Dependency-Track Backend URL: https://xyz.com/dtrack-api
expected generated test url: https://xyz.com/dtrack-api/api/v1/project
current wrong generated url: https://xyz.com/api/v1/project

with that a 404 is returned and the plugin is not usable anymore.

Environment

  • Plugin Version: master 5.0.0-SNAPSHOT
  • Jenkins Version: 2.387.3
  • Java Version for Jenkins: 11
  • Type of Jenkins Job: declarative pipeline (but should not matter)
  • Dependency-Track Version: 4.8.0

To Reproduce

Steps to reproduce the behavior:

  1. Setup dtrack-api with context-path
  2. configure plugin with url
  3. test connection
  4. See error

Expected behavior

dependency-track-plugin honours context-path when building urls

@Zohhak Zohhak added the bug Something isn't working label May 12, 2023
@Zohhak Zohhak changed the title Dtrack-API with contextpath not accessable Dtrack-API with contextpath not accessible May 12, 2023
@sephiroth-j sephiroth-j added this to the v5.0.0 milestone May 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants