DependencyTrack / DependencyTrack/dependency-track

project Latest version

Open
#5,757 0 comments 1 reaction 0 assignees View on GitHub
defect in triage
Dominant language
Java
Stars
4.2k
Forks
811
Avg merge
8h 39m
Merged PRs (30d)
237

Description

### Current Behavior

I’m using Dependency-Track v4.13.6, and I’m trying to retrieve the latest version of a project using the corresponding API endpoint. The request works correctly for some project names, but for others—despite the projects existing in my DTrack instance—the API returns “The project could not be found.”
I’ve already verified that the API token, permissions, and endpoint usage are correct, but the issue still occurs

/v1/project/latest/{name}:
get:
tags:
- project
summary: Returns the latest version of a project by its name
description:

Requires permission VIEW_PORTFOLIO


operationId: getLatestProjectByName
parameters:
- name: name
in: path
description: The name of the project to retrieve the latest version of
required: true
schema:
type: string
responses:
"200":
description: The latest version of the specified project
content:
application/json:
schema:
$ref: "#/components/schemas/Project"
"401":
description: Unauthorized
"403":
description: Access to the specified project is forbidden
"404":
description: The project could not be found
security:
- ApiKeyAuth: []

### Steps to Reproduce

1.i cant provide the project name but here is the curl command i used
curl --location 'https://**********.com/api/v1/project/latest/******' \
--header 'X-Api-Key: ****************************' \
--header 'Accept: application/json'

### Expected Behavior

i want the latest version of a particular project for all the projects

### Dependency-Track Version

4.13.6

### Dependency-Track Distribution

Container Image

### Database Server

PostgreSQL

### Database Server Version

_No response_

### Browser

N/A

### Checklist

- [x] I have read and understand the [contributing guidelines](https://github.com/DependencyTrack/dependency-track/blob/master/CONTRIBUTING.md#filing-issues)
- [x] I have checked the [existing issues](https://github.com/DependencyTrack/dependency-track/issues) for whether this defect was already reported

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.