SCM URLs for git@server:repo
(without an explicit schema like ssh://
) do not render right
#1007
Open
2 tasks done
Labels
defect
Something isn't working
good first issue
Good for newcomers
hacktoberfest
Issues eligible for Hacktoberfest contributions
p3
Nice-to-have features
size/S
Small effort
Current Behavior
In my SBOM documents I have "components[] / externalReferences[]" as lists of objects like
{ "type": "vcs", "url": "scm:git:git@server:group/repo.git" }
where the URL-ish partgit@...
does not have any schema likegit+ssh://
or plainssh://
(its just is as it comes frompom.xml
files).In Dependency-Track web-ui such links are rendered verbatim, e.g.
scm:git:[email protected]:lukas-krecan/JsonUnit.git/json-unit-assertj
so the browser leads nowhere - and there's even no schema prefix to register a handler for, I think (musing aboutscm:git://
prefix for users to somehow deal with if desired, or smart rewrite into the more standardgit+ssh://[email protected]:lukas-krecan/JsonUnit.git/json-unit-assertj
right away?)Also note that URL entries mis-written as just
git@...
without anscm:git:...
prefix are rendered as relative links under the Dependency-Track server root URL (e.g.http://localhost:8080/components/git@...
), I suppose these links should always be absolute even if useless.Steps to Reproduce
Expected Behavior
git@...
links without a prefix/schema meangit+ssh://
in factDependency-Track Version
4.11.7
Dependency-Track Distribution
Container Image
Database Server
PostgreSQL
Database Server Version
No response
Browser
Mozilla Firefox
Checklist
The text was updated successfully, but these errors were encountered: