This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to branch issue/SLING-13086
in repository 
https://gitbox.apache.org/repos/asf/sling-org-apache-sling-starter-integration-tests.git

commit 35972793fb4be7180ab3585e0db154590c949869
Author: Robert Munteanu <[email protected]>
AuthorDate: Fri Jan 30 13:38:45 2026 +0100

    SLING-13086 - SlingPostServlet no longer register PostOperation services 
after the Jakarta migration
    
    Add a disabled test demonstrating the problem.
---
 pom.xml                                            |  2 +-
 .../post/PostOperationsRegistrationTest.java       | 49 ++++++++++++++++++++++
 2 files changed, 50 insertions(+), 1 deletion(-)

diff --git a/pom.xml b/pom.xml
index 48a9586..9557c84 100644
--- a/pom.xml
+++ b/pom.xml
@@ -168,7 +168,7 @@
         <dependency>
             <groupId>org.apache.sling</groupId>
             <artifactId>org.apache.sling.servlets.post</artifactId>
-            <version>2.6.0</version>
+            <version>3.0.0</version>
             <scope>provided</scope>
         </dependency>
         <dependency>
diff --git 
a/src/main/java/org/apache/sling/starter/webapp/integrationtest/servlets/post/PostOperationsRegistrationTest.java
 
b/src/main/java/org/apache/sling/starter/webapp/integrationtest/servlets/post/PostOperationsRegistrationTest.java
new file mode 100644
index 0000000..438e3ab
--- /dev/null
+++ 
b/src/main/java/org/apache/sling/starter/webapp/integrationtest/servlets/post/PostOperationsRegistrationTest.java
@@ -0,0 +1,49 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.sling.starter.webapp.integrationtest.servlets.post;
+
+import org.apache.sling.junit.rules.TeleporterRule;
+import org.apache.sling.servlets.post.JakartaPostOperation;
+import org.apache.sling.servlets.post.PostOperation;
+import org.junit.Ignore;
+import org.junit.Rule;
+import org.junit.Test;
+
+import static org.junit.Assert.assertNotNull;
+
+public class PostOperationsRegistrationTest {
+
+    @Rule
+    public final TeleporterRule teleporter = 
TeleporterRule.forClass(getClass(), "Launchpad");
+
+    @Test
+    public void jakartaPostOperationIsRegistered() {
+        JakartaPostOperation modifyOperation =
+                teleporter.getService(JakartaPostOperation.class, 
"(sling.post.operation=modify)");
+        assertNotNull("JakartaPostOperation for modify", modifyOperation);
+    }
+
+    @Test
+    @SuppressWarnings("deprecation")
+    @Ignore("SLING-13086")
+    public void javaxSlingPostOperationIsRegistered() {
+        PostOperation modifyOperation = 
teleporter.getService(PostOperation.class, "(sling.post.operation=modify)");
+        assertNotNull("PostOperation for modify", modifyOperation);
+    }
+}

Reply via email to