Bug #67284
closedSome storages cannot be marked as not public again
100%
Description
When using the fal_webdav extension, a storage cannot be marked as not public again. The error is "The storage has been marked to be "publicly available" but is not detected as such by the driver. The setting has been reverted."
This is due to a broken check in UserStorageCapabilityService::renderIsPublic()
.
The check should only check if the record says the storage is public, but the driver does not report so. Instead, the method checks if the storage’s public setting and the record do not differ. This fails if the storage was marked as not public by the user (i.e. the record says "0"), as the object is still created from the old record (which said "1").
How to reproduce:
- Install fal_webdav current master (7351fe2)
- Create a storage, save it
- Edit it again, uncheck the "Is publicly available?" box
- Save, see the message once the form reloads
Updated by Gerrit Code Review over 9 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 http://review.typo3.org/39927
Updated by Gerrit Code Review over 9 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/39927
Updated by Gerrit Code Review over 9 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/39927
Updated by Gerrit Code Review over 9 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/39927
Updated by Anonymous over 9 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 6fbdc0fd49369357b743e26282aafcac588523c5.
Updated by Gerrit Code Review over 9 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/42547
Updated by Benni Mack over 9 years ago
- Status changed from Under Review to Resolved
Applied in changeset 0878494ea264154b46efb5cac5968fe9e362f768.