Issue
Application shows up in the Contrast UI with (1) alongside it.
Cause
This is what's happening:
- If an app is reported by the agent as
baa
, but you change the display name in the UI tofoo
- then an app is reported by the agent asfoo
, it'll get calledfoo(1)
. - If an app is reported by the agent as
foo
- then another app is reported by the agent asfoo
, they both report tofoo
.
It basically comes down to what the agent is reporting in - if they're the same, they get treated as the same app, if they differ they get treated separately, even if the display name's manually been changed to be the same in the UI.
Resolution
There's effectively 2 options:
- You can merge the 2 apps together
foo
and foo(1)
. Both agents will then happily report to the single app entry. The downside of this is that the LOC count will include both "apps". There may also be some duplicate vulns from each module. These can be manually merged but requires some effort. - You can fully delete (archive then delete) the existing app entry, renamed,
foo
. Any new agents coming in with the name correctly set in their config will take it's place. This is a little more effort now, but the "cleanest" option for future.