Commit 52f5e4e8 authored by Riabokon Stanislav(EPAM)[GCP]'s avatar Riabokon Stanislav(EPAM)[GCP]
Browse files

Merge branch 'gcp-getRetrievalInstructions-500-status-with-wrong-tenant' into 'master'

Gcp get retrieval instructions 500 status with wrong tenant (GONRG-2432)

See merge request !100
parents 6eeaed26 b6cd9405
Pipeline #40586 failed with stages
in 24 minutes and 46 seconds
......@@ -124,7 +124,7 @@ public class DatasetDmsServiceImpl implements DatasetDmsService {
for (String datasetRegistryId : datasetRegistryIds) {
if (!Record.isRecordIdValidFormatAndTenant(datasetRegistryId, headers.getPartitionId())) {
throw new AppException(HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), String.format("Dataset Registry: '%' is an Invalid ID"), datasetRegistryId);
throw new AppException(HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), String.format("Dataset Registry: '%s' is an Invalid ID", datasetRegistryId), datasetRegistryId);
}
......
......@@ -102,6 +102,25 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.7.7.201606060606</version>
<executions>
<execution>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>report</id>
<phase>prepare-package</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment