sonatype-nexus-community / nexus-blobstore-google-cloud

Nexus Repository Manager Blobstore backed by Google Cloud Storage
https://help.sonatype.com/en/configuring-blob-stores.html#google-cloud-blob-store
Eclipse Public License 1.0
39 stars 16 forks source link

refactor: migration bucket, location, credential_file attributes #104

Closed nblair closed 3 years ago

nblair commented 3 years ago

As of NXRM 3.34, the blobstore UI forms expect attributes with specific names; for cloud blobstores, specifically 'bucketName', 'region', and 'credentialFilePath'. In this changeset, a handler is added to the doInit function on the blobstore that detects the presence of attributes using the legacy forms ('bucket', 'location', and 'credential_file', respectively). New Google Cloud Blobstores will be created using the new attribute names.

Inspired by #99, this preserves the desired optional/required characteristics of the original attributes.

Co-authored-by: Michael Martz mmartz@sonatype.com