Project

General

Profile

Actions

Bug #62848

closed

FAL file info permissions

Added by Johannes C. Schulz over 9 years ago. Updated almost 9 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
File Abstraction Layer (FAL)
Target version:
-
Start date:
2014-11-11
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

After migrating all file-relations from 4.7.x to 6.2.6 FAL our editors are not able to open file-info of migrated files. The displayed pop-up keeps empty.
The file-info is only available if the editor had uploaded the file.

I also can't find a method to change permissions of these files.

Actions #1

Updated by Frans Saris over 9 years ago

  • Status changed from New to Needs Feedback

Have the editors permission to view sys_file* tables?

Actions #2

Updated by Johannes C. Schulz over 9 years ago

hello Frans

Yes of curse.
Their group has rights for view and edit: file, filcollection, file-meta, file-reference, file-storage (without edit).

best regards
Johannes

Actions #3

Updated by Frans Saris over 9 years ago

The file-info is only available if the editor had uploaded the file.

Only if they uploaded the file them self or all new uploaded files?

Gr. Frans

Actions #4

Updated by Johannes C. Schulz over 9 years ago

Hello Frans

They can't access info of old (migrated) files.
They can access info of files they uploaded themself.

Actions #5

Updated by Frans Saris over 9 years ago

But can they access the info screen of a file some other editor uploaded?

Actions #6

Updated by Johannes C. Schulz over 9 years ago

Yes. If I upload an image as editor A and try to open "info-view" as editor B it works.

Actions #7

Updated by Alexander Opitz over 9 years ago

  • Status changed from Needs Feedback to New
Actions #8

Updated by Frans Saris over 9 years ago

  • Status changed from New to Needs Feedback

Johannes is this still a issue for you?

Could you check if there is any difference between the sys_file_metadata record of a migrated and a new uploaded file.

And could you check if the empty page is a result of an PHP error (set context to development in the install tool).

gr. Frans

Actions #9

Updated by Johannes C. Schulz over 9 years ago

Hello Frans

Yes - problem still exists.
The "empty" page/popup is not "empty" like 500error, it's "empty" like "no content". The HTML-Markup is rendered, but there is no information, no styles. There's no entry in log-file.

Like you wrote I exported sys_file_metadata of two images.

The migrated one:

(`uid`, `pid`, `tstamp`, `crdate`, `cruser_id`, `sys_language_uid`, `l10n_parent`, `l10n_diffsource`, `t3ver_oid`, `t3ver_id`, `t3ver_wsid`, `t3ver_label`, `t3ver_state`, `t3ver_stage`, `t3ver_count`, `t3ver_tstamp`, `t3ver_move_id`, `t3_origuid`, `file`, `title`, `width`, `height`, `description`, `alternative`, `categories`) VALUES
(15632, 0, 1417108420, 1417108419, 27, 0, 0, '', 0, 0, 0, '', 0, 0, 0, 0, 0, 0, 16003, NULL, 800, 510, NULL, NULL, 0);

The one, after upgrade uploaded by editor:

(`uid`, `pid`, `tstamp`, `crdate`, `cruser_id`, `sys_language_uid`, `l10n_parent`, `l10n_diffsource`, `t3ver_oid`, `t3ver_id`, `t3ver_wsid`, `t3ver_label`, `t3ver_state`, `t3ver_stage`, `t3ver_count`, `t3ver_tstamp`, `t3ver_move_id`, `t3_origuid`, `file`, `title`, `width`, `height`, `description`, `alternative`, `categories`) VALUES
(825, 0, 1414150237, 1414150206, 0, 0, 0, '', 0, 0, 0, '', 0, 0, 0, 0, 0, 0, 825, NULL, 400, 256, NULL, NULL, 0);

For me only "cruser_id" differs, does this export help you?

Kind regards
Johannes

Actions #10

Updated by Frans Saris over 9 years ago

Hi Johannes,

could you maybe make a small adjustment to "typo3/sysext/backend/Classes/Controller/ContentElement/ElementInformationController.php" and then try again?

Remove the try catch on line 171:

so instead of:

            try {
                $metaData = $fileOrFolderObject->_getMetaData();
                $this->row = BackendUtility::getRecordWSOL($this->table, $metaData['uid']);
            } catch (\Exception $e) {
                $this->row = array();
            }

Only
            $metaData = $fileOrFolderObject->_getMetaData();
            $this->row = BackendUtility::getRecordWSOL($this->table, $metaData['uid']);

I expect that you get a exception when you try to view the info as an editor instead of the empty window.

gr. Frans

Actions #11

Updated by Johannes C. Schulz over 9 years ago

Hey Frans

Tried that, but nothing changed.

Kind regards
Johannes

Actions #12

Updated by Frans Saris over 9 years ago

Could you check if the code is executed that far? Add a exit('hello'); before
$metaData = $fileOrFolderObject->_getMetaData();

