Bug #80088

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

Added by Wolfgang Klinger about 2 years ago. Updated 3 months ago.

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

0%

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

History

#1 Updated by Wolfgang Klinger about 2 years ago

Affects TYPO3 6, 7, master

#2 Updated by Georg Ringer about 2 years ago

can you add a simple way how to test that?

#3 Updated by Wouter Wolters about 2 years ago

  • Status changed from New to Needs Feedback

#4 Updated by Riccardo De Contardi almost 2 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.

#5 Updated by Jan Kornblum 3 months 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());
}

#6 Updated by Jan Kornblum 3 months ago

Jan Kornblum wrote:

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

[...]

Sorry, my mistake. Works fine...

Also available in: Atom PDF