DependencyTrack / DependencyTrack/dependency-track
Using saved information in Edge leads to unvalid HTTP-request
- Dominant language
- Java
- Stars
- 4.2k
- Forks
- 811
- Avg merge
- 8h 39m
- Merged PRs (30d)
- 237
Description
### Current Behavior
When using saved information to fill out a HTML form quickly, Edge will send "" instead of NULL for some request parameters, making the request unvalid in some cases.
### Steps to Reproduce
1. Create a component with only a name and a version (CPE input field is empty)
2. Create the same component again, until Edge will suggest to fill out the form for you with saved information
3. Note that the CPE input field is still empty, as for all requests before (no whitespace)
4. Get HTTP status 400 (Reason for that is, that "" was send as CPE instead of NULL)
### Expected Behavior
DT should also accept "" being send by the browser as value instead of NULL.
### Dependency-Track Version
4.12.2
### Dependency-Track Distribution
Container Image
### Database Server
PostgreSQL
### Database Server Version
14.7
### Browser
Microsoft Edge
### 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
Assessment
This issue has not been assessed yet.