Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-8760

[Widget] Typing a comma in the select-referencetable-content widget

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.1.0
    • 4.1.0
    • None
    • None
    • 4.1 M5, 4.1 M6

      I try to make a search by typing in the select-referencetable-content widget, but immediatly after typing a space into the field, the widget consider this as a validation then a new search.

      For example, I try to type "Droit, " to find "Droit, économie, gestion", I get the following error :

      An object id must conform to the <protocol>://<protocol-specific-part> syntax: Droit
      org.ametys.plugins.repository.AmetysRepositoryException: An object id must conform to the <protocol>://<protocol-specific-part> syntax: Droit 
          at org.ametys.plugins.repository.AmetysObjectResolver.resolveById(AmetysObjectResolver.java:298) 
          at org.ametys.cms.search.cocoon.SearchJsonReader.setContents(SearchJsonReader.java:225) 
          at org.ametys.cms.search.cocoon.SearchJsonReader.convertContents2JsonObject(SearchJsonReader.java:177) 
          at org.ametys.cms.search.cocoon.SearchJsonReader.generate(SearchJsonReader.java:119) 
          at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processReader(AbstractCachingProcessingPipeline.java:921) 
          at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:475) 
          at org.apache.cocoon.components.source.impl.SitemapSource.getInputStream(SitemapSource.java:267) 
          at org.ametys.core.ui.dispatcher.DispatchGenerator._dispatching(DispatchGenerator.java:151) 
          at org.ametys.core.ui.dispatcher.DispatchGenerator.generate(DispatchGenerator.java:91) 
          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:483) 
          at org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:144) 
          at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47) 
          at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108) 
          at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69) 
          at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143) 
          at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69) 
          at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93) 
          at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:236) 
          at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:178) 
          at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:254) 
          at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:118) 
          at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47) 
          at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108) 
          at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69) 
          at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143) 
          at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69) 
          at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93) 
          at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:236) 
          at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:178) 
          at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:254) 
          at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:118) 
          at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47) 
          at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108) 
          at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69) 
          at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143) 
          at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69) 
          at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93) 
          at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:236) 
          at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:178) 
          at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:254) 
          at org.apache.cocoon.Cocoon.process(Cocoon.java:699) 
          at org.ametys.runtime.servlet.RuntimeServlet.service(RuntimeServlet.java:543) 
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) 
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292) 
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) 
          at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) 
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) 
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) 
          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212) 
          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:94) 
          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141) 
          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79) 
          at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:620) 
          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88) 
          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:502) 
          at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1132) 
          at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:684) 
          at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1539) 
          at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1495) 
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) 
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) 
          at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) 
          at java.lang.Thread.run(Thread.java:745)

        1. Search1.jpg
          4 kB
          Bérénice Maurel
        2. Search2.jpg
          5 kB
          Bérénice Maurel
        3. Search3.jpg
          11 kB
          Bérénice Maurel
        4. Search4.jpg
          5 kB
          Bérénice Maurel

            sprieul Simon Prieul (Inactive)
            bmaurel Bérénice Maurel
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: