Skip to content

Integration/eclipse bug fixes#249

Open
cx-aniket-shinde wants to merge 3 commits intomainfrom
integration/eclipse-bug-fixes
Open

Integration/eclipse bug fixes#249
cx-aniket-shinde wants to merge 3 commits intomainfrom
integration/eclipse-bug-fixes

Conversation

@cx-aniket-shinde
Copy link
Copy Markdown
Contributor

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

cx-aniket-shinde and others added 3 commits April 20, 2026 10:47
* Fix AST-136023: Route authentication logs to Eclipse Error Log

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>

* Fix AST-136023: Update unit tests to verify CxLogger static calls

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>

* Refactor AST-136023: Use String.format for authentication status log 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>

---------

Co-authored-by: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
* Fix AST-136035: Clear detail panels on severity filter change; fix scan ID combo overflow

- Hide resultViewComposite and attackVectorCompositePanel when filter changes
  so the description and attack vector windows no longer show stale content
- Replace fixed widthHint=520 on scan ID combo with SWT.FILL/grabExcess layout
  so the combo is always visible without needing to maximize the window

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>

* Fix AST-136035: Clear right panels only when displayed item's severity is filtered out

Previously, toggling any severity filter always hid the description and
attack vector panels. Now the panels are only cleared when the currently
displayed item belongs to a severity that was just disabled. If the item's
severity is still active, the panels stay visible.

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>

* Fix AST-136035: Preserve tree expansion state when severity filter changes

- Capture expanded elements before clearing the model so the snapshot
  is accurate when restoring after refresh
- Pass expand=true for FILTER_CHANGED (keep GET_RESULTS at false) so
  previously expanded group nodes are restored after filtering instead
  of collapsing the entire tree

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
* Fix AST-137779: Truncate long custom state names in filter menu and triage combo

Custom states with very long names caused the state filter dropdown menu
to expand across the entire screen. Fix truncates display text to 50 chars
(with trailing "...") in both the state filter MenuItem and the triage
state ComboViewer LabelProvider. The full state name is still used
internally for filtering and triage submission.

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>

* Fix AST-137779: Guard against null getResults() in cxProjectMatchesWorkspaceProject

Results.getResults() can return null when no results have been loaded yet
(e.g. fresh IDE session before any scan is imported). The prior check only
guarded against a null Results object, causing an NPE on the first click
of the Start Scan button and preventing scans from running.

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown
Contributor

Logo
Checkmarx One – Scan Summary & Details5a3ef990-a76b-4285-a3f3-471a276fa975

Great job! No new security vulnerabilities introduced in this pull request

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant