Skip to content

[stable10] Call getFullPath only if its defined in storage#29360

Merged
sharidas merged 1 commit into
stable10from
fix-getfullpath-sharedstorage-stable10
Oct 26, 2017
Merged

[stable10] Call getFullPath only if its defined in storage#29360
sharidas merged 1 commit into
stable10from
fix-getfullpath-sharedstorage-stable10

Conversation

@sharidas

Copy link
Copy Markdown
Contributor

Call getFullPath only if its defined in storage.
Else use mount point to resolve the full path.

Signed-off-by: Sujith H sharidasan@owncloud.com

Description

This change adds getFullPath method to shared external storage file.

Related Issue

#29167

Motivation and Context

Same as described at #29337

How Has This Been Tested?

Recreated the issue with the steps mentioned above. After applying this change when the file is deleted, the log file doesn't spit the error message.

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Call getFullPath only if its defined in storage.
Else use mount point to resolve the full path.

Signed-off-by: Sujith H <sharidasan@owncloud.com>
@sharidas sharidas self-assigned this Oct 26, 2017
@sharidas
sharidas requested a review from PVince81 October 26, 2017 10:18
@sharidas sharidas added this to the development milestone Oct 26, 2017

@PVince81 PVince81 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@codecov

codecov Bot commented Oct 26, 2017

Copy link
Copy Markdown

Codecov Report

Merging #29360 into stable10 will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@              Coverage Diff               @@
##             stable10   #29360      +/-   ##
==============================================
+ Coverage       58.43%   58.43%   +<.01%     
- Complexity      17707    17708       +1     
==============================================
  Files            1059     1059              
  Lines           59386    59387       +1     
==============================================
+ Hits            34702    34703       +1     
  Misses          24684    24684
Impacted Files Coverage Δ Complexity Δ
lib/private/Files/Storage/Wrapper/Encryption.php 71.78% <100%> (+0.07%) 151 <0> (+1) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ff65b3e...a46f4f8. Read the comment docs.

@sharidas
sharidas merged commit 3b123a7 into stable10 Oct 26, 2017
@sharidas
sharidas deleted the fix-getfullpath-sharedstorage-stable10 branch October 26, 2017 14:26
@lock

lock Bot commented Aug 2, 2019

Copy link
Copy Markdown

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock Bot locked as resolved and limited conversation to collaborators Aug 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants