Bug #60965
closedTYPO3 identifier of file abstraction layer inconsistent
0%
Description
Please don't wonder if you have seen this on stackoverflow first. But I think this here is the better place :)
I'm a little bit confused about the identifier of a FAL driver. I try to write a driver but the delivered identifier from storage is not always consistent. Currently the problem is to hide the _processed_
folder in listing. So I found out, the condition ask for _processed_/
. But shouldn't it be /_processed_/
with beginning slash?
So when I fetch the files from my storage I use for all identifiers a beginning and tailing slash:
/my/directory/ /my/directory/file.ext
But when e.g. the file is processing it will be saved in the DB as
_processed_/preview_test122_4f666b3c4b.jpg
not as expected as
/_processed_/preview_test122_4f666b3c4b.jpg
When I remove the beginning slash at fetching, then some functions work, but other not without canonical the path.
How can I found out, when the incoming $identifier of my driver is correct or must be canonicalized? I don't whant to overload the extension with the function canonicalizeAndCheckFileIdentifier()...
using TYPO3 v6.2.4
More debugging:
- Deleted the processing directory on storage
- do listing
- debug "createFolder" function to get returned identifier: ->
/_processed_/
- debug returned identifier in
getProcessingFolder
inResourceStorage.php
: ->/_processed_/
everthing correct so far - do linsting again
- debug
getProcessingFolder
: ->_processed_/
missing beginning slash
Updated by Arno Dudek over 10 years ago
I could solve the problem when canonicalize the identifier at fetching the list, isWithin
and getFolderInfoByIdentifier
. Perhaps we can avoid canonicalizing in the driver.(?)
Updated by Frans Saris almost 10 years ago
- Sprint Focus set to On Location Sprint
Updated by Michael Oehlhof almost 10 years ago
I can't reproduce this with master.
In Step 6 I get the correct identifier
ResourceStorage.php: -> /_processed_/
Updated by Anja Leichsenring over 9 years ago
- Sprint Focus changed from On Location Sprint to Remote Sprint
Updated by Markus Klein almost 9 years ago
- Status changed from New to Needs Feedback
- Sprint Focus deleted (
Remote Sprint)
Still an issue?
Updated by Arno Dudek almost 9 years ago
Seems to work now. Tested with v4.6.15 and v7.6.0. Get always "/_processed_/".
Thanks!
Updated by Riccardo De Contardi almost 9 years ago
- Status changed from Needs Feedback to Closed
There have not been other reports about this issue, so I think it is safe to close this for now.
If you think that this is the wrong decision or experience this issue again, then please write to the mailing list typo3.teams.bugs with issue number and an explanation or open a new ticket and add a relation to this ticket number.
Thank you