File tree Expand file tree Collapse file tree 3 files changed +21
-1
lines changed Expand file tree Collapse file tree 3 files changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,12 @@ https://docs.snowflake.com/
7
7
Source code is also available at: https://github.com/snowflakedb/snowflake-connector-python
8
8
9
9
# Release Notes
10
+ - v3.13.3(TBD)
11
+ - Bumped pyOpenSSL dependency upper boundary from <25.0.0 to <26.0.0.
12
+ - Removed the workaround for a Python 2.7 bug.
13
+ - Added a <19.0.0 pin to pyarrow as a workaround to a bug affecting Azure Batch.
14
+ - Optimized distribution package lookup to speed up import.
15
+ - Fixed a bug where privatelink OCSP Cache url could not be determined if privatelink account name was specified in uppercase
10
16
11
17
- v3.12.4(TBD)
12
18
- Fixed a bug where multipart uploads to Azure would be missing their MD5 hashes.
Original file line number Diff line number Diff line change @@ -916,6 +916,7 @@ def __set_error_attributes(self) -> None:
916
916
917
917
@staticmethod
918
918
def setup_ocsp_privatelink (app , hostname ) -> None :
919
+ hostname = hostname .lower ()
919
920
SnowflakeConnection .OCSP_ENV_LOCK .acquire ()
920
921
ocsp_cache_server = f"http://ocsp.{ hostname } /ocsp_response_cache.json"
921
922
os .environ ["SF_OCSP_RESPONSE_CACHE_SERVER_URL" ] = ocsp_cache_server
@@ -947,7 +948,7 @@ def __open_connection(self):
947
948
os .environ ["SF_OCSP_RESPONSE_CACHE_SERVER_URL" ],
948
949
)
949
950
950
- if ".privatelink.snowflakecomputing." in self .host :
951
+ if ".privatelink.snowflakecomputing." in self .host . lower () :
951
952
SnowflakeConnection .setup_ocsp_privatelink (self .application , self .host )
952
953
else :
953
954
if "SF_OCSP_RESPONSE_CACHE_SERVER_URL" in os .environ :
Original file line number Diff line number Diff line change @@ -672,6 +672,19 @@ def test_privatelink_ocsp_url_creation():
672
672
)
673
673
674
674
675
+ @pytest .mark .skipolddriver
676
+ def test_uppercase_privatelink_ocsp_url_creation ():
677
+ account = "TESTACCOUNT.US-EAST-1.PRIVATELINK"
678
+ hostname = account + ".snowflakecomputing.com"
679
+
680
+ SnowflakeConnection .setup_ocsp_privatelink (CLIENT_NAME , hostname )
681
+ ocsp_cache_server = os .getenv ("SF_OCSP_RESPONSE_CACHE_SERVER_URL" , None )
682
+ assert (
683
+ ocsp_cache_server
684
+ == "http://ocsp.testaccount.us-east-1.privatelink.snowflakecomputing.com/ocsp_response_cache.json"
685
+ )
686
+
687
+
675
688
def test_privatelink_ocsp_url_multithreaded ():
676
689
bucket = queue .Queue ()
677
690
You can’t perform that action at this time.
0 commit comments