DependencyTrack / DependencyTrack/dependency-track

Search by tag does not support slash

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

- Create a projet with a tag containing `/` character
- Found in the fulltext search
![](https://user-images.githubusercontent.com/16181031/233639880-49c68964-99b6-41ed-90b7-a777fa5fe823.png)
- Found with tag `ok`: `/projects/?tag=ok`
- **Not** found with tag `fa/il`: `/projects/?tag=fa%2Fil`
- No matching records found

### Steps to Reproduce

1. Create a projet with a tag containing `/` character
2. Click on the tag name
3. `/api/v1/project/tag/fa%2Fil?excludeInactive=true&onlyRoot=true&searchText=&pageSize=25&pageNumber=1`
- Returns 500 error

### Expected Behavior

`/api/v1/project/tag/fa%2Fil` returns 200 with found projects

### Dependency-Track Version

4.8.0

### Dependency-Track Distribution

Container Image

### Database Server

PostgreSQL

### Database Server Version

15.2 (postgres:latest)

### Browser

Mozilla Firefox

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