-
Type: Bug
-
Status: Resolved
-
Priority: Critical
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 2022.5.6
-
Component/s: Deployment Extensions, Studio Modeler
Steps to Reproduce:
- In Studio Modeler, navigate to Search -> Elasticsearch Mapping
- Add a mapping for any field
- Deploy Studio project to instance
- Attempt a full repository reindex
Expected Results: Able to perform the reindex
Actual Results: The following error is seen
Caused by: java.lang.IllegalArgumentException: Resource file cannot be found: /Users/nicolepeacock/nuxeo_server_instances/nuxeo-server-tomcat-2021.1_orig/nxserver/config/npeacock-SANDBOX-0-elasticsearch-mapping.json or npeacock-SANDBOX-0-elasticsearch-mapping.json at org.nuxeo.elasticsearch.config.ElasticSearchIndexConfig.getResourceStream(ElasticSearchIndexConfig.java:173) ~[nuxeo-elasticsearch-core-2021.26.5.jar:?] at org.nuxeo.elasticsearch.config.ElasticSearchIndexConfig.contentOfFile(ElasticSearchIndexConfig.java:146) ~[nuxeo-elasticsearch-core-2021.26.5.jar:?]
It seems that the path of the json file in the extension needs to have OSGI-INF/<file_name>, e.g.
<extension target="org.nuxeo.elasticsearch.ElasticSearchComponent" point="elasticSearchIndex"> <elasticSearchIndex name="${elasticsearch.indexName:=nuxeo}"> <mapping file="OSGI-INF/npeacock-SANDBOX-0-elasticsearch-mapping.json" append="true"/> </elasticSearchIndex> </extension>
- is related to
-
NXS-6855 Reindex unable to parse custom mapping defined in Studio
- Resolved