[ 
https://issues.apache.org/jira/browse/OAK-12542?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18147583#comment-18147583
 ] 

Rishabh Daim edited comment on OAK-12542 at 11/19/26, 12:09 PM:
----------------------------------------------------------------

Follow-up verification: ZooKeeper 3.9.7's declared SLF4J 2.x dependency does 
not prevent its embedded client from working with Oak 1.22's SLF4J 1.7.36 in 
the tested configuration.

*Setup:* Freshly built Oak 1.22.26-SNAPSHOT from commit 
{{87ebc6bdc744f5c36b55d9a4fd9669443a82e5b6}} with the [PR #3300 
changes|https://github.com/apache/jackrabbit-oak/pull/3300] reapplied, 
including ZooKeeper and zookeeper-jute 3.9.7. Tests used Java 11, Felix 6.0.2, 
SLF4J 1.7.36 and Logback 1.2.13, against local Docker servers running ZooKeeper 
3.9.7 and SolrCloud 8.11.3.

*Checks passed:*
 * Inspected all 4,544 class files in the combined bundle. All 38 distinct 
SLF4J method/field references, including ZooKeeper's 29 references, exist with 
matching signatures in SLF4J 1.7.36.
 * All 727 embedded ZooKeeper classes match the released 3.9.7 jar byte for 
byte. No SLF4J API or Logback classes are privately embedded in the candidate 
bundle.
 * The actual {{oak-solr-osgi}} bundle resolves and starts in Felix. Runtime 
package wiring confirms {{org.slf4j}} comes from {{slf4j.api}} version 1.7.36, 
and ZooKeeper 3.9.7 is loaded by the Oak Solr bundle's classloader.
 * ZooKeeper CRUD, data watches, asynchronous callbacks, multi-operation 
transactions, missing-node error handling and 100 repeated create/read/delete 
cycles.
 * Solr 8.11.3's {{SolrZkClient}} connects and creates, reads, updates and 
deletes data using the embedded ZooKeeper client.
 * After restarting the ZooKeeper server, the client disconnects, reconnects 
and reads existing data successfully.
 * Oak's {{RemoteSolrServerProvider}} connects to SolrCloud, indexes a 
document, commits, queries and verifies the result, then deletes the document.
 * DEBUG/INFO/WARN/ERROR logging, exception stack traces and MDC are recorded 
through Logback 1.2.13. No linkage or logging-provider loading errors occurred.

This provides stronger evidence than a passing build: the tests execute real 
network operations through the freshly built bundle with confirmed SLF4J 1.7 
wiring. Compiling against SLF4J 2.x does not itself introduce a runtime 
requirement for 2.x when every logging API actually referenced also exists in 
1.7.

The results give high confidence in SLF4J 1.7 compatibility for this candidate, 
rather than a guarantee for every deployment or future ZooKeeper version.


was (Author: JIRAUSER299730):
Follow-up verification: ZooKeeper 3.9.7's declared SLF4J 2.x dependency does 
not prevent its embedded client from working with Oak 1.22's SLF4J 1.7.36 in 
the tested configuration.

*Setup:* Freshly built Oak 1.22.26-SNAPSHOT from commit 
{{87ebc6bdc744f5c36b55d9a4fd9669443a82e5b6}} with the [PR #3300 
changes|https://github.com/apache/jackrabbit-oak/pull/3300] reapplied, 
including ZooKeeper and zookeeper-jute 3.9.7. Tests used Java 11, Felix 6.0.2, 
SLF4J 1.7.36 and Logback 1.2.13, against local Docker servers running ZooKeeper 
3.9.7 and SolrCloud 8.11.3.

*Checks passed:*
* Inspected all 4,544 class files in the combined bundle. All 38 distinct SLF4J 
method/field references, including ZooKeeper's 29 references, exist with 
matching signatures in SLF4J 1.7.36.
* All 727 embedded ZooKeeper classes match the released 3.9.7 jar byte for 
byte. No SLF4J API or Logback classes are privately embedded in the candidate 
bundle.
* The actual {{oak-solr-osgi}} bundle resolves and starts in Felix. Runtime 
package wiring confirms {{org.slf4j}} comes from {{slf4j.api}} version 1.7.36, 
and ZooKeeper 3.9.7 is loaded by the Oak Solr bundle's classloader.
* ZooKeeper CRUD, data watches, asynchronous callbacks, multi-operation 
transactions, missing-node error handling and 100 repeated create/read/delete 
cycles.
* Solr 8.11.3's {{SolrZkClient}} connects and creates, reads, updates and 
deletes data using the embedded ZooKeeper client.
* After restarting the ZooKeeper server, the client disconnects, reconnects and 
reads existing data successfully.
* Oak's {{RemoteSolrServerProvider}} connects to SolrCloud, indexes a document, 
commits, queries and verifies the result, then deletes the document.
* DEBUG/INFO/WARN/ERROR logging, exception stack traces and MDC are recorded 
through Logback 1.2.13. No linkage or logging-provider loading errors occurred.

This provides stronger evidence than a passing build: the tests execute real 
network operations through the freshly built bundle with confirmed SLF4J 1.7 
wiring. Compiling against SLF4J 2.x does not itself introduce a runtime 
requirement for 2.x when every logging API actually referenced also exists in 
1.7.

The OSGi fixture additionally needed Netty bundles at Oak's managed version, 
4.1.140.Final; deployments must supply these dependencies. TLS, Kerberos/SASL, 
multi-server ZooKeeper ensembles and deployment-specific wiring were not 
tested. The results give high confidence in SLF4J 1.7 compatibility for this 
candidate, rather than a guarantee for every deployment or future ZooKeeper 
version.


> oak-solr-osgi embeds vulnerable Zookeeper 3.9.3
> -----------------------------------------------
>
>                 Key: OAK-12542
>                 URL: https://issues.apache.org/jira/browse/OAK-12542
>             Project: Jackrabbit Oak
>          Issue Type: Task
>          Components: indexing
>    Affects Versions: 1.22.25
>            Reporter: Rishabh Daim
>            Assignee: Rishabh Daim
>            Priority: Major
>
>  
>  



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to