- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 4.6k
Fix public shared folder page when quota includes external storages #28911
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix public shared folder page when quota includes external storages #28911
Conversation
| OC_Util::tearDownFS(); | ||
| OC_Util::setupFS($share->getShareOwner()); | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess this might have some performance implications. So probably @icewind1991 should have a look when he is back from vacation.
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
When the quota storage wrapper is used (that is, when the share owner
has a quota set) and "quota_include_external_storage" is enabled when
checking the free space "Filesystem::getFileInfo('', 'ext')" is called,
which requires the file system to have been initialized. This is
explicitly done now in "showShare" similar to what is done in
"downloadShare".
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
    686abcc    to
    a43d664      
    Compare
  
    | /backport to stable22 | 
| /backport to stable21 | 
| What's the status here? | 
| It needs feedback from @icewind1991 ... | 
| As there is no feedback since a while I will close this ticket. | 
Fixes #27322
When the quota storage wrapper is used (that is, when the share owner has a quota set) and
quota_include_external_storageis enabled when checking the free spaceFilesystem::getFileInfo('', 'ext')is called, which requires the file system to have been initialized. This is explicitly done now inshowSharesimilar to what is done indownloadShare.Pending:
For now this just includes an integration test that shows it.How to reproduce
quota_include_external_storage, for example, withocc config:system:set quota_include_external_storage --value=true --type booleanResult with this pull request
The public shared folder page is opened
Result without this pull request
The server returns an internal error