Uploaded image for project: 'Red Hat Process Automation Manager'
  1. Red Hat Process Automation Manager
  2. RHPAM-2308

Renaming a test scenario containing a tag results in .dot file created and Indexer error thrown

    Details

    • Type: Bug
    • Status: Pull Request Sent (View Workflow)
    • Priority: Critical
    • Resolution: Unresolved
    • Affects Version/s: 7.4.1.GA
    • Fix Version/s: None
    • Component/s: Business Central
    • Labels:
    • Environment:

      Business Central

    • Target Release:
    • Steps to Reproduce:
      • Create a Legacy Test Scenario
      • Add a tag
      • Save the asset
      • Rename the asset
    • Sprint:
      2019 Week 41-43 (from Okt 7)

      Description

      When we create a test scenario in business central 7.4. and then we add a tag to it (overview -> metadata -> tags -> add new tag -> save -> close) a "Dot file" is created after renaming the asset, which business-central does not hide from the search result list, and an exception is thrown:

      08:12:40,140 ERROR [org.kie.workbench.common.services.refactoring.backend.server.indexing.AbstractFileIndexer] (Thread-180) Unable to index 'default://master@MySpace/example-Mortgage_Process/src/test/resources/.testscenario3.scenario'.: java.lang.ClassCastException: org.uberfire.java.nio.base.Properties cannot be cast to org.drools.workbench.models.testscenarios.shared.Scenario
      	at org.drools.workbench.models.testscenarios.backend.util.ScenarioXMLPersistence.unmarshal(ScenarioXMLPersistence.java:96)
      	at org.drools.workbench.screens.testscenario.backend.server.indexing.TestScenarioFileIndexer.fillIndexBuilder(TestScenarioFileIndexer.java:49)
      	at org.drools.workbench.screens.testscenario.backend.server.indexing.TestScenarioFileIndexer.fillIndexBuilder(TestScenarioFileIndexer.java:33)
      	at org.kie.workbench.common.services.refactoring.backend.server.indexing.AbstractFileIndexer.toKObject(AbstractFileIndexer.java:78)
      	at org.drools.workbench.screens.testscenario.backend.server.indexing.TestScenarioFileIndexer$Proxy$_$$_WeldClientProxy.toKObject(Unknown Source)
      	at org.uberfire.ext.metadata.io.IndexerDispatcher$IndexerJob.processRenamed(IndexerDispatcher.java:244)
      	at org.uberfire.ext.metadata.io.IndexableIOEvent$RenamedFileEvent.apply(IndexableIOEvent.java:97)
      	at org.uberfire.ext.metadata.io.IndexerDispatcher$IndexerJob.processEvent(IndexerDispatcher.java:235)
      	at org.uberfire.ext.metadata.io.IndexerDispatcher$IndexerJob.processEvents(IndexerDispatcher.java:211)
      	at org.uberfire.ext.metadata.io.IndexerDispatcher$IndexerJob.get(IndexerDispatcher.java:188)
      	at org.uberfire.ext.metadata.io.IndexerDispatcher$IndexerJob.get(IndexerDispatcher.java:159)
      	at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1590)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at java.lang.Thread.run(Thread.java:748)
      

      These ".dotfiles" are created to maintain data to be shown in the "Overview" tab when using any file editor.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  mputz Martin Weiler
                  Reporter:
                  mcarvalho Marcus Carvalho
                  Tester:
                  Dominik Hanak
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  8 Start watching this issue

                  Dates

                  • Created:
                    Updated: