DependencyTrack / DependencyTrack/dependency-track

PATCH v1/project/{id} doesn't update properties

Open
#2,937 5 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

Similar to #2695, but for project properties instead of external references.

Reproducing on api-server 4.7.0 using curl:

```
curl -H "Content-Type: application/json" -H "X-API-Key: for-my-eyes-only" https://dependency-track-is-awe.some/api/v1/project/098f5f0b-2e3c-43c6-bcd9-0885d6524611 -X PATCH -d '{"properties": [{"groupName": "my-group", "propertyName": "my-prop-name", "propertyValue": "1234", "propertyType": "STRING"}]}'
```

Result: http 304, no change in the project. Same technique worked for project tags though.

### Steps to Reproduce

See #2695.

### Expected Behavior

Project properties get updated using PATCH v1/project/{id}.

### Dependency-Track Version

4.7.x

### Dependency-Track Distribution

Container Image

### Database Server

PostgreSQL

### Database Server Version

_No response_

### Browser

Google Chrome

### 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.