Skip to content

Commit 6cef10b

Browse files
Sabrina Juarez GarciaBeta Bot
authored andcommitted
Cherry pick branch 'genexuslabs:feature/Update_AzureStorage_SDK' into beta
1 parent 0024480 commit 6cef10b

File tree

3 files changed

+27
-2
lines changed

3 files changed

+27
-2
lines changed

gxcloudstorage-azureblob-latest/src/main/java/com/genexus/db/driver/ExternalProviderAzureStorageLatest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -660,8 +660,8 @@ private String getExternalFileName(String externalFileName)
660660

661661
private void handleAndLogException(String message, Exception ex) {
662662
if (ex instanceof BlobStorageException) {
663-
logger.error("Azure Storage error: {} (Status: {}, Code: {})",
664-
((BlobStorageException) ex).getServiceMessage(), ((BlobStorageException) ex).getStatusCode(), ((BlobStorageException) ex).getErrorCode());
663+
logger.error("Azure Storage error: (Status: {}, Code: {})",
664+
((BlobStorageException) ex).getStatusCode(), ((BlobStorageException) ex).getErrorCode());
665665
} else if (ex instanceof ClientAuthenticationException) {
666666
logger.error("Authentication error: {}", ex.getMessage());
667667
} else if (ex instanceof HttpRequestException) {

gxcloudstorage-tests/pom.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,12 @@
4242
<version>${project.version}</version>
4343
<scope>test</scope>
4444
</dependency>
45+
<dependency>
46+
<groupId>${project.groupId}</groupId>
47+
<artifactId>gxcloudstorage-azureblob-latest</artifactId>
48+
<version>${project.version}</version>
49+
<scope>test</scope>
50+
</dependency>
4551
<dependency>
4652
<groupId>${project.groupId}</groupId>
4753
<artifactId>gxcloudstorage-awss3-v1</artifactId>
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
package com.genexus.db.driver;
2+
3+
4+
public class TestExternalProviderAzureLatest extends TestExternalProvider {
5+
@Override
6+
public String getProviderName(){
7+
return ExternalProviderAzureStorage.NAME;
8+
}
9+
10+
@Override
11+
public ExternalProvider getExternalProvider() throws Exception {
12+
return new ExternalProviderAzureStorageLatest();
13+
}
14+
15+
@Override
16+
public boolean supportsObjectAcls() {
17+
return false;
18+
}
19+
}

0 commit comments

Comments
 (0)