oracle / ojdbc-extensions

The Oracle JDBC Driver Extensions include providers for centralized configuration or token providers for authentication with the DB.
Universal Permissive License v1.0
13 stars 5 forks source link

35 oci object storage new urls #42

Closed norah-li closed 11 months ago

norah-li commented 11 months ago

In this upload, a new URL Pattern is added in ObjectUrl in ObjectFactory.

According to given docs OCI Object Storage Dedicated Endpoints, old url: objectstorage.$region.oraclecloud.com/n/$namespace/b/$bucketname/o/$file new url: $namespace.objectstorage.$region.oci.customer-oci.com/n/$namespace/b/$bucketname/o/$file

When the constructor of ObjectUrl is called, the given url starts to be parsed. A new url pattern situation is added here, and in this case the url can also be parsed. Both old and new url formats are now supported.

Test is added and asks for an oci object storage url (whether it's in old or new format, the test should work.)

Please take a look.