gr. Frans

Actions #13

Updated by Johannes C. Schulz over 9 years ago

Hello Frans

I tried this today. And the code is executed, because not "Hello" appears inside the popup.

Kind regrards
Johannes

Actions #14

Updated by Frans Saris over 9 years ago

The "hello" should appear.

Could you maybe move the exit('hello'); to the init() of ElementInformationController.php and try to check if you get output then.

Are you sure you are in development context? So PHP errors are shown.

gr. Frans

Actions #15

Updated by Johannes C. Schulz over 9 years ago

Hello Frans

Sorry - I did a mistake in my last answer. Maybe it was too early this morning.
The "hello" appeared after inserting exit('hello'); on line 171.

I entered the exit('hello'); as first statement inside init(). Then "hello" appeared also.

I use a 1:1 copy for development and there I'm in dev-mode.

Kind regards
Johannes

Actions #16

Updated by Frans Saris over 9 years ago

Is "hello" also shown if you put the exit('hello'); after $metaData = $fileOrFolderObject->_getMetaData();?

Actions #17

Updated by Johannes C. Schulz over 9 years ago

Yes.

Actions #18

Updated by Frans Saris over 9 years ago

And if you try:

exit($this->access ? 'yes' : 'permission denied');

But, just to recheck again, new files that an editor uploads in the same folder are visible for him?

Actions #19

Updated by Johannes C. Schulz over 9 years ago

Okay, tried that.

migrated image:
"permission dienied"

editors upload:
"yes"

Kind regards
Johannes

Actions #20

Updated by Frans Saris over 9 years ago

Okay, so:

  • Admin sees info of migrated file, normal editor not
  • Normal editor can upload a file in the same folder as a migrated file and and no problems there with the info pop-up

The RW column in the filelist shows a R for these files?

Could you check in ResourceStorage::checkFileActionPermission() what part returns FALSE for the migrated files.

gr. Frans

Actions #21

Updated by Johannes C. Schulz over 9 years ago

Hello Frans

I attached a screen of my file-list (ok, its german). I think the LS (read and write) is ok. "LS" is shown if I logged in as admin also if I logged in as editor.

I don't know how to answer to your second question about ResourceStorage::checkFileActionPermission() . Where should I use it in which manner?

Kind regards
Johannes

Actions #22

Updated by Frans Saris over 9 years ago

I see no new files in this folder, so this question remains:

Normal editor can upload a file in the same folder as a migrated file and and no problems there with the info pop-up

Regarding:

I don't know how to answer to your second question about ResourceStorage::checkFileActionPermission() . Where should I use it in which manner?

Add an echo('here'); or other output to find out what part of checkFileActionPermission() (of typo3_src/typo3/sysext/core/Classes/Resource/ResourceStorage.php) prevents the editor to view the file info.

gr. Frans

Actions #23

Updated by Johannes C. Schulz over 9 years ago

Hello Frans

Normal editor can upload a file in the same folder as a migrated file and and no problems there with the info pop-up

It's not a folder-associated problem. Editor can upload and see info of files in "old" folders.

Add an echo('here'); or other output to find out what part of checkFileActionPermission() (of typo3_src/typo3/sysext/core/Classes/Resource/ResourceStorage.php) prevents the editor to view the file info.

The echo is outputted at:

// Check 3: Does the user have the right to perform the action?
        // (= is he within the file mount borders)
        if (!$isProcessedFile && !$this->isWithinFileMountBoundaries($file)) {
            echo "check3";
            return FALSE;
        }

Kind regards
Johannes

Actions #24

Updated by Frans Saris over 9 years ago

Could you check if all filemounts are set correct? And if there aren't some double filemounts.

Actions #25

Updated by Johannes C. Schulz over 9 years ago

I looked to all file-mounts and there was one with a strange error:

As I entered, the data the path-value was "not allowed". But it was correct. I selected the path again and saved.

But this had no change about the error in info-popup. Also "check3" appears after opening file-info as editor.

Kind regards
Johannes

Actions #26

Updated by Markus Klein about 9 years ago

  • Target version deleted (next-patchlevel)

Can you please summarize what is still a problem here on 6.2.11+?

Actions #27

Updated by Johannes C. Schulz about 9 years ago

Hello

Same thing with 6.2.11.

Short:

Editors can't access file-info of migrated files.
Editors are able to access file-info of files uploaded after migration.

Looking for:

Something to correct access-restrictions of migrated files.

maybe reason:

typo3_src/typo3/sysext/core/Classes/Resource/ResourceStorage.php

