DependencyTrack / DependencyTrack/frontend
Manual rebuild of "CPE" index doesn't work
- Dominant language
- Vue
- Stars
- 171
- Forks
- 250
- Avg merge
- 10h 56m
- Merged PRs (30d)
- 84
Description
### Current Behavior
When attempting to rebuild the CPE index, an error occurs. This appears to be because there is no CPE index (based on [looking at the source code](https://github.com/DependencyTrack/dependency-track/blob/master/src/main/java/org/dependencytrack/search/IndexManager.java#L120)).
Note that requesting a rebuild of any of the other indexes works fine.
Logs contain:
```
2025-09-16 16:16:19,569 WARN [WebComponent] A servlet request to the URI https:///api/v1/search/reindex?type=CPE contains form parameters in the request body but the request body has been consumed by the servlet or a servlet filter accessing the request parameters. Only resource methods using @FormParam will work as expected. Resource methods consuming the request body by other means will not work as expected.
```
### Steps to Reproduce
1. Navigate to Administration -> Configuration -> Search
2. Under "General - Manual Rebuild" select the "CPE" toggle
3. Click "Rebuild index(es)"
### Expected Behavior
Requesting a rebuild of any of the listed indexes does not produce an error.
### Dependency-Track Frontend Version
4.13.4
### Browser
Mozilla Firefox
### Browser Version
_No response_
### Operating System
macOS
### 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/frontend/issues) for whether this defect was already reported
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the linked src/main/java/org/dependencytrack/search/IndexManager.java and reproduce the failure through Administration > Configuration > Search. Trace the CPE toggle's request to /api/v1/search/reindex?type=CPE and confirm which indexes are supported before deciding the UI change. Done means every listed manual rebuild option works without error and the other index rebuilds still succeed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- frontend, search
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100