You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by dk...@apache.org on 2023/01/08 20:46:45 UTC

[sling-org-apache-sling-app-cms] branch master updated (ac80d015 -> 618c02c1)

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

dklco pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-app-cms.git


    from ac80d015 [maven-release-plugin] prepare for next development iteration
     new bd56d209 Minor - removing non-active comment
     new 618c02c1 SLING-11746 - Fixing issue checking out CMS in windows

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../apache/sling/cms/core/models/StartContent.java |  2 +-
 feature/pom.xml                                    |  2 +-
 feature/src/main/features/base.json                |  6 +--
 feature/src/main/features/cms/cms-repoinit.txt     | 17 ++++---
 .../src/main/features/models-jacksonexporter.json  |  8 ++++
 ui/src/main/resources/jcr_root/ROOT.json           |  5 --
 .../{oak:index => _oak_index}/ntHierarchyNode.json |  1 +
 .../{oak:index => _oak_index}/slingComponent.json  |  1 +
 .../{oak:index => _oak_index}/slingFile.json       |  1 +
 .../{oak:index => _oak_index}/slingPage.json       |  1 +
 .../{oak:index => _oak_index}/slingTaxonomy.json   |  1 +
 .../jcr_root/_oak_index/slingeventJob.json         | 56 ++++++++++++++++++++++
 12 files changed, 85 insertions(+), 16 deletions(-)
 delete mode 100644 ui/src/main/resources/jcr_root/ROOT.json
 rename ui/src/main/resources/jcr_root/{oak:index => _oak_index}/ntHierarchyNode.json (99%)
 rename ui/src/main/resources/jcr_root/{oak:index => _oak_index}/slingComponent.json (97%)
 rename ui/src/main/resources/jcr_root/{oak:index => _oak_index}/slingFile.json (99%)
 rename ui/src/main/resources/jcr_root/{oak:index => _oak_index}/slingPage.json (99%)
 rename ui/src/main/resources/jcr_root/{oak:index => _oak_index}/slingTaxonomy.json (97%)
 create mode 100644 ui/src/main/resources/jcr_root/_oak_index/slingeventJob.json


[sling-org-apache-sling-app-cms] 02/02: SLING-11746 - Fixing issue checking out CMS in windows

Posted by dk...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

dklco pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-app-cms.git

commit 618c02c1546a09182858741a1e1f083733e61d4f
Author: Dan Klco <kl...@adobe.com>
AuthorDate: Thu Jan 5 16:26:07 2023 -0500

    SLING-11746 - Fixing issue checking out CMS in windows
---
 feature/pom.xml                                    |  2 +-
 feature/src/main/features/base.json                |  6 +--
 feature/src/main/features/cms/cms-repoinit.txt     | 17 ++++---
 .../src/main/features/models-jacksonexporter.json  |  8 ++++
 ui/src/main/resources/jcr_root/ROOT.json           |  5 --
 .../{oak:index => _oak_index}/ntHierarchyNode.json |  1 +
 .../{oak:index => _oak_index}/slingComponent.json  |  1 +
 .../{oak:index => _oak_index}/slingFile.json       |  1 +
 .../{oak:index => _oak_index}/slingPage.json       |  1 +
 .../{oak:index => _oak_index}/slingTaxonomy.json   |  1 +
 .../jcr_root/_oak_index/slingeventJob.json         | 56 ++++++++++++++++++++++
 11 files changed, 84 insertions(+), 15 deletions(-)

diff --git a/feature/pom.xml b/feature/pom.xml
index e261081f..f93c604c 100644
--- a/feature/pom.xml
+++ b/feature/pom.xml
@@ -43,7 +43,7 @@
       <plugin>
         <groupId>org.apache.sling</groupId>
         <artifactId>slingfeature-maven-plugin</artifactId>
-        <version>1.4.24</version>
+        <version>1.6.8</version>
         <extensions>true</extensions>
         <configuration>
           <framework>
diff --git a/feature/src/main/features/base.json b/feature/src/main/features/base.json
index 24c15b4e..cc8b4ca6 100644
--- a/feature/src/main/features/base.json
+++ b/feature/src/main/features/base.json
@@ -121,7 +121,7 @@
       "start-order":"20"
     },
     {
-      "id":"org.apache.sling:org.apache.sling.xss:2.2.20",
+      "id":"org.apache.sling:org.apache.sling.xss:2.3.2",
       "start-order":"20"
     },
     {
@@ -221,11 +221,11 @@
       "start-order":"20"
     },
     {
-      "id":"org.apache.sling:org.apache.sling.repoinit.parser:1.6.14",
+      "id":"org.apache.sling:org.apache.sling.repoinit.parser:1.8.0",
       "start-order":"20"
     },
     {
-      "id":"org.apache.sling:org.apache.sling.jcr.repoinit:1.1.38",
+      "id":"org.apache.sling:org.apache.sling.jcr.repoinit:1.1.42",
       "start-order":"20"
     }
   ],
diff --git a/feature/src/main/features/cms/cms-repoinit.txt b/feature/src/main/features/cms/cms-repoinit.txt
index 600ab1d0..53187c86 100644
--- a/feature/src/main/features/cms/cms-repoinit.txt
+++ b/feature/src/main/features/cms/cms-repoinit.txt
@@ -18,24 +18,29 @@
 #
 
 # CMS root paths
-create path (sling:OrderedFolder) /etc/i18n
+add mixin sling:Redirect to /
+set properties on /
+  set sling:resourceType{String} to sling:redirect
+  set sling:target{String} to /cms/start.html
+end
+create path (sling:Folder) /etc/i18n
 set ACL for everyone
     allow   jcr:read	on /etc/i18n
 end
-create path (sling:OrderedFolder) /etc/taxonomy
+create path (sling:Folder) /etc/taxonomy
 set ACL for everyone
     allow   jcr:read	on /etc/taxonomy
 end
-create path (sling:OrderedFolder) /static
+create path (sling:Folder) /static
 set ACL for everyone
     allow   jcr:read	on /static
 end
-create path (sling:OrderedFolder) /conf
+create path (sling:Folder) /conf
 set ACL for everyone
     allow   jcr:read	on /conf
 end
-create path (sling:OrderedFolder) /content
-create path (sling:OrderedFolder) /etc/usergenerated
+create path (sling:Folder) /content
+create path (sling:Folder) /etc/usergenerated
 set ACL for everyone
     allow   jcr:read    on /etc/usergenerated
 end
diff --git a/feature/src/main/features/models-jacksonexporter.json b/feature/src/main/features/models-jacksonexporter.json
index 7228c257..067be589 100644
--- a/feature/src/main/features/models-jacksonexporter.json
+++ b/feature/src/main/features/models-jacksonexporter.json
@@ -12,6 +12,14 @@
       "id":"com.fasterxml.jackson.core:jackson-databind:${jackson-version}",
       "start-order":"20"
     },
+    {
+      "id":"com.fasterxml.jackson.dataformat:jackson-dataformat-xml:${jackson-version}",
+      "start-order":"20"
+    },
+    {
+      "id":"org.codehaus.woodstox:stax2-api:4.2.1",
+      "start-order":"20"
+    },
     {
       "id":"org.apache.sling:org.apache.sling.models.jacksonexporter:1.1.2",
       "start-order":"20"
diff --git a/ui/src/main/resources/jcr_root/ROOT.json b/ui/src/main/resources/jcr_root/ROOT.json
deleted file mode 100644
index ce0f9ed1..00000000
--- a/ui/src/main/resources/jcr_root/ROOT.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
-    "jcr:mixinTypes": [ "sling:Redirect","rep:AccessControllable" ],
-    "sling:resourceType": "sling:redirect",
-    "sling:target": "/cms/start.html"
-}
diff --git a/ui/src/main/resources/jcr_root/oak:index/ntHierarchyNode.json b/ui/src/main/resources/jcr_root/_oak_index/ntHierarchyNode.json
similarity index 99%
rename from ui/src/main/resources/jcr_root/oak:index/ntHierarchyNode.json
rename to ui/src/main/resources/jcr_root/_oak_index/ntHierarchyNode.json
index 7f85e66a..4d9a839c 100644
--- a/ui/src/main/resources/jcr_root/oak:index/ntHierarchyNode.json
+++ b/ui/src/main/resources/jcr_root/_oak_index/ntHierarchyNode.json
@@ -6,6 +6,7 @@
   "evaluatePathRestrictions": true,
   "includedPaths": ["/content", "/static"],
   "queryPaths": ["/content", "/static"],
+  "reindex": true,
   "indexRules": {
     "jcr:primaryType": "nt:unstructured",
     "nt:hierarchyNode": {
diff --git a/ui/src/main/resources/jcr_root/oak:index/slingComponent.json b/ui/src/main/resources/jcr_root/_oak_index/slingComponent.json
similarity index 97%
rename from ui/src/main/resources/jcr_root/oak:index/slingComponent.json
rename to ui/src/main/resources/jcr_root/_oak_index/slingComponent.json
index cdc96126..180154fe 100644
--- a/ui/src/main/resources/jcr_root/oak:index/slingComponent.json
+++ b/ui/src/main/resources/jcr_root/_oak_index/slingComponent.json
@@ -5,6 +5,7 @@
   "async": ["async", "nrt"],
   "includedPaths": ["/apps", "/libs"],
   "evaluatePathRestrictions": true,
+  "reindex": true,
   "indexRules": {
     "jcr:primaryType": "nt:unstructured",
     "sling:Component": {
diff --git a/ui/src/main/resources/jcr_root/oak:index/slingFile.json b/ui/src/main/resources/jcr_root/_oak_index/slingFile.json
similarity index 99%
rename from ui/src/main/resources/jcr_root/oak:index/slingFile.json
rename to ui/src/main/resources/jcr_root/_oak_index/slingFile.json
index 1f21a3f6..07a9d4ae 100644
--- a/ui/src/main/resources/jcr_root/oak:index/slingFile.json
+++ b/ui/src/main/resources/jcr_root/_oak_index/slingFile.json
@@ -5,6 +5,7 @@
   "async": ["async", "nrt"],
   "includedPaths": ["/content", "/static"],
   "evaluatePathRestrictions": true,
+  "reindex": true,
   "aggregates": {
     "jcr:primaryType": "nt:unstructured",
     "sling:File": {
diff --git a/ui/src/main/resources/jcr_root/oak:index/slingPage.json b/ui/src/main/resources/jcr_root/_oak_index/slingPage.json
similarity index 99%
rename from ui/src/main/resources/jcr_root/oak:index/slingPage.json
rename to ui/src/main/resources/jcr_root/_oak_index/slingPage.json
index 1e06bede..b6d87e6b 100644
--- a/ui/src/main/resources/jcr_root/oak:index/slingPage.json
+++ b/ui/src/main/resources/jcr_root/_oak_index/slingPage.json
@@ -5,6 +5,7 @@
   "async": ["async", "nrt"],
   "evaluatePathRestrictions": true,
   "includedPaths": ["/content", "/static"],
+  "reindex": true,
   "aggregates": {
     "jcr:primaryType": "nt:unstructured",
     "sling:Page": {
diff --git a/ui/src/main/resources/jcr_root/oak:index/slingTaxonomy.json b/ui/src/main/resources/jcr_root/_oak_index/slingTaxonomy.json
similarity index 97%
rename from ui/src/main/resources/jcr_root/oak:index/slingTaxonomy.json
rename to ui/src/main/resources/jcr_root/_oak_index/slingTaxonomy.json
index 9e072920..396c7267 100644
--- a/ui/src/main/resources/jcr_root/oak:index/slingTaxonomy.json
+++ b/ui/src/main/resources/jcr_root/_oak_index/slingTaxonomy.json
@@ -5,6 +5,7 @@
   "includedPaths": ["/etc/taxonomy"],
   "async": ["async", "nrt"],
   "evaluatePathRestrictions": true,
+  "reindex": true,
   "indexRules": {
     "jcr:primaryType": "nt:unstructured",
     "sling:Taxonomy": {
diff --git a/ui/src/main/resources/jcr_root/_oak_index/slingeventJob.json b/ui/src/main/resources/jcr_root/_oak_index/slingeventJob.json
new file mode 100644
index 00000000..27b8f689
--- /dev/null
+++ b/ui/src/main/resources/jcr_root/_oak_index/slingeventJob.json
@@ -0,0 +1,56 @@
+{
+    "jcr:primaryType": "oak:QueryIndexDefinition",
+    "compatVersion": 2,
+    "includedPaths": [
+        "/var/eventing"
+    ],
+    "type": "lucene",
+    "async": [
+        "async",
+        "nrt"
+    ],
+    "evaluatePathRestrictions": true,
+    "reindex": true,
+    "indexRules": {
+        "jcr:primaryType": "nt:unstructured",
+        "slingevent:Job": {
+            "jcr:primaryType": "nt:unstructured",
+            "properties": {
+                "jcr:primaryType": "nt:unstructured",
+                "eventJobTopic": {
+                    "jcr:primaryType": "nt:unstructured",
+                    "propertyIndex": true,
+                    "analyzed": true,
+                    "name": "event.job.topic",
+                    "type": "String"
+                },
+                "slingeventCreated": {
+                    "jcr:primaryType": "nt:unstructured",
+                    "ordered": true,
+                    "propertyIndex": true,
+                    "name": "slingevent:created",
+                    "type": "Date"
+                },
+                "slingeventId": {
+                    "jcr:primaryType": "nt:unstructured",
+                    "propertyIndex": true,
+                    "name": "slingevent:eventId"
+                },
+                "finishedState": {
+                    "jcr:primaryType": "nt:unstructured",
+                    "nullCheckEnabled": true,
+                    "propertyIndex": true,
+                    "name": "slingevent:finishedState",
+                    "type": "String"
+                },
+                "finishedDate": {
+                    "jcr:primaryType": "nt:unstructured",
+                    "ordered": true,
+                    "propertyIndex": true,
+                    "name": "slingevent:finishedDate",
+                    "type": "Date"
+                }
+            }
+        }
+    }
+}
\ No newline at end of file


[sling-org-apache-sling-app-cms] 01/02: Minor - removing non-active comment

Posted by dk...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

dklco pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-app-cms.git

commit bd56d20937fa163c5a8fdeb205d125af4592a25f
Author: Dan Klco <kl...@adobe.com>
AuthorDate: Thu Jan 5 16:18:49 2023 -0500

    Minor - removing non-active comment
---
 core/src/main/java/org/apache/sling/cms/core/models/StartContent.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/src/main/java/org/apache/sling/cms/core/models/StartContent.java b/core/src/main/java/org/apache/sling/cms/core/models/StartContent.java
index 027f9928..e1f4cdcc 100644
--- a/core/src/main/java/org/apache/sling/cms/core/models/StartContent.java
+++ b/core/src/main/java/org/apache/sling/cms/core/models/StartContent.java
@@ -92,7 +92,7 @@ public class StartContent {
     private Stream<Resource> get10Recent(ResourceResolver resolver) {
         Iterator<Resource> it = resolver.findResources(
                 "SELECT * FROM [nt:hierarchyNode] WHERE [jcr:content/jcr:lastModifiedBy] = '" + resolver.getUserID()
-                        + "' AND ISDESCENDANTNODE([/content]) ORDER BY [jcr:content/jcr:lastModified] DESC /* slingQueryLimit=10 */",
+                        + "' AND ISDESCENDANTNODE([/content]) ORDER BY [jcr:content/jcr:lastModified] DESC",
                 Query.JCR_SQL2);
         return StreamSupport.stream(Spliterators.spliteratorUnknownSize(it, Spliterator.NONNULL), false).limit(10);
     }