// Check 3: Does the user have the right to perform the action?
// (= is he within the file mount borders)
if (!$isProcessedFile && !$this->isWithinFileMountBoundaries($file)) {

prohibits the access. But file is processed and file is inside file-mount.

best regards
Johannes

Actions #28

Updated by Frans Saris about 9 years ago

Hi Johannes,

Could you do a var_dump or debug of $file and $this for a file the editor can not view and in the same folder a file he can view?

// Check 3: Does the user have the right to perform the action?
// (= is he within the file mount borders)
if (!$isProcessedFile && !$this->isWithinFileMountBoundaries($file)) {

Did you test if you create a new editor with a new BE group can open the info popup of existing files?

gr. Frans

Actions #29

Updated by Johannes C. Schulz about 9 years ago

Hello Frans

Here we go

var_dump($this)

object(TYPO3\CMS\Core\Resource\ResourceStorage)[543]
  protected 'driver' => 
    object(TYPO3\CMS\Core\Resource\Driver\LocalDriver)[544]
      protected 'absoluteBasePath' => string '/home/www/website_v6.de/fileadmin/' (length=33)
      protected 'supportedHashAlgorithms' => 
        array
          0 => string 'sha1' (length=4)
          1 => string 'md5' (length=3)
      protected 'baseUri' => string 'fileadmin/' (length=10)
      protected 'charsetConversion' => null
      protected 'mappingFolderNameToRole' => 
        array
          '_recycler_' => string 'recycler' (length=8)
          '_temp_' => string 'temporary' (length=9)
          'user_upload' => string 'userupload' (length=10)
      protected 'capabilities' => int 7
      protected 'storageUid' => string '1' (length=1)
      protected 'configuration' => 
        array
          'basePath' => string 'fileadmin/' (length=10)
          'pathType' => string 'relative' (length=8)
          'caseSensitive' => string '1' (length=1)
  protected 'storageRecord' => 
    array
      'uid' => string '1' (length=1)
      'pid' => string '0' (length=1)
      'tstamp' => string '1414150206' (length=10)
      'crdate' => string '1414150206' (length=10)
      'cruser_id' => string '0' (length=1)
      'deleted' => string '0' (length=1)
      'hidden' => string '0' (length=1)
      'name' => string 'fileadmin/ (auto-created)' (length=25)
      'description' => string 'This is the local fileadmin/ directory. This storage mount has been created automatically by TYPO3.' (length=99)
      'driver' => string 'Local' (length=5)
      'configuration' => string '<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<T3FlexForms>
    <data>
        <sheet index="sDEF">
            <language index="lDEF">
                <field index="basePath">
                    <value index="vDEF">fileadmin/</value>
                </field>
                <field index="pathType">
                    <value index="vDEF">relative</value>
                </field>
                <field index="caseSensitive">
                    <value index="vDEF">1</value>
                </fie'... (length=583)
      'is_default' => string '1' (length=1)
      'is_browsable' => string '1' (length=1)
      'is_public' => string '1' (length=1)
      'is_writable' => string '1' (length=1)
      'is_online' => string '1' (length=1)
      'processingfolder' => null
  protected 'configuration' => 
    array
      'basePath' => string 'fileadmin/' (length=10)
      'pathType' => string 'relative' (length=8)
      'caseSensitive' => string '1' (length=1)
  protected 'fileProcessingService' => null
  protected 'evaluatePermissions' => boolean true
  protected 'fileMounts' => 
    array
      '/website/ext/enzhotellist/property/' => 
        array
          'uid' => string '6' (length=1)
          'pid' => string '0' (length=1)
          'tstamp' => string '1418815227' (length=10)
          'title' => string 'enzhotellist' (length=12)
          'path' => string '/website/ext/enzhotellist/property/' (length=34)
          'base' => string '1' (length=1)
          'hidden' => string '0' (length=1)
          'deleted' => string '0' (length=1)
          'sorting' => string '16' (length=2)
          'read_only' => string '0' (length=1)
          'folder' => 
            object(TYPO3\CMS\Core\Resource\Folder)[531]
              ...
      '/Redaktion/Startseite/' => 
        array
          'uid' => string '5' (length=1)
          'pid' => string '0' (length=1)
          'tstamp' => string '1418815246' (length=10)
          'title' => string 'Dateien Startseite' (length=18)
          'path' => string '/Redaktion/Startseite/' (length=22)
          'base' => string '1' (length=1)
          'hidden' => string '0' (length=1)
          'deleted' => string '0' (length=1)
          'sorting' => string '32' (length=2)
          'read_only' => string '0' (length=1)
          'folder' => 
            object(TYPO3\CMS\Core\Resource\Folder)[536]
              ...
      '/Redaktion/Wirtschaft/' => 
        array
          'uid' => string '4' (length=1)
          'pid' => string '0' (length=1)
          'tstamp' => string '1307452804' (length=10)
          'title' => string 'Dateien Wirtschaft' (length=18)
          'path' => string '/Redaktion/Wirtschaft/' (length=22)
          'base' => string '1' (length=1)
          'hidden' => string '0' (length=1)
          'deleted' => string '0' (length=1)
          'sorting' => string '64' (length=2)
          'read_only' => string '0' (length=1)
          'folder' => 
            object(TYPO3\CMS\Core\Resource\Folder)[535]
              ...
      '/Redaktion/Leben/' => 
        array
          'uid' => string '3' (length=1)
          'pid' => string '0' (length=1)
          'tstamp' => string '1307452770' (length=10)
          'title' => string 'Dateien Leben' (length=13)
          'path' => string '/Redaktion/Leben/' (length=17)
          'base' => string '1' (length=1)
          'hidden' => string '0' (length=1)
          'deleted' => string '0' (length=1)
          'sorting' => string '128' (length=3)
          'read_only' => string '0' (length=1)
          'folder' => 
            object(TYPO3\CMS\Core\Resource\Folder)[534]
              ...
      '/Redaktion/Tourismus/' => 
        array
          'uid' => string '2' (length=1)
          'pid' => string '0' (length=1)
          'tstamp' => string '1418815162' (length=10)
          'title' => string 'Dateien Tourismus' (length=17)
          'path' => string '/Redaktion/Tourismus/' (length=21)
          'base' => string '1' (length=1)
          'hidden' => string '0' (length=1)
          'deleted' => string '0' (length=1)
          'sorting' => string '256' (length=3)
          'read_only' => string '0' (length=1)
          'folder' => 
            object(TYPO3\CMS\Core\Resource\Folder)[533]
              ...
  protected 'userPermissions' => 
    array
      'addFile' => boolean true
      'readFile' => boolean true
      'writeFile' => boolean true
      'copyFile' => boolean false
      'moveFile' => boolean true
      'renameFile' => boolean true
      'unzipFile' => boolean false
      'deleteFile' => boolean true
      'addFolder' => boolean true
      'readFolder' => boolean true
      'writeFolder' => boolean true
      'copyFolder' => boolean false
      'moveFolder' => boolean true
      'renameFolder' => boolean true
      'deleteFolder' => boolean true
      'recursivedeleteFolder' => boolean false
  protected 'capabilities' => int 7
  protected 'signalSlotDispatcher' => null
  protected 'processingFolder' => 
    object(TYPO3\CMS\Core\Resource\Folder)[532]
      protected 'storage' => 
        &object(TYPO3\CMS\Core\Resource\ResourceStorage)[543]
      protected 'identifier' => string '/_processed_/' (length=13)
      protected 'name' => string '_processed_' (length=11)
      protected 'fileAndFolderNameFilters' => 
        array
          empty
  protected 'isOnline' => null
  protected 'isDefault' => boolean true
  protected 'fileAndFolderNameFilters' => 
    array
      0 => 
        array
          0 => string 'TYPO3\CMS\Core\Resource\Filter\FileNameFilter' (length=45)
          1 => string 'filterHiddenFilesAndFolders' (length=27)

var_dump($file)

object(TYPO3\CMS\Core\Resource\File)[537]
  protected 'metaDataLoaded' => boolean false
  protected 'metaDataProperties' => 
    array
      empty
  protected 'indexingInProgress' => boolean false
  protected 'updatedProperties' => 
    array
      empty
  protected 'indexerService' => null
  protected 'properties' => 
    array
      'uid' => string '1079' (length=4)
      'pid' => string '0' (length=1)
      'missing' => string '0' (length=1)
      'type' => string '2' (length=1)
      'storage' => string '1' (length=1)
      'identifier' => string '/_migrated/pics/WIN_Group_msi.jpg' (length=33)
      'identifier_hash' => string 'f64ac7949bfa2d2e06002f603179b4cb39b40052' (length=40)
      'extension' => string 'jpg' (length=3)
      'mime_type' => string 'image/jpeg' (length=10)
      'name' => string 'WIN_Group_msi.jpg' (length=17)
      'sha1' => string 'c311c76aa09ffcc87c9110ef9b038964f90de637' (length=40)
      'size' => string '355301' (length=6)
      'creation_date' => string '1414150242' (length=10)
      'modification_date' => string '1414149772' (length=10)
      'folder_hash' => string 'f6e391567e01bdb14eac504413794a3bc1300abd' (length=40)
  protected 'storage' => 
    object(TYPO3\CMS\Core\Resource\ResourceStorage)[543]
      protected 'driver' => 
        object(TYPO3\CMS\Core\Resource\Driver\LocalDriver)[544]
          protected 'absoluteBasePath' => string '/home/www/website_v6.de/fileadmin/' (length=33)
          protected 'supportedHashAlgorithms' => 
            array
              ...
          protected 'baseUri' => string 'fileadmin/' (length=10)
          protected 'charsetConversion' => null
          protected 'mappingFolderNameToRole' => 
            array
              ...
          protected 'capabilities' => int 7
          protected 'storageUid' => string '1' (length=1)
          protected 'configuration' => 
            array
              ...
      protected 'storageRecord' => 
        array
          'uid' => string '1' (length=1)
          'pid' => string '0' (length=1)
          'tstamp' => string '1414150206' (length=10)
          'crdate' => string '1414150206' (length=10)
          'cruser_id' => string '0' (length=1)
          'deleted' => string '0' (length=1)
          'hidden' => string '0' (length=1)
          'name' => string 'fileadmin/ (auto-created)' (length=25)
          'description' => string 'This is the local fileadmin/ directory. This storage mount has been created automatically by TYPO3.' (length=99)
          'driver' => string 'Local' (length=5)
          'configuration' => string '<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<T3FlexForms>
    <data>
        <sheet index="sDEF">
            <language index="lDEF">
                <field index="basePath">
                    <value index="vDEF">fileadmin/</value>
                </field>
                <field index="pathType">
                    <value index="vDEF">relative</value>
                </field>
                <field index="caseSensitive">
                    <value index="vDEF">1</value>
                </fie'... (length=583)
          'is_default' => string '1' (length=1)
          'is_browsable' => string '1' (length=1)
          'is_public' => string '1' (length=1)
          'is_writable' => string '1' (length=1)
          'is_online' => string '1' (length=1)
          'processingfolder' => null
      protected 'configuration' => 
        array
          'basePath' => string 'fileadmin/' (length=10)
          'pathType' => string 'relative' (length=8)
          'caseSensitive' => string '1' (length=1)
      protected 'fileProcessingService' => null
      protected 'evaluatePermissions' => boolean true
      protected 'fileMounts' => 
        array
          '/website/ext/enzhotellist/property/' => 
            array
              ...
          '/Redaktion/Startseite/' => 
            array
              ...
          '/Redaktion/Wirtschaft/' => 
            array
              ...
          '/Redaktion/Leben/' => 
            array
              ...
          '/Redaktion/Tourismus/' => 
            array
              ...
      protected 'userPermissions' => 
        array
          'addFile' => boolean true
          'readFile' => boolean true
          'writeFile' => boolean true
          'copyFile' => boolean false
          'moveFile' => boolean true
          'renameFile' => boolean true
          'unzipFile' => boolean false
          'deleteFile' => boolean true
          'addFolder' => boolean true
          'readFolder' => boolean true
          'writeFolder' => boolean true
          'copyFolder' => boolean false
          'moveFolder' => boolean true
          'renameFolder' => boolean true
          'deleteFolder' => boolean true
          'recursivedeleteFolder' => boolean false
      protected 'capabilities' => int 7
      protected 'signalSlotDispatcher' => null
      protected 'processingFolder' => 
        object(TYPO3\CMS\Core\Resource\Folder)[532]
          protected 'storage' => 
            &object(TYPO3\CMS\Core\Resource\ResourceStorage)[543]
          protected 'identifier' => string '/_processed_/' (length=13)
          protected 'name' => string '_processed_' (length=11)
          protected 'fileAndFolderNameFilters' => 
            array
              ...
      protected 'isOnline' => null
      protected 'isDefault' => boolean true
      protected 'fileAndFolderNameFilters' => 
        array
          0 => 
            array
              ...
  protected 'identifier' => string '/_migrated/pics/WIN_Group_msi.jpg' (length=33)
  protected 'name' => string 'WIN_Group_msi.jpg' (length=17)
  protected 'deleted' => boolean false

--

A new generated user with a new BE-group also can't access migrated files by clicking on the image inside page-modul.

best regards
Johannes

Actions #30

Updated by Frans Saris about 9 years ago

Hi Johannes,

This is a dump of a file can not acces? Can you also post also a dump of a file he can access?

Gr. Frans

Is there maybe a possibility you can provide me with the complete failing install so I can debug the issue myself?

Actions #31

Updated by Johannes C. Schulz about 9 years ago

Hello Frans

Sorry for the delay, I had to nurse my kids last week...

Here I have the dump for accessable files:

var_dump($this)

object(TYPO3\CMS\Core\Resource\ResourceStorage)[543]
  protected 'driver' => 
    object(TYPO3\CMS\Core\Resource\Driver\LocalDriver)[544]
      protected 'absoluteBasePath' => string '/home/www/weimar_v6.de/fileadmin/' (length=33)
      protected 'supportedHashAlgorithms' => 
        array
          0 => string 'sha1' (length=4)
          1 => string 'md5' (length=3)
      protected 'baseUri' => string 'fileadmin/' (length=10)
      protected 'charsetConversion' => null
      protected 'mappingFolderNameToRole' => 
        array
          '_recycler_' => string 'recycler' (length=8)
          '_temp_' => string 'temporary' (length=9)
          'user_upload' => string 'userupload' (length=10)
      protected 'capabilities' => int 7
      protected 'storageUid' => string '1' (length=1)
      protected 'configuration' => 
        array
          'basePath' => string 'fileadmin/' (length=10)
          'pathType' => string 'relative' (length=8)
          'caseSensitive' => string '1' (length=1)
  protected 'storageRecord' => 
    array
      'uid' => string '1' (length=1)
      'pid' => string '0' (length=1)
      'tstamp' => string '1414150206' (length=10)
      'crdate' => string '1414150206' (length=10)
      'cruser_id' => string '0' (length=1)
      'deleted' => string '0' (length=1)
      'hidden' => string '0' (length=1)
      'name' => string 'fileadmin/ (auto-created)' (length=25)
      'description' => string 'This is the local fileadmin/ directory. This storage mount has been created automatically by TYPO3.' (length=99)
      'driver' => string 'Local' (length=5)
      'configuration' => string '<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<T3FlexForms>
    <data>
        <sheet index="sDEF">
            <language index="lDEF">
                <field index="basePath">
                    <value index="vDEF">fileadmin/</value>
                </field>
                <field index="pathType">
                    <value index="vDEF">relative</value>
                </field>
                <field index="caseSensitive">
                    <value index="vDEF">1</value>
                </fie'... (length=583)
      'is_default' => string '1' (length=1)
      'is_browsable' => string '1' (length=1)
      'is_public' => string '1' (length=1)
      'is_writable' => string '1' (length=1)
      'is_online' => string '1' (length=1)
      'processingfolder' => null
  protected 'configuration' => 
    array
      'basePath' => string 'fileadmin/' (length=10)
      'pathType' => string 'relative' (length=8)
      'caseSensitive' => string '1' (length=1)
  protected 'fileProcessingService' => null
  protected 'evaluatePermissions' => boolean true
  protected 'fileMounts' => 
    array
      '/Weimar/ext/enzhotellist/property/' => 
        array
          'uid' => string '6' (length=1)
          'pid' => string '0' (length=1)
          'tstamp' => string '1418815227' (length=10)
          'title' => string 'enzhotellist' (length=12)
          'path' => string '/Weimar/ext/enzhotellist/property/' (length=34)
          'base' => string '1' (length=1)
          'hidden' => string '0' (length=1)
          'deleted' => string '0' (length=1)
          'sorting' => string '16' (length=2)
          'read_only' => string '0' (length=1)
          'folder' => 
            object(TYPO3\CMS\Core\Resource\Folder)[531]
              ...
      '/Redaktion/Startseite/' => 
        array
          'uid' => string '5' (length=1)
          'pid' => string '0' (length=1)
          'tstamp' => string '1418815246' (length=10)
          'title' => string 'Dateien Startseite' (length=18)
          'path' => string '/Redaktion/Startseite/' (length=22)
          'base' => string '1' (length=1)
          'hidden' => string '0' (length=1)
          'deleted' => string '0' (length=1)
          'sorting' => string '32' (length=2)
          'read_only' => string '0' (length=1)
          'folder' => 
            object(TYPO3\CMS\Core\Resource\Folder)[536]
              ...
      '/Redaktion/Wirtschaft/' => 
        array
          'uid' => string '4' (length=1)
          'pid' => string '0' (length=1)
          'tstamp' => string '1307452804' (length=10)
          'title' => string 'Dateien Wirtschaft' (length=18)
          'path' => string '/Redaktion/Wirtschaft/' (length=22)
          'base' => string '1' (length=1)
          'hidden' => string '0' (length=1)
          'deleted' => string '0' (length=1)
          'sorting' => string '64' (length=2)
          'read_only' => string '0' (length=1)
          'folder' => 
            object(TYPO3\CMS\Core\Resource\Folder)[535]
              ...
      '/Redaktion/Leben/' => 
        array
          'uid' => string '3' (length=1)
          'pid' => string '0' (length=1)
          'tstamp' => string '1307452770' (length=10)
          'title' => string 'Dateien Leben' (length=13)
          'path' => string '/Redaktion/Leben/' (length=17)
          'base' => string '1' (length=1)
          'hidden' => string '0' (length=1)
          'deleted' => string '0' (length=1)
          'sorting' => string '128' (length=3)
          'read_only' => string '0' (length=1)
          'folder' => 
            object(TYPO3\CMS\Core\Resource\Folder)[534]
              ...
      '/Redaktion/Tourismus/' => 
        array
          'uid' => string '2' (length=1)
          'pid' => string '0' (length=1)
          'tstamp' => string '1418815162' (length=10)
          'title' => string 'Dateien Tourismus' (length=17)
          'path' => string '/Redaktion/Tourismus/' (length=21)
          'base' => string '1' (length=1)
          'hidden' => string '0' (length=1)
          'deleted' => string '0' (length=1)
          'sorting' => string '256' (length=3)
          'read_only' => string '0' (length=1)
          'folder' => 
            object(TYPO3\CMS\Core\Resource\Folder)[533]
              ...
  protected 'userPermissions' => 
    array
      'addFile' => boolean true
      'readFile' => boolean true
      'writeFile' => boolean true
      'copyFile' => boolean false
      'moveFile' => boolean true
      'renameFile' => boolean true
      'unzipFile' => boolean false
      'deleteFile' => boolean true
      'addFolder' => boolean true
      'readFolder' => boolean true
      'writeFolder' => boolean true
      'copyFolder' => boolean false
      'moveFolder' => boolean true
      'renameFolder' => boolean true
      'deleteFolder' => boolean true
      'recursivedeleteFolder' => boolean false
  protected 'capabilities' => int 7
  protected 'signalSlotDispatcher' => null
  protected 'processingFolder' => 
    object(TYPO3\CMS\Core\Resource\Folder)[532]
      protected 'storage' => 
        &object(TYPO3\CMS\Core\Resource\ResourceStorage)[543]
      protected 'identifier' => string '/_processed_/' (length=13)
      protected 'name' => string '_processed_' (length=11)
      protected 'fileAndFolderNameFilters' => 
        array
          empty
  protected 'isOnline' => null
  protected 'isDefault' => boolean true
  protected 'fileAndFolderNameFilters' => 
    array
      0 => 
        array
          0 => string 'TYPO3\CMS\Core\Resource\Filter\FileNameFilter' (length=45)
          1 => string 'filterHiddenFilesAndFolders' (length=27)

var_dump($file)

object(TYPO3\CMS\Core\Resource\File)[537]
  protected 'metaDataLoaded' => boolean false
  protected 'metaDataProperties' => 
    array
      empty
  protected 'indexingInProgress' => boolean false
  protected 'updatedProperties' => 
    array
      empty
  protected 'indexerService' => null
  protected 'properties' => 
    array
      'uid' => string '8955' (length=4)
      'pid' => string '0' (length=1)
      'missing' => string '0' (length=1)
      'type' => string '2' (length=1)
      'storage' => string '1' (length=1)
      'identifier' => string '/Redaktion/Startseite/Bilder/2014/11/ThePlayfords_MartinJehnichen.jpg' (length=69)
      'identifier_hash' => string '243645d972c1fe59e24e54b50eb3991aee8756a6' (length=40)
      'extension' => string 'jpg' (length=3)
      'mime_type' => string 'image/jpeg' (length=10)
      'name' => string 'ThePlayfords_MartinJehnichen.jpg' (length=32)
      'sha1' => string 'ab24bfa63a3099d31b746cb9191177d0babf7678' (length=40)
      'size' => string '260304' (length=6)
      'creation_date' => string '1415111713' (length=10)
      'modification_date' => string '1415007932' (length=10)
      'folder_hash' => string '75743e5ca825f924bfd62029e7a383d7ef203b60' (length=40)
  protected 'storage' => 
    object(TYPO3\CMS\Core\Resource\ResourceStorage)[543]
      protected 'driver' => 
        object(TYPO3\CMS\Core\Resource\Driver\LocalDriver)[544]
          protected 'absoluteBasePath' => string '/home/www/weimar_v6.de/fileadmin/' (length=33)
          protected 'supportedHashAlgorithms' => 
            array
              ...
          protected 'baseUri' => string 'fileadmin/' (length=10)
          protected 'charsetConversion' => null
          protected 'mappingFolderNameToRole' => 
            array
              ...
          protected 'capabilities' => int 7
          protected 'storageUid' => string '1' (length=1)
          protected 'configuration' => 
            array
              ...
      protected 'storageRecord' => 
        array
          'uid' => string '1' (length=1)
          'pid' => string '0' (length=1)
          'tstamp' => string '1414150206' (length=10)
          'crdate' => string '1414150206' (length=10)
          'cruser_id' => string '0' (length=1)
          'deleted' => string '0' (length=1)
          'hidden' => string '0' (length=1)
          'name' => string 'fileadmin/ (auto-created)' (length=25)
          'description' => string 'This is the local fileadmin/ directory. This storage mount has been created automatically by TYPO3.' (length=99)
          'driver' => string 'Local' (length=5)
          'configuration' => string '<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<T3FlexForms>
    <data>
        <sheet index="sDEF">
            <language index="lDEF">
                <field index="basePath">
                    <value index="vDEF">fileadmin/</value>
                </field>
                <field index="pathType">
                    <value index="vDEF">relative</value>
                </field>
                <field index="caseSensitive">
                    <value index="vDEF">1</value>
                </fie'... (length=583)
          'is_default' => string '1' (length=1)
          'is_browsable' => string '1' (length=1)
          'is_public' => string '1' (length=1)
          'is_writable' => string '1' (length=1)
          'is_online' => string '1' (length=1)
          'processingfolder' => null
      protected 'configuration' => 
        array
          'basePath' => string 'fileadmin/' (length=10)
          'pathType' => string 'relative' (length=8)
          'caseSensitive' => string '1' (length=1)
      protected 'fileProcessingService' => null
      protected 'evaluatePermissions' => boolean true
      protected 'fileMounts' => 
        array
          '/Weimar/ext/enzhotellist/property/' => 
            array
              ...
          '/Redaktion/Startseite/' => 
            array
              ...
          '/Redaktion/Wirtschaft/' => 
            array
              ...
          '/Redaktion/Leben/' => 
            array
              ...
          '/Redaktion/Tourismus/' => 
            array
              ...
      protected 'userPermissions' => 
        array
          'addFile' => boolean true
          'readFile' => boolean true
          'writeFile' => boolean true
          'copyFile' => boolean false
          'moveFile' => boolean true
          'renameFile' => boolean true
          'unzipFile' => boolean false
          'deleteFile' => boolean true
          'addFolder' => boolean true
          'readFolder' => boolean true
          'writeFolder' => boolean true
          'copyFolder' => boolean false
          'moveFolder' => boolean true
          'renameFolder' => boolean true
          'deleteFolder' => boolean true
          'recursivedeleteFolder' => boolean false
      protected 'capabilities' => int 7
      protected 'signalSlotDispatcher' => null
      protected 'processingFolder' => 
        object(TYPO3\CMS\Core\Resource\Folder)[532]
          protected 'storage' => 
            &object(TYPO3\CMS\Core\Resource\ResourceStorage)[543]
          protected 'identifier' => string '/_processed_/' (length=13)
          protected 'name' => string '_processed_' (length=11)
          protected 'fileAndFolderNameFilters' => 
            array
              ...
      protected 'isOnline' => null
      protected 'isDefault' => boolean true
      protected 'fileAndFolderNameFilters' => 
        array
          0 => 
            array
              ...
  protected 'identifier' => string '/Redaktion/Startseite/Bilder/2014/11/ThePlayfords_MartinJehnichen.jpg' (length=69)
  protected 'name' => string 'ThePlayfords_MartinJehnichen.jpg' (length=32)
  protected 'deleted' => boolean false

The installation is about 7 or more GB, so I can't make you a copy of this.
What do you need? Just a backend-login as Admin?

Johannes

Actions #32

Updated by Frans Saris about 9 years ago

Are it only files in the folder "_migrated" the editors aren't allowed to view? What if you move such a file to user_upload (in BE file list).

gr. Frans

Actions #33

Updated by Frans Saris almost 9 years ago

Hi Johannes,

Maybe this is the same as your issue?

@Jens Jacobsen wrote:

I found out about my problem after migrating stuff from 4.5 to 6.2 (https://typo3.slack.com/archives/typo3-cms/p1429258513005691)… The pid field in sys_file_reference was 0 for all the problematic elements. I fixed it with some database queries. Just to let you know. ??

Actions #34

Updated by Johannes C. Schulz almost 9 years ago

Hello Frans

about #33 :
But sadly I have no sys_file_reference row with pid=0 .

about #32 :
It dows not matter. I moved a file to "user_upload", but the editor always can't access the file-info.

Best regards
Johannes

Actions #35

Updated by Frans Saris almost 9 years ago

Hi Johannes,

you did the debug on 2 different systems? Because I see 2 different filePaths. /home/www/website_v6.de/fileadmin/ and /home/www/weimar_v6.de/fileadmin/

Can you check if the migrated files have correctly filled sys_file_metatdata records and check there pid values?

If I could somehow get access to you test system I could debug myself and maybe we can find the reason for this error.

gr. Frans

Actions #36

Updated by Johannes C. Schulz almost 9 years ago

Frans Saris wrote:

you did the debug on 2 different systems? Because I see 2 different filePaths. /home/www/website_v6.de/fileadmin/ and /home/www/weimar_v6.de/fileadmin/

No, its the same system (or the error exists on live- and dev-system). I just sometimes forgot to hide the page-name ;-)
I can give you an admin-backend-user-account. Is this enough?

Best regards
Johannes

Actions #37

Updated by Johannes C. Schulz almost 9 years ago

After Frans checked my installation I've to declare: it was my fault.

We have filemounts for some folders inside of fileadmin. But we do not have a global filemount for fileadmin (and so not for _migrated) for all editors.
After creating a filemount for the _migrated-path, the editors were able to access the "old" files.

A big thanks to Frans Saris for helping me, checking the installation and so on. Good work!

The ticket can be closed.

best regards
Johannes

Actions #38

Updated by Riccardo De Contardi almost 9 years ago

  • Status changed from Needs Feedback to Closed

Thank you :)

Closed on request of the reporter.

Actions

Also available in: Atom PDF