django-DefectDojo icon indicating copy to clipboard operation
django-DefectDojo copied to clipboard

Allow products with same name in different prodcut type of defect dojo.

Open kuldeep0508 opened this issue 3 years ago • 2 comments

On defect dojo we can't have same product_name in two diff product type e.g.

In below screenshot training-quiz(product) is present in Research and Development(prodcut type)

image

And If I try to create training-quiz(product) in Demo Product Type from UI too I am getting below error on UI.

Product with this Name already exists.

image

With defect dojo apis we are getiing

400 Client Error: Bad Request for url: https://defect-dojo.xxx/api/v2/products/

This should not be the case, in a big organization project name can clash and it totally depends up on the use-case.

uniqueness should be based on product_name + product_type

kuldeep0508 avatar Aug 19 '22 12:08 kuldeep0508

This fix is important and should be taken into account

saloni410 avatar Aug 30 '22 11:08 saloni410

I raised this issue before https://github.com/DefectDojo/django-DefectDojo/pull/4659 , but looks there are too many dependencies and it will break many things

dsever avatar Sep 01 '22 13:09 dsever