Commit cf88797
Fix Azure blobstore error instantiating AzureClient
commit 72ce566 "Avoid infinite number of calls to listBlobs when
doing prefix removals (e..g, gridset or layer removals)"
changed the gwc `AzureClient` check for container existence from an
attemp to create it to an attempt to get its properties before creating
it.
When the container doesn't exist, the blocking call throws
`com.microsoft.azure.storage.blob.StorageException`, which contains the
status code.
Wrap that call in a try-catch block and get the status code from the
exception.1 parent e612a2a commit cf88797
File tree
1 file changed
+6
-1
lines changed- geowebcache/azureblob/src/main/java/org/geowebcache/azure
1 file changed
+6
-1
lines changedLines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
96 | 102 | | |
97 | | - | |
98 | 103 | | |
99 | 104 | | |
100 | 105 | | |
| |||
0 commit comments