Skip to content

[DO NOT MERGE] fix: Handle "NULL" string as unconfigured OAuth identity provider#995

Open
ibuziuk wants to merge 2 commits intoeclipse-che:mainfrom
ibuziuk:CRW-10656
Open

[DO NOT MERGE] fix: Handle "NULL" string as unconfigured OAuth identity provider#995
ibuziuk wants to merge 2 commits intoeclipse-che:mainfrom
ibuziuk:CRW-10656

Conversation

@ibuziuk
Copy link
Copy Markdown
Member

@ibuziuk ibuziuk commented Apr 7, 2026

What does this PR do?

Treat the string "NULL" as equivalent to an unconfigured OAuth identity provider. This fixes the case where property placeholder defaults result in "NULL" being passed instead of null or empty string, which previously caused incorrect service account selection when initializing projects.

https://redhat.atlassian.net/browse/CRW-10656

related property -

Screenshot/screencast of this PR


What issues does this PR fix or reference?

How to test this PR?

PR Checklist

As the author of this Pull Request I made sure that:

Release Notes

Reviewers

Reviewers, please comment how you tested the PR when approving it.

Treat the string "NULL" as equivalent to an unconfigured OAuth identity
provider. This fixes the case where property placeholder defaults result
in "NULL" being passed instead of null or empty string, which previously
caused incorrect service account selection when initializing projects.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@openshift-ci
Copy link
Copy Markdown

openshift-ci bot commented Apr 7, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: ibuziuk

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Signed-off-by: Ilya Buziuk <ibuziuk@redhat.com>
Map<String, String> namespaceAnnotationsEvaluated =
evaluateAnnotationPlaceholders(resolutionCtx);

// Use Che server SA when initWithCheServerSa is true and OAuth is configured.
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// Use Che server SA when initWithCheServerSa is true and OAuth is configured.
// Use Che server SA when initWithCheServerSa is true and OAuth is not configured.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tolusha ptal, do I get it right?

@ibuziuk
Copy link
Copy Markdown
Member Author

ibuziuk commented Apr 8, 2026

/retest

@ibuziuk ibuziuk changed the title fix: Handle "NULL" string as unconfigured OAuth identity provider [DO NOT MERGE] fix: Handle "NULL" string as unconfigured OAuth identity provider Apr 8, 2026
@openshift-ci
Copy link
Copy Markdown

openshift-ci bot commented Apr 8, 2026

@ibuziuk: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/v19-gitlab-no-pat-oauth-flow-ssh-url 26babb4 link true /test v19-gitlab-no-pat-oauth-flow-ssh-url
ci/prow/v19-gitea-with-pat-setup-flow 26babb4 link true /test v19-gitea-with-pat-setup-flow
ci/prow/v19-che-smoke-test 26babb4 link true /test v19-che-smoke-test
ci/prow/v19-gitlab-with-pat-setup-flow 26babb4 link true /test v19-gitlab-with-pat-setup-flow
ci/prow/v19-github-no-pat-oauth-flow 26babb4 link true /test v19-github-no-pat-oauth-flow
ci/prow/v19-github-no-pat-oauth-flow-raw-devfile-url 26babb4 link true /test v19-github-no-pat-oauth-flow-raw-devfile-url
ci/prow/v19-github-no-pat-oauth-flow-ssh-url 26babb4 link true /test v19-github-no-pat-oauth-flow-ssh-url
ci/prow/v19-azure-no-pat-oauth-flow-raw-devfile-url 26babb4 link true /test v19-azure-no-pat-oauth-flow-raw-devfile-url
ci/prow/v19-gitlab-no-pat-oauth-flow-raw-devfile-url 26babb4 link true /test v19-gitlab-no-pat-oauth-flow-raw-devfile-url
ci/prow/v19-azure-with-pat-setup-flow 26babb4 link true /test v19-azure-with-pat-setup-flow
ci/prow/v19-gitea-no-pat-oauth-flow 26babb4 link true /test v19-gitea-no-pat-oauth-flow
ci/prow/v19-bitbucket-no-pat-oauth-flow 26babb4 link true /test v19-bitbucket-no-pat-oauth-flow
ci/prow/v19-azure-no-pat-oauth-flow 26babb4 link true /test v19-azure-no-pat-oauth-flow
ci/prow/v19-bitbucket-no-pat-oauth-flow-raw-devfile-url 26babb4 link true /test v19-bitbucket-no-pat-oauth-flow-raw-devfile-url
ci/prow/v19-bitbucket-no-pat-oauth-flow-ssh-url 26babb4 link true /test v19-bitbucket-no-pat-oauth-flow-ssh-url
ci/prow/v19-gitlab-with-oauth-setup-flow 26babb4 link true /test v19-gitlab-with-oauth-setup-flow
ci/prow/v19-gitlab-no-pat-oauth-flow 26babb4 link true /test v19-gitlab-no-pat-oauth-flow
ci/prow/v19-azure-no-pat-oauth-flow-ssh-url 26babb4 link true /test v19-azure-no-pat-oauth-flow-ssh-url
ci/prow/v19-github-with-pat-setup-flow 26babb4 link true /test v19-github-with-pat-setup-flow

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@openshift-ci
Copy link
Copy Markdown

openshift-ci bot commented Apr 11, 2026

PR needs rebase.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant