The vendor and product String parameters passed to fuzzySearch() might
contain spaces, as the frontend does not prevent inputting these when
manually creating a component. As far as I know CycloneDX and SPDX
also do not restrict this, so imported components could also contain
spaces in their name and vendor properties.
As fuzzySearch() creates a new CPE object which is validated inside the
constructor, this will cause exceptions to be logged for all components
that contain spaces.
I have added a simple replace before passing these strings to the CPE
constructor to prevent the exceptions from being thrown.
Signed-off-by: jonbally <19593213+jonbally@users.noreply.github.com>
* Fix: Restoring lucene index build during startup by having a dedicated listener
A REST API is also exposed to allow index rebuild through the GUI. See #2104
Automatic periodic consistency check with database are performed if enabled
Signed-off-by: Alioune SY <sy_alioune@yahoo.fr>
* Fix: Restoring lucene index build during startup by having a dedicated listener
Takint into account review comments
Signed-off-by: Alioune SY <sy_alioune@yahoo.fr>
* Fix: Restoring lucene index build during startup by having a dedicated listener
Fixing unit tests.
Signed-off-by: Alioune SY <sy_alioune@yahoo.fr>
Signed-off-by: Alioune SY <sy_alioune@yahoo.fr>
Fixes#2104