Project

General

Profile

Actions

Bug #16203

closed

Bug #14431: Accepted inventory without matching rudder node appears in quicksearch

Quicksearch leads to stacktrace since parent ticket correction

Added by François ARMAND about 5 years ago. Updated almost 5 years ago.

Status:
Released
Priority:
N/A
Category:
Web - Nodes & inventories
Target version:
Severity:
Major - prevents use of part of Rudder | no simple workaround
UX impact:
User visibility:
Getting started - demo | first install | Technique editor and level 1 Techniques
Effort required:
Very Small
Priority:
98
Name check:
Reviewed
Fix check:
Checked
Regression:

Description

Depending on what we search (I believe it needs to yield results from both node and non node objects), we now get the following trace:


Fiber failed.
An unchecked error was produced.
java.util.NoSuchElementException: nodeId
    at com.normation.ldap.sdk.LDAPEntry.$anonfun$value_$bang$1(LDAPEntry.scala:177)
    at scala.Option.getOrElse(Option.scala:189)
    at com.normation.ldap.sdk.LDAPEntry.value_$bang(LDAPEntry.scala:177)
    at com.normation.rudder.services.quicksearch.QSLdapBackend$.$anonfun$search$22(QuickSearchBackendImpl.scala:250)
    at scala.collection.TraversableLike.$anonfun$flatMap$1(TraversableLike.scala:245)
    at scala.collection.mutable.ResizableArray.foreach(ResizableArray.scala:62)
    at scala.collection.mutable.ResizableArray.foreach$(ResizableArray.scala:55)
    at scala.collection.mutable.ArrayBuffer.foreach(ArrayBuffer.scala:49)
    at scala.collection.TraversableLike.flatMap(TraversableLike.scala:245)
    at scala.collection.TraversableLike.flatMap$(TraversableLike.scala:242)
    at scala.collection.AbstractTraversable.flatMap(Traversable.scala:108)
    at com.normation.rudder.services.quicksearch.QSLdapBackend$.$anonfun$search$16(QuickSearchBackendImpl.scala:249)
    at zio.ZIO$MapFn.apply(ZIO.scala:2738)
    at zio.ZIO$MapFn.apply(ZIO.scala:2736)
    at zio.internal.FiberContext.evaluateNow(FiberContext.scala:797)
    at zio.internal.FiberContext.$anonfun$evaluateLater$1(FiberContext.scala:661)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
    at java.base/java.lang.Thread.run(Thread.java:834)

Fiber:Id(1574090091757,324944) was supposed to continue to:
  a future continuation at zio.ZIO.run(ZIO.scala:1166)
  a future continuation at com.normation.ldap.sdk.LDAPConnectionProvider.withCon(LDAPConnectionProvider.scala:117)
  a future continuation at zio.ZIO$.zio$ZIO$$_succeedRight(ZIO.scala:2717)
  a future continuation at zio.ZIO.run(ZIO.scala:1166)
  a future continuation at zio.ZIO.bracket_(ZIO.scala:147)
  a future continuation at zio.ZIO.run(ZIO.scala:1166)
  a future continuation at zio.ZIO.bracket_(ZIO.scala:147)
  a future continuation at com.normation.zio$ZioRuntime$.runNow(ZioCommons.scala:327)

Fiber:Id(1574090091757,324944) execution trace:
  at com.normation.rudder.services.quicksearch.QSLdapBackend$.search(QuickSearchBackendImpl.scala:233)
  at com.normation.ldap.sdk.RoLDAPConnection.search(LDAPConnection.scala:321)
  at zio.internal.FiberContext$InterruptExit$.apply(FiberContext.scala:157)
  at zio.internal.FiberContext$InterruptExit$.apply(FiberContext.scala:150)
  at zio.ZIOFunctions.bracketExit(ZIO.scala:1765)
Actions #1

Updated by François ARMAND about 5 years ago

  • Status changed from New to In progress
Actions #2

Updated by François ARMAND about 5 years ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from François ARMAND to Vincent MEMBRÉ
  • Pull Request set to https://github.com/Normation/rudder/pull/2616
Actions #3

Updated by François ARMAND about 5 years ago

  • Status changed from Pending technical review to Pending release
Actions #4

Updated by Alexis Mousset about 5 years ago

  • Name check changed from To do to Reviewed
Actions #5

Updated by François ARMAND about 5 years ago

  • Fix check changed from To do to Checked
Actions #6

Updated by Vincent MEMBRÉ almost 5 years ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 5.0.15 which was released today.

Actions

Also available in: Atom PDF