Reproducer with Maven
Analysis a multi-module project (eg. project contains module C in module B in module A).
Move a module (eg. remove module B).
Moved module can not be accessed from the UI anymore.
First analysis with modules A, B and C:
Second analysis with only module A and C:
- code page for module A (it is empty!):
- note that module B and C can still be accessed by direct link and that they are displayed in the same location as the first analysis
Reproducer with CLI scanner
Override the key of module C to be constant using property sonar.moduleKey.
The column UUID_PATH is never updated even though it can change over time: eg. when a module B is moved.
Another identified bug with the same cause
When renaming or moving a file such as it's new key is the same as a file which was (logically) deleted at the time of the migration to 6.0, the file will appear at the root of the project.
The cause is the same of this behaviour is the same as above, the UUID_PATH of the component is not updated, combined with the fact that the UUID_PATH of deleted component is set to "I belong directly to the project" during the migration which creates and populates the UUID_PATH column.