| commit | 3d58fc771a6632f64654fc9b9773f73234d7180b | [log] [tgz] |
|---|---|---|
| author | Robert Munteanu <rombert@apache.org> | Wed Aug 06 14:20:02 2025 +0200 |
| committer | Robert Munteanu <rombert@apache.org> | Wed Aug 06 14:20:02 2025 +0200 |
| tree | d99b4d12428d9852580b6b23d7dd456cb5840a04 | |
| parent | 9cec86cc719b3c606a9fb37639627b54e2627862 [diff] |
SLING-12866 - Restrict force pushes, auto-delete branches on merge
This module is part of the Apache Sling project.
Start a Sling Starter (or some other distribution)
Install the org.apache.sling.validation.api and org.apache.sling.validation.core bundles
Build and install the org.apache.sling.validation.examples bundle
mvn clean package sling:install
curl -u admin:admin -Fsling:resourceType=/apps/validationdemo/components/user -Fusername=johnsmith -FfirstName=John204 -FlastName=Smith http://127.0.0.1:8080/content/validationdemo/users/johnsmith.modify.html
Check that the resource has not been modified at http://127.0.0.1:8080/content/validationdemo/users/johnsmith.html.
curl -u admin:admin -Fsling:resourceType=/apps/validationdemo/components/user -Fusername=johnsmith -FfirstName=Johnny -FlastName=Bravo http://127.0.0.1:8080/content/validationdemo/users/johnsmith.modify.html
Check that the resource has been modified at http://127.0.0.1:8080/content/validationdemo/users/johnsmith.html.