You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Project key with a hyphen is throwing an error.
@alexhung I am testing jfrog/terraform-provider-shared#21.
The project provider does not have an issue with a project key with a hyphen.
The xray provider does not like it and throws a 500 error on the terraform apply.
500 POST https://artifactory-server.com/xray/api/v2/policies?projectKey=tst-test
{"error":"Failed to create Policy"}
Requirements for and issue
resource "project" "tst_project" {
key = "tst-test"
display_name = "Test Project"
admin_privileges {
manage_members = true
manage_resources = true
index_resources = true
}
}
resource "xray_security_policy" "tst_security_policy" {
name = "tst-security-policy"
description = "Test Security Policy"
type = "security"
project_key = "tst-test"
rule {
name = "tst-severity-rule"
priority = 1
criteria {
cvss_range {
from = 7.0
to = 10.0
}
}
actions {
webhooks = []
mails = []
block_release_bundle_distribution = false
fail_build = false
notify_watch_recipients = false
notify_deployer = false
create_ticket_enabled = false // set to true only if Jira integration is enabled
//build_failure_grace_period_in_days = 5 // use only if fail_build is enabled
block_download {
unscanned = false
active = false
}
}
}
depends_on = [
project.tst_project
]
}
Expected behavior
Project key with a hyphen does not cause an error.
The text was updated successfully, but these errors were encountered:
@alexhung
Looks like issue is with my version of Artifactory and Xray.
I see you tested on newer versions than what we have setup.
I will ask our admins when they plan to upgrade Artifactory and Xray.
Describe the bug
Project key with a hyphen is throwing an error.
@alexhung I am testing jfrog/terraform-provider-shared#21.
The project provider does not have an issue with a project key with a hyphen.
The xray provider does not like it and throws a 500 error on the terraform apply.
Requirements for and issue
Expected behavior
Project key with a hyphen does not cause an error.
The text was updated successfully, but these errors were encountered: