Fix collection tree caching bug
authorKonrad Rudolph <konrad.rudolph@gmail.com>
Thu, 30 Mar 2023 16:33:15 +0000 (18:33 +0200)
committerKonrad Rudolph <konrad.rudolph@gmail.com>
Fri, 31 Mar 2023 07:07:01 +0000 (09:07 +0200)
Before this fix, accessing two files inside the same collection in
succession via `collection$get` will fail on the second file because the
private tree inside the `collection` is only populated with the relative
path of the first file.

Arvados-DCO-1.1-Signed-off-by: Konrad Rudolph <konrad.rudolph@gmail.com>

sdk/R/R/Collection.R

index 655bf98b3dbccd417c17e22b8fe8b84ae52b5cb0..14ab0e6f267af019f64d93a232afbe47bb52d120 100644 (file)
@@ -391,7 +391,7 @@ Collection <- R6::R6Class(
         get = function(relativePath)
         {
             if(is.null(private$tree))
-                private$generateCollectionTreeStructure(relativePath)
+                private$generateCollectionTreeStructure()
 
             private$tree$getElement(relativePath)
         },