Bug #58013

No file found for given UID.

Added by André Haehnel over 5 years ago. Updated almost 2 years ago.

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

100%

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

Description

If a referenced file (sys_file_reference) points to a non existing id in the table sys_file you get this exception.

NoFileFoundForGivenUid.png View (138 KB) André Haehnel, 2014-04-17 14:07

2014-04-17_typo3_missing_sys_file_entry.png View - error-message-with-patch (23.3 KB) Christian Weiske, 2014-04-17 17:15


Related issues

Related to TYPO3 Core - Bug #58021: Metadata can only be retrieved for indexed files. Closed 2014-04-17

Associated revisions

Revision 19aa0943 (diff)
Added by André Haehnel over 4 years ago

[BUGFIX] Gracefully show missing files in IRRE relations

When the database is inconsistent and a sys_file entry linked
from sys_file_reference does not exist anymore, an exception
is shown in the "page" module in the backend:

No file found for given UID.

We will now gracefully show the reference as "broken" and let
the action up to the editor. Works for temporarily unavailable
storages too.

Releases: master, 6.2
Resolves: #58013
Change-Id: Ibce9bb3b60e9294aa1902b95c1b99337d3a8e2e6
Reviewed-on: http://review.typo3.org/29544
Reviewed-by: Frans Saris <>
Tested-by: Frans Saris <>
Reviewed-by: Ingo Schmitt <>
Reviewed-by: Jan Helke <>
Tested-by: Jan Helke <>
Reviewed-by: Stefan Neufeind <>
Reviewed-by: Christian Kuhn <>
Tested-by: Christian Kuhn <>

Revision a9302738 (diff)
Added by Jan Helke over 4 years ago

[BUGFIX] Gracefully show missing files in IRRE relations

When the database is inconsistent and a sys_file entry linked
from sys_file_reference does not exist anymore, an exception
is shown in the "page" module in the backend:

No file found for given UID.

We will now gracefully show the reference as "broken" and let
the action up to the editor. Works for temporarily unavailable
storages too.

Releases: master, 6.2
Resolves: #58013
Change-Id: Ibce9bb3b60e9294aa1902b95c1b99337d3a8e2e6
Reviewed-on: http://review.typo3.org/36489
Reviewed-by: Christian Kuhn <>
Tested-by: Christian Kuhn <>

History

#1 Updated by Gerrit Code Review over 5 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/29544

#2 Updated by Gerrit Code Review over 5 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/29544

#3 Updated by Christian Weiske over 5 years ago

No file found for given UID

This problem only occurs if the database is inconsistent, which may happen during development.

Instead of erroring out with an exception, the page view shows the file as missing with a small explanatory message - see the screenshot.

#4 Updated by Gerrit Code Review over 5 years ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/29544

#5 Updated by Frans Saris over 5 years ago

I do not think this should be handled in FileReference object but on the place where the object is called.

Is there also an exception on FE?

#6 Updated by Christian Weiske over 5 years ago

No, there is no FE rendering error. Which probably means that the error is caught there already.

#7 Updated by Gerrit Code Review about 5 years ago

Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/29544

#8 Updated by Andreas about 5 years ago

This is not solved in the last version of typo3 (6.2.5)!!

#9 Updated by Frans Saris almost 5 years ago

  • Category changed from Backend API to File Abstraction Layer (FAL)
  • Target version set to 7.1 (Cleanup)
  • Sprint Focus set to On Location Sprint

#10 Updated by Gerrit Code Review over 4 years ago

Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/29544

#11 Updated by Gerrit Code Review over 4 years ago

Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/29544

#12 Updated by Gerrit Code Review over 4 years ago

Patch set 7 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/29544

#13 Updated by Gerrit Code Review over 4 years ago

Patch set 8 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/29544

#14 Updated by Gerrit Code Review over 4 years ago

Patch set 9 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/29544

#15 Updated by Gerrit Code Review over 4 years ago

Patch set 10 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/29544

#16 Updated by Gerrit Code Review over 4 years ago

Patch set 11 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/29544

#17 Updated by Gerrit Code Review over 4 years ago

Patch set 12 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/29544

#18 Updated by Gerrit Code Review over 4 years ago

Patch set 13 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/29544

#19 Updated by Gerrit Code Review over 4 years ago

Patch set 14 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/29544

#20 Updated by André Haehnel over 4 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

#21 Updated by Gerrit Code Review over 4 years ago

  • Status changed from Resolved to Under Review

Patch set 1 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/36489

#22 Updated by Gerrit Code Review over 4 years ago

Patch set 2 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/36489

#23 Updated by Jan Helke over 4 years ago

  • Status changed from Under Review to Resolved

#24 Updated by Anja Leichsenring almost 4 years ago

  • Sprint Focus deleted (On Location Sprint)

#25 Updated by Riccardo De Contardi almost 2 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF