You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2022/03/31 13:01:10 UTC

[sling-org-apache-sling-feature-cpconverter] branch issue/SLING-11237 created (now ed1d85e)

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

rombert pushed a change to branch issue/SLING-11237
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-feature-cpconverter.git.


      at ed1d85e  SLING-11237 - Oak index definitions extension must be optional

This branch includes the following new commits:

     new ed1d85e  SLING-11237 - Oak index definitions extension must be optional

The 1 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.


[sling-org-apache-sling-feature-cpconverter] 01/01: SLING-11237 - Oak index definitions extension must be optional

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

rombert pushed a commit to branch issue/SLING-11237
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-feature-cpconverter.git

commit ed1d85ec33ad54307f74eacc35011f5de99f10a5
Author: Robert Munteanu <ro...@apache.org>
AuthorDate: Thu Mar 31 15:00:40 2022 +0200

    SLING-11237 - Oak index definitions extension must be optional
---
 .../sling/feature/cpconverter/features/DefaultFeaturesManager.java      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/sling/feature/cpconverter/features/DefaultFeaturesManager.java b/src/main/java/org/apache/sling/feature/cpconverter/features/DefaultFeaturesManager.java
index 3eb9e6d..2c93153 100644
--- a/src/main/java/org/apache/sling/feature/cpconverter/features/DefaultFeaturesManager.java
+++ b/src/main/java/org/apache/sling/feature/cpconverter/features/DefaultFeaturesManager.java
@@ -546,7 +546,7 @@ public class DefaultFeaturesManager implements FeaturesManager, PackagesEventsEm
 
         Extension oakIndexDefsExtension = getRunMode(null).getExtensions().getByName(IndexManager.EXTENSION_NAME);
         if (oakIndexDefsExtension == null) {
-            oakIndexDefsExtension = new Extension(ExtensionType.JSON, IndexManager.EXTENSION_NAME, ExtensionState.REQUIRED);
+            oakIndexDefsExtension = new Extension(ExtensionType.JSON, IndexManager.EXTENSION_NAME, ExtensionState.OPTIONAL);
             getRunMode(null).getExtensions().add(oakIndexDefsExtension);
             oakIndexDefsExtension.setJSON(text);
         } else {