Actions
Bug #19632
closedIncorrect pattern matching leads to error in inventory parsing
Status:
Released
Priority:
N/A
Assignee:
Category:
Web - Nodes & inventories
Target version:
Pull Request:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
Checked
Regression:
Description
An unchecked error was produced. scala.MatchError: Some(localhost) (of class scala.Some) at com.normation.inventory.provisioning.fusion.FusionReportUnmarshaller.getHostname(FusionReportUnmarshaller.scala:267) at com.normation.inventory.provisioning.fusion.FusionReportUnmarshaller.fromXmlDoc(FusionReportUnmarshaller.scala:113) at com.normation.inventory.services.provisioning.PipelinedReportUnmarshaller.$anonfun$fromXmlDoc$3(ReportUnmarshaller.scala:122) at zio.internal.FiberContext.evaluateNow(FiberContext.scala:916) at zio.internal.FiberContext.$anonfun$evaluateLater$1(FiberContext.scala:778) 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) Fiber:Id(1627651696616,191) was supposed to continue to: a future continuation at com.normation.rudder.inventory.InventoryProcessor.saveInventoryInternal(InventoryProcessor.scala:237) a future continuation at zio.ZIO.run(ZIO.scala:1640) a future continuation at com.normation.rudder.inventory.InventoryProcessor.saveInventoryInternal(InventoryProcessor.scala:231) a future continuation at com.normation.errors$IOChainError$.chainError(ZioCommons.scala:202) a future continuation at com.normation.rudder.inventory.InventoryProcessor.saveInventoryInternal(InventoryProcessor.scala:251) a future continuation at zio.ZIO.run(ZIO.scala:1640) a future continuation at zio.Semaphore.withPermits(Semaphore.scala:61) a future continuation at com.normation.rudder.inventory.InventoryProcessor.saveInventoryInternal(InventoryProcessor.scala:253) a future continuation at com.normation.rudder.inventory.InventoryProcessor.saveInventoryInternal(InventoryProcessor.scala:283) a future continuation at com.normation.rudder.inventory.InventoryProcessor.saveInventoryInternal(InventoryProcessor.scala:299) a future continuation at com.normation.rudder.inventory.InventoryProcessor.saveInventoryBlocking(InventoryProcessor.scala:193) a future continuation at zio.ZIO$.zio$ZIO$$_succeedRight(ZIO.scala:4121) a future continuation at com.normation.rudder.inventory.ProcessFile.sendToProcessorBlocking(InventoryFileWatcher.scala:484) a future continuation at com.normation.rudder.inventory.ProcessFile.sendToProcessorBlocking(InventoryFileWatcher.scala:499) a future continuation at com.normation.rudder.inventory.ProcessFile.saveInventoryBufferProcessing(InventoryFileWatcher.scala:409) a future continuation at zio.ZIO.forever(ZIO.scala:686) a future continuation at zio.ZIO.forever(ZIO.scala:686) Fiber:Id(1627651696616,191) execution trace: at com.normation.inventory.services.provisioning.PipelinedReportUnmarshaller.fromXmlDoc(ReportUnmarshaller.scala:122) at com.normation.errors$IOChainError$.chainError(ZioCommons.scala:202) at com.normation.inventory.provisioning.fusion.PreUnmarshallCheckConsistency.checkSecurityToken(PreUnmarshallCheckConsistency.scala:256) at com.normation.errors$IOChainError$.chainError(ZioCommons.scala:202) at com.normation.inventory.provisioning.fusion.PreUnmarshallCheckConsistency.checkSecurityToken(PreUnmarshallCheckConsistency.scala:252) at zio.syntax$ToZio.succeed(syntax.scala:9) at zio.ZIO$.foldLeft(ZIO.scala:2787) at com.normation.inventory.provisioning.fusion.PreUnmarshallCheckConsistency.checkAgentType(PreUnmarshallCheckConsistency.scala:245) at com.normation.inventory.provisioning.fusion.PreUnmarshallCheckConsistency.checkAgentType(PreUnmarshallCheckConsistency.scala:241) at zio.syntax$ToZio.succeed(syntax.scala:9) at zio.ZIO$.foldLeft(ZIO.scala:2787) at com.normation.inventory.provisioning.fusion.PreUnmarshallCheckConsistency.checkKernelVersion(PreUnmarshallCheckConsistency.scala:207) at com.normation.inventory.provisioning.fusion.PreUnmarshallCheckConsistency.checkKernelVersion(PreUnmarshallCheckConsistency.scala:205) at zio.syntax$ToZio.succeed(syntax.scala:9) at zio.ZIO$.foldLeft(ZIO.scala:2787) at zio.syntax$ToZio.succeed(syntax.scala:9) at com.normation.inventory
Actions