bwaidelich / Wwwision.PrivateResources

A Neos Flow package that allows for protecting persistent resources from unauthorized access.
MIT License
10 stars 10 forks source link

Folder structure of persistent resources changed? #3

Closed cosmonoid closed 9 years ago

cosmonoid commented 9 years ago

The folder structure is 4 chunks à 1 character + / sha1 hash as set in the FileSystemStorage class. So you had to adjust the method to get the path a little bit from $resourcePathAndFilename = Files::concatenatePaths(array($this->options['basePath'], wordwrap($tokenData['resourceIdentifier'], 5, '/', TRUE), $tokenData['resourceIdentifier']));

to $resourcePathAndFilename = Files::concatenatePaths(array($this->options['basePath'], wordwrap(substr($tokenData['resourceIdentifier'],0,4), 1, '/', TRUE), $tokenData['resourceIdentifier']));

bwaidelich commented 9 years ago

Thanks for reporting, I'll look into this next week!

bwaidelich commented 9 years ago

@cosmonoid Thanks again, the issue should be solved with https://github.com/bwaidelich/Wwwision.PrivateResources/commits/master