Project

General

Profile

Actions

Bug #96391

open

Error with File storage tree when using filter

Added by Stig Nørgaard Færch almost 3 years ago. Updated about 1 year ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Backend User Interface
Start date:
2021-12-20
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
11
PHP Version:
7.4
Tags:
Complexity:
Is Regression:
Sprint Focus:
Stabilization Sprint

Description

A “Navigation loading error” shows when a user:
  1. has a file mount to a folder in a storage (not root of storage)
  2. in the folder tree, something is searched on where a search hit is expected (a folder name)
  • After this, reload of folder tree will also reproduce the error
  • The error will not show if searching on term where result is not expected

Files

Screenshot 2021-12-20 at 10.12.08.png (41.8 KB) Screenshot 2021-12-20 at 10.12.08.png Stig Nørgaard Færch, 2021-12-20 11:23
Actions #3

Updated by Stig Nørgaard Færch almost 3 years ago

Suggestion for fix:

diff --git a/public/typo3/sysext/backend/Classes/Controller/FileStorage/TreeController.php b/public/typo3/sysext/backend/Classes/Controller/FileStorage/TreeController.php
--- a/public/typo3/sysext/backend/Classes/Controller/FileStorage/TreeController.php    
+++ b/public/typo3/sysext/backend/Classes/Controller/FileStorage/TreeController.php    (date 1639999714118)
@@ -98,7 +98,7 @@
                     ]
                 );
                 $isParent = true;
-                $nextFolder = $nextFolder->getParentFolder();
+                $nextFolder =  $nextFolder->getStorage()->getFolder($nextFolder->getStorage()->getFolderIdentifierFromFileIdentifier($nextFolder->getIdentifier()), true);
             } while ($nextFolder instanceof Folder && $nextFolder->getIdentifier() !== '/');
             // Add the storage / sys_filemount itself
             $storageData = $this->treeProvider->prepareFolderInformation(

Actions #4

Updated by Riccardo De Contardi over 2 years ago

  • Category set to Backend User Interface

This issue seems still present on 12.0.0-dev (latest main)

Actions #5

Updated by Riccardo De Contardi over 2 years ago

  • Sprint Focus set to On Location Sprint
Actions #6

Updated by Oliver Hader about 2 years ago

  • Sprint Focus deleted (On Location Sprint)
Actions #7

Updated by Benni Mack over 1 year ago

  • Sprint Focus set to Stabilization Sprint
Actions #8

Updated by Łukasz Uznański about 1 year ago

Hi,

I can't reproduce this issue on current main v13. Looks like code in TreeController is a bit different now. Are there any additional steps required?

Actions

Also available in: Atom PDF