Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] HTTP 404 Error using 'groups' parameter #603

Open
CPTX1 opened this issue Oct 18, 2023 · 1 comment
Open

[BUG] HTTP 404 Error using 'groups' parameter #603

CPTX1 opened this issue Oct 18, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@CPTX1
Copy link

CPTX1 commented Oct 18, 2023

Describe the bug

When trying to create a project with a "--groups" flag, it returns HTTP 404 Error

User creating the project is a member of that group and has the following ROLES:
CxONE Roles
- manage-application manage-feedbackapp manage-policy-management manage-project manage-webhook

Expected behavior

No error and project created with group specified.

Actual behavior

DEBUG MODE
2023/10/18 08:40:18 Sending API request to:
2023/10/18 08:40:18 GET /auth/realms//pip/groups?groupName=SupportNA HTTP/1.1
Host: ast.checkmarx.net
Authorization: Bearer ***
User-Agent: ASTCLI/2.0.59

2023/10/18 08:40:18 Request attempt 1 in 4
2023/10/18 08:40:18 Receiving API response:
2023/10/18 08:40:18 HTTP/1.1 404 Not Found

Date: Wed, 18 Oct 2023 13:40:15 GMT

{"error":"RESTEASY003210: Could not find resource for full path: https://iam.checkmarx.net/auth/realms//pip/groups?groupName=SupportNA"}
response status code 404

Steps to reproduce

./cx project create --project-name TestGroupFlag --groups SupportNA --debug

Environment

  • CLI version: testing versions 2.0.55 & 2.0.59
  • ast-cli_linux_x64

Logs

DEBUG

2023/10/18 08:40:17 CLI Version: 2.0.59
2023/10/18 08:40:17 CLI Configuration:
2023/10/18 08:40:17 cx_client_secret:
2023/10/18 08:40:17 cx_branch:
2023/10/18 08:40:17 cx_timeout: 30
2023/10/18 08:40:17 cx_base_auth_uri: https://iam.checkmarx.net/
2023/10/18 08:40:17 cx_tenant:
2023/10/18 08:40:17 cx_proxy_auth_type: basic
2023/10/18 08:40:17 cx_apikey: ***
2023/10/18 08:40:17 cx_base_uri: https://ast.checkmarx.net/
2023/10/18 08:40:17 http_proxy:
2023/10/18 08:40:17 cx_client_id:
2023/10/18 08:40:17 Base Auth URI - Extract from API KEY
2023/10/18 08:40:17 Base Auth URI - https://iam.checkmarx.net/auth/realms/prod_na_testing
2023/10/18 08:40:17 Checking cache for API access token.
2023/10/18 08:40:17 API access token not found in cache!
2023/10/18 08:40:17 Fetching API access token.
2023/10/18 08:40:17 Checking cache for API access token.
2023/10/18 08:40:17 API access token not found in cache!
2023/10/18 08:40:17 Using API key credentials.
2023/10/18 08:40:17 Creating HTTP Client.
2023/10/18 08:40:17 Sending API request to:
2023/10/18 08:40:17 POST /auth/realms/prod_na_testing/protocol/openid-connect/token HTTP/1.1
Host: iam.checkmarx.net
Content-Type: application/x-www-form-urlencoded
User-Agent: ASTCLI/2.0.59

grant_type=refresh_token&client_id=ast-app&refresh_token=***
2023/10/18 08:40:17 Request attempt 1 in 4
2023/10/18 08:40:17 Starting connection: iam.checkmarx.net:443
2023/10/18 08:40:17 DNS looking up host information for: iam.checkmarx.net
2023/10/18 08:40:17 DNS found host address(s): [{IP:13.226.204.7 Zone:} {IP:13.226.204.115 Zone:} {IP:13.226.204.15 Zone:} {IP:13.226.204.12 Zone:}]
2023/10/18 08:40:17 Started TLS Handshake
2023/10/18 08:40:17 Completed TLS handshake
2023/10/18 08:40:18 Connected completed in: 474 (ms)
2023/10/18 08:40:18 Receiving API response:
2023/10/18 08:40:18 HTTP/1.1 200 OK
Content-Length: 7034
Cache-Control: no-store
Connection: keep-alive
Content-Type: application/json
Date: Wed, 18 Oct 2023 13:40:15 GMT
Pragma: no-cache
Referrer-Policy: no-referrer
Strict-Transport-Security: max-age=31536000; includeSubDomains
Via: 1.1 7644cbb67f4f24c9050687ef3a2fd358.cloudfront.net (CloudFront)
X-Amz-Cf-Id: MauOmGWEvQgGhXPulXZ_NxdSWP3JriDElBiBNZCBo8OFLAs6fFZ8Yg==
X-Amz-Cf-Pop: DFW55-C2
X-Cache: Miss from cloudfront
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-Xss-Protection: 1; mode=block

2023/10/18 08:40:18 Successfully retrieved API token.
2023/10/18 08:40:18 Storing API access token to cache.
2023/10/18 08:40:18 Base URI - Extract from JWT token
2023/10/18 08:40:18 Base URI - https://ast.checkmarx.net
2023/10/18 08:40:18 Creating HTTP Client.
2023/10/18 08:40:18 Sending API request to:
2023/10/18 08:40:18 GET /auth/realms//pip/groups?groupName=SupportNA HTTP/1.1
Host: ast.checkmarx.net
Authorization: Bearer ***
User-Agent: ASTCLI/2.0.59

2023/10/18 08:40:18 Request attempt 1 in 4
2023/10/18 08:40:18 Receiving API response:
2023/10/18 08:40:18 HTTP/1.1 404 Not Found
Content-Length: 136
Connection: keep-alive
Content-Type: application/json
Date: Wed, 18 Oct 2023 13:40:15 GMT
Referrer-Policy: no-referrer
Strict-Transport-Security: max-age=31536000; includeSubDomains
Via: 1.1 51ec66f6cf5e6c765ee4a97186ec06a4.cloudfront.net (CloudFront)
X-Amz-Cf-Id: _fI-mMS89ShnBtVAsXjneLdT6MUQXVbuDMqLtOCPertZ6rjfGutmUw==
X-Amz-Cf-Pop: DFW55-C2
X-Cache: Error from cloudfront
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-Xss-Protection: 1; mode=block

{"error":"RESTEASY003210: Could not find resource for full path: https://iam.checkmarx.net/auth/realms//pip/groups?groupName=SupportNA"}
response status code 404

@CPTX1 CPTX1 added the bug Something isn't working label Oct 18, 2023
@github-actions
Copy link

Internal Jira issue: AST-31008

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant