Skip to content

Commit

Permalink
url_validator ignores empty string (#217)
Browse files Browse the repository at this point in the history
  • Loading branch information
wesleymccollam authored Mar 14, 2024
1 parent 10ddda2 commit 9714354
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# v0.8.0 (Unreleased)
### BUG FIXES
* `pingfederate_oauth_auth_server_settings` resource, removed unnecessary requirement for `bypass_activation_code_confirmation`, `default_scope_description`, `device_polling_interval`, `pending_authorization_timeout`, `registered_authorization_path` properties([#216](https://github.com/pingidentity/terraform-provider-pingfederate/pull/216))
* `pingfederate_oauth_client` resource, Provider produced inconsistent result after apply error when applying empty `extended_parameters` map value, require `values` property within to match product behavior ([#204](https://github.com/pingidentity/terraform-provider-pingfederate/pull/204))([#214](https://github.com/pingidentity/terraform-provider-pingfederate/pull/214))
* `pingfederate_oauth_client` resource, "Provider produced inconsistent result after apply" error when applying empty `extended_parameters` map value, require `values` property within to match product behavior. Fixed `logo_url` "Invalid URL Format" when empty string supplied. ([#204](https://github.com/pingidentity/terraform-provider-pingfederate/pull/204))([#214](https://github.com/pingidentity/terraform-provider-pingfederate/pull/214))([#217](https://github.com/pingidentity/terraform-provider-pingfederate/pull/217))

# v0.7.1 February 29th, 2024
### BUG FIXES
Expand Down
1 change: 1 addition & 0 deletions internal/acctest/config/oauth/client/oauth_client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ func TestAccOauthClient(t *testing.T) {
grantTypes: []string{"DEVICE_CODE"},
includeOptionalAttributes: false,
includeExtendedParameters: false,
logoUrl: pointers.String(""),
}

updatedResourceModel := oauthClientResourceModel{
Expand Down
2 changes: 1 addition & 1 deletion internal/resource/configvalidators/url_validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func (v urlValidator) MarkdownDescription(ctx context.Context) string {

func (v urlValidator) ValidateString(ctx context.Context, req validator.StringRequest, resp *validator.StringResponse) {
// If the value is unknown or null, there is nothing to validate.
if req.ConfigValue.IsUnknown() || req.ConfigValue.IsNull() {
if req.ConfigValue.IsUnknown() || req.ConfigValue.IsNull() || req.ConfigValue.ValueString() == "" {
return
}

Expand Down

0 comments on commit 9714354

Please sign in to comment.