]> source.dussan.org Git - sonarqube.git/commit
SONAR-6323 Fix duplication on removed file
authorJulien Lancelot <julien.lancelot@sonarsource.com>
Fri, 13 Nov 2015 12:56:16 +0000 (13:56 +0100)
committerJulien Lancelot <julien.lancelot@sonarsource.com>
Fri, 13 Nov 2015 16:43:12 +0000 (17:43 +0100)
commit0feeea6c806bb1e3834cb14241df7b21de4a657f
treeddb8954a682a2981197463b496f0352f3264b3d7
parent814378a88f0b75f943d043e48d2a61488d83f134
SONAR-6323 Fix duplication on removed file

Due to a bad refactoring in 5.2, when a duplication was linked on a removed file, it was failing with an error 500.
Instead, the duplicated file key should be null.
This use case can only happen on cross project duplication, when a project is deleted
server/sonar-server/src/main/java/org/sonar/server/duplication/ws/DuplicationsParser.java
server/sonar-server/src/test/java/org/sonar/server/duplication/ws/DuplicationsParserTest.java