Uploaded image for project: 'Extraction'
  1. Extraction
  2. EXTRACT-87

Exception when there are two groups containing the same variable

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major Major
    • 1.1.0
    • 1.1.0
    • None
    • 4.2 M7

      for instance

      <clause>{!ametys join=bar-&gt;qux q='#{id:"${../../../foo}"}'} OR {!ametys join=qux-&gt;foo-&gt;bar q='#{id:"${../../../foo}"}'}</clause>

      throws:

      java.lang.IllegalArgumentException: Query component 'tagName': if there's at least one group, every variable should be in a group.
              at org.ametys.plugins.extraction.component.AbstractSolrExtractionComponent._computeClausesInfos(AbstractSolrExtractionComponent.java:198)
              at org.ametys.plugins.extraction.component.AbstractSolrExtractionComponent.prepareComponentExecution(AbstractSolrExtractionComponent.java:148)
              at org.ametys.plugins.extraction.component.AbstractGroupExtractionComponent.prepareComponentExecution(AbstractGroupExtractionComponent.java:72)
              at org.ametys.plugins.extraction.component.QueryExtractionComponent.prepareComponentExecution(QueryExtractionComponent.java:118)
              at org.ametys.plugins.extraction.component.AbstractExtractionComponent.prepareComponentExecution(AbstractExtractionComponent.java:89)
              at org.ametys.plugins.extraction.component.AbstractSolrExtractionComponent.prepareComponentExecution(AbstractSolrExtractionComponent.java:140)
              at org.ametys.plugins.extraction.component.AbstractGroupExtractionComponent.prepareComponentExecution(AbstractGroupExtractionComponent.java:72)
              at org.ametys.plugins.extraction.component.QueryExtractionComponent.prepareComponentExecution(QueryExtractionComponent.java:118)
              at org.ametys.plugins.extraction.component.AbstractExtractionComponent.prepareComponentExecution(AbstractExtractionComponent.java:89)
              at org.ametys.plugins.extraction.component.AbstractSolrExtractionComponent.prepareComponentExecution(AbstractSolrExtractionComponent.java:140)
              at org.ametys.plugins.extraction.component.AbstractGroupExtractionComponent.prepareComponentExecution(AbstractGroupExtractionComponent.java:72)
              at org.ametys.plugins.extraction.component.QueryExtractionComponent.prepareComponentExecution(QueryExtractionComponent.java:118)
              at org.ametys.plugins.extraction.component.AbstractExtractionComponent.prepareComponentExecution(AbstractExtractionComponent.java:89)
              at org.ametys.plugins.extraction.component.AbstractSolrExtractionComponent.prepareComponentExecution(AbstractSolrExtractionComponent.java:140)
              at org.ametys.plugins.extraction.component.AbstractExtractionComponent.prepareComponentExecution(AbstractExtractionComponent.java:89)
              at org.ametys.plugins.extraction.execution.ExtractionExecutor._noVarExecute(ExtractionExecutor.java:254)
              at org.ametys.plugins.extraction.execution.ExtractionExecutor._doExecuteForPathWithNoVar(ExtractionExecutor.java:242)
              at org.ametys.plugins.extraction.execution.ExtractionExecutor._doExecute(ExtractionExecutor.java:221)
              at org.ametys.plugins.extraction.execution.ExtractionExecutor.execute(ExtractionExecutor.java:151)
              at org.ametys.plugins.extraction.execution.ExecuteExtractionSchedulable.execute(ExecuteExtractionSchedulable.java:110)

            Unassigned Unassigned
            sprieul Simon Prieul (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: