[
https://issues.apache.org/jira/browse/OAK-12385?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18110717#comment-18110717
]
Rishabh Daim commented on OAK-12385:
------------------------------------
[~govindgurjar] Issues can only be assigned to committers.
> Replace deprecated DigestUtils.shaHex() usage in BlobMigrator
> -------------------------------------------------------------
>
> Key: OAK-12385
> URL: https://issues.apache.org/jira/browse/OAK-12385
> Project: Jackrabbit Oak
> Issue Type: Task
> Reporter: Rishabh Daim
> Priority: Minor
>
> h2. Problem
> {{BlobMigrator.getIdentity()}} in
> {{oak-blob-plugins/src/main/java/org/apache/jackrabbit/oak/plugins/blob/migration/BlobMigrator.java}}
> uses the deprecated {{DigestUtils.shaHex(InputStream)}} API at line 227.
> Commons Codec 1.22.1 still provides the method, so this is not a regression
> in OAK-12384, but the API has been deprecated since Commons Codec 1.11 and
> delegates to {{sha1Hex()}}.
> The existing migration coverage verifies that blobs exist after migration but
> does not assert the expected identity hash.
> See the low finding in the [PR regression analysis
> report|https://git.corp.adobe.com/corderob/pr-analyzer/blob/main/jackrabbit-oak/PR-3098-20260902-065112.md].
> h2. Requested change
> * Replace {{DigestUtils.shaHex()}} with {{DigestUtils.sha1Hex()}} while
> preserving the current blob identity value.
> * Add or update focused test coverage to verify the expected hash used for
> migrated blob identity.
> * Keep behavior compatible with existing migrated blob identities.
> h2. Acceptance criteria
> # No production code in BlobMigrator calls the deprecated {{shaHex()}} API.
> # Tests cover the expected SHA-1 identity output for a migrated blob.
> # The relevant oak-blob-plugins tests pass.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)