Project

General

Profile

Actions

Bug #80088

closed

Call to undefined method TYPO3\CMS\Core\Resource\ProcessedFile::setMissing()

Added by Wolfgang Klinger over 7 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
-
Target version:
-
Start date:
2017-03-02
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
9
PHP Version:
7.2
Tags:
Complexity:
easy
Is Regression:
No
Sprint Focus:

Description

Error thrown in file /var/www/wu7/vendor/typo3/cms/typo3/sysext/core/Classes/Resource/ResourceStorage.php in line 627

ProcessedFile has no 'missing' property.

This part in ResourceStorage::checkFileActionPermission

        if ($this->driver->fileExists($file->getIdentifier()) === false) {
            $file->setMissing(true);
            $isMissing = true;
        }

is missing the check for $isProcessedFile

Actions #1

Updated by Wolfgang Klinger over 7 years ago

Affects TYPO3 6, 7, master

Actions #2

Updated by Georg Ringer over 7 years ago

can you add a simple way how to test that?

Actions #3

Updated by Wouter Wolters over 7 years ago

  • Status changed from New to Needs Feedback
Actions #4

Updated by Riccardo De Contardi over 7 years ago

  • Status changed from Needs Feedback to Closed

No feedback within the last 90 days => closing this issue.

If you think that this is the wrong decision or experience the issue again or have more info about how to reproduce it, then please reopen it or open a new issue with a reference to this one. Thank you.

Actions #5

Updated by Jan Kornblum over 5 years ago

  • TYPO3 Version changed from 7 to 9
  • PHP Version changed from 7.1 to 7.2

Also get this error when deleting a physical file that way:

if($document->getPdf()) {
   $document->getPdf()->getOriginalResource()->getStorage()->deleteFile($document->getPdf()->getOriginalResource());
}
Actions #6

Updated by Jan Kornblum over 5 years ago

Jan Kornblum wrote:

Also get this error when deleting a physical file that way:

[...]

Sorry, my mistake. Works fine...

Actions

Also available in: Atom PDF