Log cloned project version when cloning from latest version#1681
Open
zahidblackduck wants to merge 5 commits intomasterfrom
Open
Log cloned project version when cloning from latest version#1681zahidblackduck wants to merge 5 commits intomasterfrom
zahidblackduck wants to merge 5 commits intomasterfrom
Conversation
…IDETECT-4980-project-version-clone-log
cpottsbd
requested changes
Mar 13, 2026
| ### Resolved issues No newline at end of file | ||
| ### Resolved issues | ||
|
|
||
| * (IDETECT-4980) Added an INFO-level log message to identify the exact project version selected as the clone source when `detect.clone.project.version.latest` is set to true. No newline at end of file |
Contributor
There was a problem hiding this comment.
Tweak suggestion:
- (IDETECT-4980) When
detect.clone.project.version.latestis set to true, an INFO-level log message will be written to identify the exact project version selected as the clone source.
cpottsbd
approved these changes
Mar 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
JIRA Ticket
IDETECT-4980
Description
This merge request adds a log message to identify the exact project version selected as the clone source when
--detect.clone.project.version.latest=trueis used.Previously, the only related log was a generic DEBUG message (
Cloning the most recent project version.) that provided no version name, making it impossible to verify which version was cloned for audit trails, compliance tracking, or troubleshooting.In
FindCloneByLatestOperation.java, the code already fetches allProjectVersionViewobjects and selects the one withthe latest
createdAttimestamp, but immediately discarded the view and kept only the URL.The fix captures the
ProjectVersionViewbefore mapping to the URL and logs its version name at INFO level.