How to reproduce :
Create a search service with a "link to a page" param in Display > Link setting.
link to a unpublished page.
Open the page in preview, the service is not visible.
Log :
Category: org.ametys.web.frontoffice.search Message: An error occured while executing search component 'org.ametys.web.frontoffice.search.requesttime.impl.SaxGeneralDataSearchComponent$part1' for request '46c559d3'. Other components will be executed but the result can be inconsistent Location: org.apache.cocoon.util.log.SLF4JLoggerAdapter.error(SLF4JLoggerAdapter.java:46) Thrown: org.ametys.plugins.repository.UnknownAmetysObjectException: There's no node for id page://e0c6c43d-73e6-4332-92d3-dad5cd0dee27 at org.ametys.plugins.repository.jcr.SimpleAmetysObjectFactory.getNode(SimpleAmetysObjectFactory.java:187) at org.ametys.plugins.repository.jcr.SimpleAmetysObjectFactory.getAmetysObjectById(SimpleAmetysObjectFactory.java:137) at org.ametys.plugins.repository.jcr.SimpleAmetysObjectFactory.getAmetysObjectById(SimpleAmetysObjectFactory.java:126) at org.ametys.plugins.repository.jcr.SimpleAmetysObjectFactory.getAmetysObjectById(SimpleAmetysObjectFactory.java:1) at org.ametys.plugins.repository.AmetysObjectResolver.resolveById(AmetysObjectResolver.java:318) at java.base/java.util.Optional.map(Optional.java:265) at org.ametys.web.frontoffice.search.instance.model.Link.getTarget(Link.java:54) at org.ametys.web.frontoffice.search.requesttime.impl.SaxGeneralDataSearchComponent.execute(SaxGeneralDataSearchComponent.java:116) at org.ametys.web.frontoffice.search.requesttime.SearchServiceGenerator.generate(SearchServiceGenerator.java:174) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:581) at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline(AbstractCachingProcessingPipeline.java:301) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:782) at org.apache.cocoon.components.source.impl.SitemapSource.toSAX(SitemapSource.java:414) at org.apache.cocoon.components.source.SourceUtil.toSAX(SourceUtil.java:101) at org.apache.cocoon.components.source.SourceUtil.toSAX(SourceUtil.java:181) at org.apache.cocoon.components.source.SourceUtil.toSAX(SourceUtil.java:140) at org.ametys.web.repository.PageGenerator._saxSource(PageGenerator.java:722) at org.ametys.web.repository.PageGenerator._saxZoneItem(PageGenerator.java:519) at org.ametys.web.repository.PageGenerator._saxZoneItems(PageGenerator.java:389) at org.ametys.web.repository.PageGenerator._saxZone(PageGenerator.java:316) at org.ametys.web.repository.PageGenerator.generate(PageGenerator.java:237)