Skip to content

Fix: Route authentication logs to Eclipse Error Log (AST-136023)#244

Merged
cx-aniket-shinde merged 3 commits intointegration/eclipse-bug-fixesfrom
bug/AST-136023
Apr 20, 2026
Merged

Fix: Route authentication logs to Eclipse Error Log (AST-136023)#244
cx-aniket-shinde merged 3 commits intointegration/eclipse-bug-fixesfrom
bug/AST-136023

Conversation

@cx-aniket-shinde
Copy link
Copy Markdown
Contributor

Replace SLF4J log calls in Authenticator.doAuthentication() with CxLogger so auth success/failure messages appear in .metadata/.log and the Eclipse Error Log UI instead of being silently dropped.

By submitting a PR to this repository, you agree to the terms within the Checkmarx Code of Conduct. Please see the contributing guidelines for how to create and submit a high-quality PR for this repo.

Description

Describe the purpose of this PR along with any background information and the impacts of the proposed change.

References

Include supporting link to GitHub Issue/PR number

Testing

Describe how this change was tested. Be specific about anything not tested and reasons why. If this solution has unit and/or integration testing, tests should be added for new functionality and existing tests should complete without errors.

Please include any manual steps for testing end-to-end or functionality not covered by unit/integration tests.

Checklist

  • I have added documentation for new/changed functionality in this PR (if applicable).
  • All active GitHub checks for tests, formatting, and security are passing
  • The correct base branch is being used

Replace SLF4J log calls in Authenticator.doAuthentication() with
CxLogger so auth success/failure messages appear in .metadata/.log
and the Eclipse Error Log UI instead of being silently dropped.

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
@github-actions github-actions Bot added the bug Something isn't working label Apr 14, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 14, 2026

Logo
Checkmarx One – Scan Summary & Details99d7e279-76b9-4582-9608-d70e0184697c


New Issues (1) Checkmarx found the following issues in this Pull Request
# Severity Issue Source File / Package Checkmarx Insight
1 HIGH CVE-2026-24400 Maven-org.assertj:assertj-core-3.27.2
detailsRecommended version: 3.27.7
Description: AssertJ provides Fluent testing assertions for Java and the Java Virtual Machine (JVM). Starting in version 1.4.0 prior to 3.27.7 and 4.0.0-M1, an ...
Attack Vector: LOCAL
Attack Complexity: LOW
Vulnerable Package

Replace SLF4J mockLogger verification with MockedStatic<CxLogger>
to match the updated Authenticator.doAuthentication() which now
routes log output through CxLogger instead of the SLF4J instance.

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
@cx-aniket-shinde cx-aniket-shinde changed the base branch from main to integration/eclipse-bug-fixes April 14, 2026 13:10
…message

Replace string concatenation (AUTH_STATUS + cxValidateOutput) with
String.format(PluginConstants.INFO_AUTHENTICATION_STATUS, cxValidateOutput)
to be consistent with the error logging pattern. Updated the unit test
assertion to verify the formatted string accordingly.

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
Comment thread checkmarx-ast-eclipse-plugin/src/com/checkmarx/eclipse/runner/Authenticator.java Outdated
@cx-aniket-shinde cx-aniket-shinde merged commit 644dae9 into integration/eclipse-bug-fixes Apr 20, 2026
4 checks passed
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

Successfully merging this pull request may close these issues.

2 participants