rishabhdaim opened a new pull request, #476:
URL: https://github.com/apache/jackrabbit-filevault/pull/476

   ## Summary
   
   Backport the applicable production changes from 
e4784c1bbcf27ab50657ab28cb49c98f55fb56d9 to `3.2.x`, including the servlet 
authorization missing from #475.
   
   ## Changes
   
   - Require administrative authorization before processing either GET or POST 
requests; return HTTP 403 for unauthorized or missing sessions and propagate 
permission-evaluation failures.
   - Add OSGi configuration for additional administrative authorizable IDs or 
principal names, including the upstream Oak 1.40+ bound-principal handling.
   - Inline only `AdminPermissionChecker*.class` into the RCP bundle through 
this branch's Maven bundle configuration; do not embed the entire core JAR or 
import its implementation package.
   - Preserve Java 7 source compatibility and the existing single-argument 
checker method for binary compatibility.
   - Add focused checker and servlet regression tests.
   
   The upstream `RcpTaskImpl` source-origin credential-dropping change does not 
apply: this branch has no corresponding task-editing flow, and its source 
address and credentials are final.
   
   ## Test plan
   
   - [x] Java 8: `mvn -B -ntp -pl vault-rcp -am 
-Dtest=AdminPermissionCheckerTest,AdminPermissionCheckerAuthorizationTest,RcpServletTest
 -Dsurefire.failIfNoSpecifiedTests=false clean verify`
   - [x] 34 test executions pass, including the checker tests against Oak and 
Jackrabbit.
   - [x] Bundle baseline and Apache RAT checks pass.
   - [x] Inspect the clean-built RCP JAR: it contains the exact current checker 
class privately, without other core implementation classes or an 
implementation-package import; servlet activation and metatype descriptors are 
present.
   
   `spotless:apply` was attempted, but Spotless is not configured on this 
maintenance branch.
   
   ## Links
   
   - JIRA: https://issues.apache.org/jira/browse/JCRVLT-871
   - Original master commit: 
https://github.com/apache/jackrabbit-filevault/commit/e4784c1bbcf27ab50657ab28cb49c98f55fb56d9
   - Related partial backport: #475 (left unchanged)
   
   Co-Authored-By: GitHub Copilot <[email protected]>
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to